Instructions to use diffusers/consistency-models-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/consistency-models-test with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/consistency-models-test", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload 4 files
#1
by dg845 - opened
Files changed (4)
1234567895 unmodified lines1516171819206 unmodified lines27282930313233343536{"_class_name": "UNet2DModel","_diffusers_version": "0.17.0.dev0","act_fn": "silu","add_attention": true,"attention_head_dim": 8,"block_out_channels": [32,645 unmodified lines"AttnDownBlock2D"],"downsample_padding": 1,"flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 3,6 unmodified lines"resnet_time_scale_shift": "scale_shift","sample_size": 32,"time_embedding_type": "positional","upsample_type": "resnet","downsample_type": "resnet","up_block_types": ["AttnUpBlock2D","ResnetUpsampleBlock2D"]}123456789105 unmodified lines161718192021226 unmodified lines293031323334353637{"_class_name": "UNet2DModel","_diffusers_version": "0.21.0.dev0","act_fn": "silu","add_attention": true,"attention_head_dim": 8,"attn_norm_num_groups": 32,"block_out_channels": [32,645 unmodified lines"AttnDownBlock2D"],"downsample_padding": 1,"downsample_type": "resnet","flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 3,6 unmodified lines"resnet_time_scale_shift": "scale_shift","sample_size": 32,"time_embedding_type": "positional","up_block_types": ["AttnUpBlock2D","ResnetUpsampleBlock2D"],"upsample_type": "resnet"}
123version https://git-lfs.github.com/spec/v1oid sha256:10fbd4bf346f20f687ec2a1654e6877d7fe8149e8bd621180353c06bea2d1f76size 46334121234567895 unmodified lines1516171819205 unmodified lines2627282930313233343536{"_class_name": "UNet2DModel","_diffusers_version": "0.17.0.dev0","act_fn": "silu","add_attention": true,"attention_head_dim": 8,"block_out_channels": [32,645 unmodified lines"AttnDownBlock2D"],"downsample_padding": 1,"flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 3,5 unmodified lines"out_channels": 3,"resnet_time_scale_shift": "scale_shift","sample_size": 32,"upsample_type": "resnet","downsample_type": "resnet","time_embedding_type": "positional","up_block_types": ["AttnUpBlock2D","ResnetUpsampleBlock2D"]}123456789105 unmodified lines161718192021225 unmodified lines28293031323334353637{"_class_name": "UNet2DModel","_diffusers_version": "0.21.0.dev0","act_fn": "silu","add_attention": true,"attention_head_dim": 8,"attn_norm_num_groups": 32,"block_out_channels": [32,645 unmodified lines"AttnDownBlock2D"],"downsample_padding": 1,"downsample_type": "resnet","flip_sin_to_cos": true,"freq_shift": 0,"in_channels": 3,5 unmodified lines"out_channels": 3,"resnet_time_scale_shift": "scale_shift","sample_size": 32,"time_embedding_type": "positional","up_block_types": ["AttnUpBlock2D","ResnetUpsampleBlock2D"],"upsample_type": "resnet"}
123version https://git-lfs.github.com/spec/v1oid sha256:74c24e2a295ea2c52edf3c967ee330cfafa2fef53f82c943dde61a77655dc125size 5145572test_unet/config.json+5-4
test_unet/diffusion_pytorch_model.safetensorsAdded+3
test_unet_class_cond/config.json+5-4
test_unet_class_cond/diffusion_pytorch_model.safetensorsAdded+3