Instructions to use mountassir/ddpm-flowers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mountassir/ddpm-flowers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mountassir/ddpm-flowers", 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 0
Browse files- checkpoint-500/optimizer.bin +3 -0
- checkpoint-500/random_states_0.pkl +3 -0
- checkpoint-500/scaler.pt +3 -0
- checkpoint-500/scheduler.bin +3 -0
- checkpoint-500/unet/config.json +51 -0
- checkpoint-500/unet/diffusion_pytorch_model.safetensors +3 -0
- logs/train_unconditional/events.out.tfevents.1730646530.f38345c6fc4b.8534.0 +3 -0
- logs/train_unconditional/events.out.tfevents.1730647493.f38345c6fc4b.12606.0 +3 -0
- logs/train_unconditional/events.out.tfevents.1730647625.f38345c6fc4b.13184.0 +3 -0
- logs/train_unconditional/events.out.tfevents.1730648693.f38345c6fc4b.17696.0 +3 -0
- model_index.json +12 -0
- scheduler/scheduler_config.json +19 -0
- unet/config.json +51 -0
- unet/diffusion_pytorch_model.safetensors +3 -0
checkpoint-500/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33c07c19e02eecce1ada10c7a4f5dd5000a43137b51bd1f8963a65a80a7a9589
|
| 3 |
+
size 909763736
|
checkpoint-500/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a371747918a5d214efe4509421393402ecd5b607cb47591322c5fbea1836951f
|
| 3 |
+
size 14280
|
checkpoint-500/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18b984273ea2d45b7ffb1d047bb359d93111e41fcad70d16a1b453fd38f72636
|
| 3 |
+
size 988
|
checkpoint-500/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cf34ac8dd2addc454aeb1ee4eaba3267c2841857e117be40ac2ed02cf581c9c
|
| 3 |
+
size 1000
|
checkpoint-500/unet/config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "UNet2DModel",
|
| 3 |
+
"_diffusers_version": "0.32.0.dev0",
|
| 4 |
+
"act_fn": "silu",
|
| 5 |
+
"add_attention": true,
|
| 6 |
+
"attention_head_dim": 8,
|
| 7 |
+
"attn_norm_num_groups": null,
|
| 8 |
+
"block_out_channels": [
|
| 9 |
+
128,
|
| 10 |
+
128,
|
| 11 |
+
256,
|
| 12 |
+
256,
|
| 13 |
+
512,
|
| 14 |
+
512
|
| 15 |
+
],
|
| 16 |
+
"center_input_sample": false,
|
| 17 |
+
"class_embed_type": null,
|
| 18 |
+
"down_block_types": [
|
| 19 |
+
"DownBlock2D",
|
| 20 |
+
"DownBlock2D",
|
| 21 |
+
"DownBlock2D",
|
| 22 |
+
"DownBlock2D",
|
| 23 |
+
"AttnDownBlock2D",
|
| 24 |
+
"DownBlock2D"
|
| 25 |
+
],
|
| 26 |
+
"downsample_padding": 1,
|
| 27 |
+
"downsample_type": "conv",
|
| 28 |
+
"dropout": 0.0,
|
| 29 |
+
"flip_sin_to_cos": true,
|
| 30 |
+
"freq_shift": 0,
|
| 31 |
+
"in_channels": 3,
|
| 32 |
+
"layers_per_block": 2,
|
| 33 |
+
"mid_block_scale_factor": 1,
|
| 34 |
+
"norm_eps": 1e-05,
|
| 35 |
+
"norm_num_groups": 32,
|
| 36 |
+
"num_class_embeds": null,
|
| 37 |
+
"num_train_timesteps": null,
|
| 38 |
+
"out_channels": 3,
|
| 39 |
+
"resnet_time_scale_shift": "default",
|
| 40 |
+
"sample_size": 64,
|
| 41 |
+
"time_embedding_type": "positional",
|
| 42 |
+
"up_block_types": [
|
| 43 |
+
"UpBlock2D",
|
| 44 |
+
"AttnUpBlock2D",
|
| 45 |
+
"UpBlock2D",
|
| 46 |
+
"UpBlock2D",
|
| 47 |
+
"UpBlock2D",
|
| 48 |
+
"UpBlock2D"
|
| 49 |
+
],
|
| 50 |
+
"upsample_type": "conv"
|
| 51 |
+
}
|
checkpoint-500/unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:effcd3f4f68dac971c07fa6d7ebd84be7f91e0760d29d9b074680981492f844f
|
| 3 |
+
size 454741108
|
logs/train_unconditional/events.out.tfevents.1730646530.f38345c6fc4b.8534.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a359c50fd06cf84b9ac9490888ed294f7bc533745710aacb50bb9f37783fa61
|
| 3 |
+
size 232762
|
logs/train_unconditional/events.out.tfevents.1730647493.f38345c6fc4b.12606.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b785c0e96e9f8d02352f55d775e6c265bf50c2aad4eecc985bff7e9b5fd81cb
|
| 3 |
+
size 15588
|
logs/train_unconditional/events.out.tfevents.1730647625.f38345c6fc4b.13184.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df3603bc1e8f727c4fc658102d57f8b1a7c105ed27b85303e3aad3e023075ac5
|
| 3 |
+
size 212574
|
logs/train_unconditional/events.out.tfevents.1730648693.f38345c6fc4b.17696.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bb8f05f3256ecdcf06bc08fd2115f0effefa9ced12d7c6f04e1d94f2049a7b6
|
| 3 |
+
size 179316
|
model_index.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "DDPMPipeline",
|
| 3 |
+
"_diffusers_version": "0.32.0.dev0",
|
| 4 |
+
"scheduler": [
|
| 5 |
+
"diffusers",
|
| 6 |
+
"DDPMScheduler"
|
| 7 |
+
],
|
| 8 |
+
"unet": [
|
| 9 |
+
"diffusers",
|
| 10 |
+
"UNet2DModel"
|
| 11 |
+
]
|
| 12 |
+
}
|
scheduler/scheduler_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "DDPMScheduler",
|
| 3 |
+
"_diffusers_version": "0.32.0.dev0",
|
| 4 |
+
"beta_end": 0.02,
|
| 5 |
+
"beta_schedule": "linear",
|
| 6 |
+
"beta_start": 0.0001,
|
| 7 |
+
"clip_sample": true,
|
| 8 |
+
"clip_sample_range": 1.0,
|
| 9 |
+
"dynamic_thresholding_ratio": 0.995,
|
| 10 |
+
"num_train_timesteps": 1000,
|
| 11 |
+
"prediction_type": "epsilon",
|
| 12 |
+
"rescale_betas_zero_snr": false,
|
| 13 |
+
"sample_max_value": 1.0,
|
| 14 |
+
"steps_offset": 0,
|
| 15 |
+
"thresholding": false,
|
| 16 |
+
"timestep_spacing": "leading",
|
| 17 |
+
"trained_betas": null,
|
| 18 |
+
"variance_type": "fixed_small"
|
| 19 |
+
}
|
unet/config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "UNet2DModel",
|
| 3 |
+
"_diffusers_version": "0.32.0.dev0",
|
| 4 |
+
"act_fn": "silu",
|
| 5 |
+
"add_attention": true,
|
| 6 |
+
"attention_head_dim": 8,
|
| 7 |
+
"attn_norm_num_groups": null,
|
| 8 |
+
"block_out_channels": [
|
| 9 |
+
128,
|
| 10 |
+
128,
|
| 11 |
+
256,
|
| 12 |
+
256,
|
| 13 |
+
512,
|
| 14 |
+
512
|
| 15 |
+
],
|
| 16 |
+
"center_input_sample": false,
|
| 17 |
+
"class_embed_type": null,
|
| 18 |
+
"down_block_types": [
|
| 19 |
+
"DownBlock2D",
|
| 20 |
+
"DownBlock2D",
|
| 21 |
+
"DownBlock2D",
|
| 22 |
+
"DownBlock2D",
|
| 23 |
+
"AttnDownBlock2D",
|
| 24 |
+
"DownBlock2D"
|
| 25 |
+
],
|
| 26 |
+
"downsample_padding": 1,
|
| 27 |
+
"downsample_type": "conv",
|
| 28 |
+
"dropout": 0.0,
|
| 29 |
+
"flip_sin_to_cos": true,
|
| 30 |
+
"freq_shift": 0,
|
| 31 |
+
"in_channels": 3,
|
| 32 |
+
"layers_per_block": 2,
|
| 33 |
+
"mid_block_scale_factor": 1,
|
| 34 |
+
"norm_eps": 1e-05,
|
| 35 |
+
"norm_num_groups": 32,
|
| 36 |
+
"num_class_embeds": null,
|
| 37 |
+
"num_train_timesteps": null,
|
| 38 |
+
"out_channels": 3,
|
| 39 |
+
"resnet_time_scale_shift": "default",
|
| 40 |
+
"sample_size": 64,
|
| 41 |
+
"time_embedding_type": "positional",
|
| 42 |
+
"up_block_types": [
|
| 43 |
+
"UpBlock2D",
|
| 44 |
+
"AttnUpBlock2D",
|
| 45 |
+
"UpBlock2D",
|
| 46 |
+
"UpBlock2D",
|
| 47 |
+
"UpBlock2D",
|
| 48 |
+
"UpBlock2D"
|
| 49 |
+
],
|
| 50 |
+
"upsample_type": "conv"
|
| 51 |
+
}
|
unet/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9d694f98c6341515869f4fba48f8827c80c8c7117f47bbda82289dfe64f3046
|
| 3 |
+
size 454741108
|