Instructions to use AnasHXH/stable-diffusion-v1-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AnasHXH/stable-diffusion-v1-4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AnasHXH/stable-diffusion-v1-4", 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
Epoch 5
Browse filesFiles changed (7)
35 unmodified lines36373835 unmodified linessamples/0003.png filter=lfs diff=lfs merge=lfs -textsamples/0000.png filter=lfs diff=lfs merge=lfs -textsamples/0002.png filter=lfs diff=lfs merge=lfs -text35 unmodified lines3637383935 unmodified linessamples/0003.png filter=lfs diff=lfs merge=lfs -textsamples/0000.png filter=lfs diff=lfs merge=lfs -textsamples/0002.png filter=lfs diff=lfs merge=lfs -textsamples/0005.png filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:b7ebee7a52889273fc8e3005b96dde25b3dc7fcb0df7d7f4b8f4a19c18b063dcsize 47275123version https://git-lfs.github.com/spec/v1oid sha256:a9b67d9875729c7a3361e043b395b8295d62b97f75b29372373c9cca2afff1a3size 94900
123456789101112{ "_class_name": "DDPMPipeline", "_diffusers_version": "0.11.1", "scheduler": [ "diffusers", "DDPMScheduler" ], "unet": [ "diffusers", "UNet2DModel" ]}123456789101112{ "_class_name": "DDPMScheduler", "_diffusers_version": "0.11.1", "beta_end": 0.02, "beta_schedule": "linear", "beta_start": 0.0001, "clip_sample": true, "num_train_timesteps": 1000, "prediction_type": "epsilon", "trained_betas": null, "variance_type": "fixed_small"}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "_class_name": "UNet2DModel", "_diffusers_version": "0.11.1", "act_fn": "silu", "add_attention": true, "attention_head_dim": 8, "block_out_channels": [ 128, 128, 256, 256, 512, 512 ], "center_input_sample": false, "down_block_types": [ "DownBlock2D", "DownBlock2D", "DownBlock2D", "DownBlock2D", "AttnDownBlock2D", "DownBlock2D" ], "downsample_padding": 1, "flip_sin_to_cos": true, "freq_shift": 0, "in_channels": 3, "layers_per_block": 2, "mid_block_scale_factor": 1, "norm_eps": 1e-05, "norm_num_groups": 32, "out_channels": 3, "resnet_time_scale_shift": "default", "sample_size": 128, "time_embedding_type": "positional", "up_block_types": [ "UpBlock2D", "AttnUpBlock2D", "UpBlock2D", "UpBlock2D", "UpBlock2D", "UpBlock2D" ]}123version https://git-lfs.github.com/spec/v1oid sha256:48f5334107def83b7d251379b0110527590bce57c9d7917b3547415d1b1fcdefsize 454867325.gitattributes+1
logs/train_example/events.out.tfevents.1674976643.ab31301080b7.1111.0+2-2
model_index.jsonAdded+12
samples/0005.pngAdded

Large File Pointer Details
- SHA256: 1763e77352cb9941f8afcf8d68ec09c9ecc777d9ec0c5ad00417813e13b437e0
- Pointer size: 131 Bytes
- Size of remote file: 297 kB
scheduler/scheduler_config.jsonAdded+12
unet/config.jsonAdded+44
unet/diffusion_pytorch_model.binAdded+3