adammoss commited on
Commit
91715f7
1 Parent(s): 81df4fb
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ step_*
2
+ epoch_*
model_index.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDPMConditionPipeline",
3
+ "_diffusers_version": "0.16.1",
4
+ "scheduler": [
5
+ "diffusers",
6
+ "DDPMScheduler"
7
+ ],
8
+ "unet": [
9
+ "diffusers",
10
+ "UNet2DConditionModel"
11
+ ]
12
+ }
params.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_name": [
3
+ "Mtot_Nbody_SIMBA",
4
+ "Mgas_SIMBA"
5
+ ],
6
+ "dataset_config_name": null,
7
+ "dataset_conditional_name": null,
8
+ "model_config_name_or_path": null,
9
+ "base_channels": 64,
10
+ "cross_attention_dim": null,
11
+ "vae": null,
12
+ "vae_from_pretrained": null,
13
+ "vae_scaling_factor": null,
14
+ "train_data_dir": null,
15
+ "output_dir": "output/ddpm-ema-256-Mtot-Nbody-SIMBA-Mgas-SIMBA-cond-1686233229",
16
+ "overwrite_output_dir": false,
17
+ "cache_dir": "/content/drive/MyDrive/CAMELS",
18
+ "resolution": 256,
19
+ "data_size": 13500,
20
+ "super_resolution": null,
21
+ "local_resize": false,
22
+ "conditional": true,
23
+ "center_crop": false,
24
+ "random_flip": false,
25
+ "train_batch_size": 16,
26
+ "eval_batch_size": 16,
27
+ "dataloader_num_workers": 0,
28
+ "num_epochs": 200,
29
+ "save_images_epochs": 10,
30
+ "save_model_epochs": 10,
31
+ "gradient_accumulation_steps": 4,
32
+ "learning_rate": 0.0001,
33
+ "lr_scheduler": "cosine",
34
+ "lr_warmup_steps": 500,
35
+ "adam_beta1": 0.95,
36
+ "adam_beta2": 0.999,
37
+ "adam_weight_decay": 1e-06,
38
+ "adam_epsilon": 1e-08,
39
+ "use_ema": true,
40
+ "ema_inv_gamma": 1.0,
41
+ "ema_power": 0.75,
42
+ "ema_max_decay": 0.9999,
43
+ "push_to_hub": true,
44
+ "hub_token": "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",
45
+ "hub_model_id": null,
46
+ "hub_private_repo": false,
47
+ "logger": "wandb",
48
+ "logging_dir": "logs",
49
+ "local_rank": -1,
50
+ "mixed_precision": "no",
51
+ "prediction_type": "v_prediction",
52
+ "loss": "mse",
53
+ "ddpm_num_steps": 1000,
54
+ "ddpm_num_inference_steps": 1000,
55
+ "ddpm_beta_schedule": "squaredcos_cap_v2",
56
+ "checkpointing_steps": 10000,
57
+ "checkpoints_total_limit": null,
58
+ "resume_from_checkpoint": "latest",
59
+ "enable_xformers_memory_efficient_attention": false
60
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDPMScheduler",
3
+ "_diffusers_version": "0.16.1",
4
+ "beta_end": 0.02,
5
+ "beta_schedule": "squaredcos_cap_v2",
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": "v_prediction",
12
+ "sample_max_value": 1.0,
13
+ "thresholding": false,
14
+ "trained_betas": null,
15
+ "variance_type": "fixed_small"
16
+ }
unet/config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_diffusers_version": "0.16.1",
4
+ "act_fn": "silu",
5
+ "addition_embed_type": null,
6
+ "addition_embed_type_num_heads": 64,
7
+ "attention_head_dim": 8,
8
+ "block_out_channels": [
9
+ 64,
10
+ 64,
11
+ 128,
12
+ 128,
13
+ 256,
14
+ 256
15
+ ],
16
+ "center_input_sample": false,
17
+ "class_embed_type": null,
18
+ "class_embeddings_concat": false,
19
+ "conv_in_kernel": 3,
20
+ "conv_out_kernel": 3,
21
+ "cross_attention_dim": 256,
22
+ "cross_attention_norm": null,
23
+ "down_block_types": [
24
+ "DownBlock2D",
25
+ "DownBlock2D",
26
+ "DownBlock2D",
27
+ "CrossAttnDownBlock2D",
28
+ "CrossAttnDownBlock2D",
29
+ "CrossAttnDownBlock2D"
30
+ ],
31
+ "downsample_padding": 1,
32
+ "dual_cross_attention": false,
33
+ "encoder_hid_dim": 7,
34
+ "flip_sin_to_cos": true,
35
+ "freq_shift": 0,
36
+ "in_channels": 1,
37
+ "layers_per_block": 2,
38
+ "mid_block_only_cross_attention": null,
39
+ "mid_block_scale_factor": 1,
40
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
41
+ "norm_eps": 1e-05,
42
+ "norm_num_groups": 32,
43
+ "num_class_embeds": null,
44
+ "only_cross_attention": false,
45
+ "out_channels": 1,
46
+ "projection_class_embeddings_input_dim": null,
47
+ "resnet_out_scale_factor": 1.0,
48
+ "resnet_skip_time_act": false,
49
+ "resnet_time_scale_shift": "default",
50
+ "sample_size": 256,
51
+ "time_cond_proj_dim": null,
52
+ "time_embedding_act_fn": null,
53
+ "time_embedding_dim": null,
54
+ "time_embedding_type": "positional",
55
+ "timestep_post_act": null,
56
+ "up_block_types": [
57
+ "CrossAttnUpBlock2D",
58
+ "CrossAttnUpBlock2D",
59
+ "CrossAttnUpBlock2D",
60
+ "UpBlock2D",
61
+ "UpBlock2D",
62
+ "UpBlock2D"
63
+ ],
64
+ "upcast_attention": false,
65
+ "use_linear_projection": false
66
+ }
unet/diffusion_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46418b41a3e895b20a95f9de813ec0101149833c493df18666ba902dc74321be
3
+ size 179391889