twodgirl / ssd-latent-preview

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 20 2024
text-to-image

Introduction of ssd-latent-preview

Model Details of ssd-latent-preview

SSD Latent Preview at Half-Size

The decoder provides a preview image.

Max supported resolution is between 768 and 1024px.

The model processes a latent representation that has been reshaped from 4 channels to 64 channels, which differs from the original implementation.

Inference
from diffusers import AutoencoderKL, StableDiffusionXLPipeline
from safetensors.torch import load_model
from tea_64_model import TeaDecoder
import torch
from torchvision import transforms

def preview_image(latents, pipe):
    latents = latents / pipe.vae.config.scaling_factor
    tea = TeaDecoder(ch_in=4)
    load_model(tea, './vae_decoder.safetensors')
    tea.to(device='cuda')
    output = tea(latents.float()) / 2.0 + 0.5
    preview = transforms.ToPILImage()(output[0].clamp(0, 1))

    return preview

if __name__ == '__main__':
    pipe = StableDiffusionXLPipeline.from_pretrained('segmind/SSD-1B',
                                                     torch_dtype=torch.float16,
                                                     use_safetensors=True,
                                                     variant='fp16')
    latents = pipe('cat playing piano',
                   'bad quality, low quality',
                   num_inference_steps=20,
                   output_type='latent').images
    preview = preview_image(latents, pipe)
    preview.save('cat.png')
Datasets
  • Describable Textures Dataset (DTD)
  • AngelBottomless/Booru-Parquets
  • asahi417/wikiart-face
  • hastylol/nai3
  • jordandavis/fashion_num_people
  • mattmdjaga/human_parsing_dataset
  • twodgirl/classicism
  • twodgirl/vndb

Runs of twodgirl ssd-latent-preview on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About ssd-latent-preview huggingface.co Model

More ssd-latent-preview license Visit here:

https://choosealicense.com/licenses/apache-2.0

ssd-latent-preview huggingface.co

ssd-latent-preview huggingface.co is an AI model on huggingface.co that provides ssd-latent-preview's model effect (), which can be used instantly with this twodgirl ssd-latent-preview model. huggingface.co supports a free trial of the ssd-latent-preview model, and also provides paid use of the ssd-latent-preview. Support call ssd-latent-preview model through api, including Node.js, Python, http.

ssd-latent-preview huggingface.co Url

https://huggingface.co/twodgirl/ssd-latent-preview

twodgirl ssd-latent-preview online free

ssd-latent-preview huggingface.co is an online trial and call api platform, which integrates ssd-latent-preview's modeling effects, including api services, and provides a free online trial of ssd-latent-preview, you can try ssd-latent-preview online for free by clicking the link below.

twodgirl ssd-latent-preview online free url in huggingface.co:

https://huggingface.co/twodgirl/ssd-latent-preview

ssd-latent-preview install

ssd-latent-preview is an open source model from GitHub that offers a free installation service, and any user can find ssd-latent-preview on GitHub to install. At the same time, huggingface.co provides the effect of ssd-latent-preview install, users can directly use ssd-latent-preview installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ssd-latent-preview install url in huggingface.co:

https://huggingface.co/twodgirl/ssd-latent-preview

Url of ssd-latent-preview

ssd-latent-preview huggingface.co Url

Provider of ssd-latent-preview huggingface.co

twodgirl
ORGANIZATIONS

Other API from twodgirl

huggingface.co

Total runs: 7
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 13 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 07 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 21 2024