Search is not available for this dataset
latent
sequence
[[["2.25","4.875","5.812","0.707","0.91","1.047","0.7383","0.797"],["-1.156","3.125","4.094","-2.094(...TRUNCATED)
[[["-1.953","-0.1426","0.1484","0.9453","4.906","-0.2637","-1.594","-2.234"],["-0.2012","-1.656","-2(...TRUNCATED)
[[["-1.766","0.3008","1.898","3.719","0.6445","-1.297","3.61","1.961"],["-0.463","1.25","2.36","0.89(...TRUNCATED)
[[["2.781","1.039","-0.703","1.336","0.4844","2.0","1.703","2.453"],["-3.0","1.047","-4.406","-0.797(...TRUNCATED)
[[["2.453","1.555","-1.094","2.016","1.773","-0.6914","0.6016","7.28"],["4.78","2.25","0.9688","-1.2(...TRUNCATED)
[[["1.641","0.7656","0.0547","-2.25","5.562","-2.281","1.227","-0.9727"],["0.3008","0.3594","1.906",(...TRUNCATED)
[[["2.172","-1.906","4.438","2.844","-1.016","0.586","3.188","0.8633"],["4.344","-2.312","-1.609","2(...TRUNCATED)
[[["-0.0664","-0.127","-5.312","2.562","0.5312","1.234","6.03","-0.6797"],["0.127","-4.656","-3.781"(...TRUNCATED)
[[["2.5","0.551","1.5","-1.258","-2.797","-1.609","-0.208","1.094"],["-0.1748","1.242","1.578","-0.5(...TRUNCATED)
[[["0.083","-1.281","1.547","0.9844","-1.797","4.0","-0.1523","1.281"],["2.125","2.078","2.14","-2.3(...TRUNCATED)

FFHQ Dataset (pravsels/FFHQ_1024) encoded using the dc-ae-f128c512-mix-1.0 auto encoder.

Example usage

import sys
sys.path.append('../dcae') # https://github.com/vladmandic/dcae
from dcae import DCAE

from datasets import load_dataset
import torch
import torchvision

dataset = load_dataset("SwayStar123/FFHQ_1024_DC-AE_f128", split="train")
dc_ae = DCAE("dc-ae-f128c512-mix-1.0", device="cuda", dtype=torch.bfloat16).eval() # Must be bfloat. with float16 it produces terrible outputs.

def denorm(x):
    return (x * 0.5 + 0.5).clamp(0, 1)

latent = next(iter(dataset))["latent"]
latent = torch.tensor(latent, device=DEVICE, dtype=DTYPE)

with torch.no_grad():
        recon = dc_ae.decode(latent.unsqueeze(0)).squeeze(0)

recon = denorm(recon).to(torch.float32)

torchvision.utils.save_image(
    recon,
    "recon.png",
    normalize=False,
)
Downloads last month
223