Pupba commited on
Commit
f23f2c4
·
verified ·
1 Parent(s): 5d21884

Upload folder using huggingface_hub

Browse files
.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ text_encoder/model.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
3
+ vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
config.yaml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pretrained_model_path: output/latent/animate_anything_512_v1.02
2
+ output_dir: ./output/latent
3
+ train_data:
4
+ width: 512
5
+ height: 512
6
+ use_bucketing: false
7
+ return_mask: true
8
+ return_motion: true
9
+ sample_start_idx: 1
10
+ fps: 8
11
+ n_sample_frames: 16
12
+ json_path: /webvid/animation0.json
13
+ validation_data:
14
+ prompt: a girl moves hands
15
+ prompt_image: output/example/girl.jpg
16
+ sample_preview: true
17
+ num_frames: 16
18
+ width: 512
19
+ height: 512
20
+ num_inference_steps: 25
21
+ guidance_scale: 9
22
+ dataset_types:
23
+ - json
24
+ shuffle: true
25
+ validation_steps: 200
26
+ trainable_modules:
27
+ - all
28
+ - attn1
29
+ - conv_in
30
+ - temp_conv
31
+ - motion
32
+ not_trainable_modules: []
33
+ trainable_text_modules: null
34
+ extra_unet_params: null
35
+ extra_text_encoder_params: null
36
+ train_batch_size: 4
37
+ max_train_steps: 10000
38
+ learning_rate: 5.0e-06
39
+ scale_lr: false
40
+ lr_scheduler: constant
41
+ lr_warmup_steps: 0
42
+ adam_beta1: 0.9
43
+ adam_beta2: 0.999
44
+ adam_weight_decay: 0
45
+ adam_epsilon: 1.0e-08
46
+ max_grad_norm: 1.0
47
+ gradient_accumulation_steps: 1
48
+ gradient_checkpointing: true
49
+ text_encoder_gradient_checkpointing: false
50
+ checkpointing_steps: 2000
51
+ resume_from_checkpoint: null
52
+ resume_step: null
53
+ mixed_precision: fp16
54
+ use_8bit_adam: false
55
+ enable_xformers_memory_efficient_attention: false
56
+ enable_torch_2_attn: true
57
+ seed: null
58
+ train_text_encoder: false
59
+ use_offset_noise: false
60
+ rescale_schedule: false
61
+ offset_noise_strength: 0.1
62
+ extend_dataset: false
63
+ cache_latents: false
64
+ cached_latent_dir: null
65
+ lora_version: cloneofsimo
66
+ save_lora_for_webui: true
67
+ only_lora_for_webui: false
68
+ lora_bias: none
69
+ use_unet_lora: false
70
+ use_text_lora: false
71
+ unet_lora_modules:
72
+ - UNet3DConditionModel
73
+ text_encoder_lora_modules:
74
+ - CLIPEncoderLayer
75
+ save_pretrained_model: true
76
+ lora_rank: 16
77
+ lora_path: ''
78
+ lora_unet_dropout: 0.1
79
+ lora_text_dropout: 0.1
80
+ logger_type: tensorboard
81
+ motion_mask: true
82
+ motion_strength: true
83
+ kwargs: {}
model_index.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LatentToVideoPipeline",
3
+ "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "output/latent/train_2023-12-15T12-02-48/checkpoint-2000",
5
+ "scheduler": [
6
+ "diffusers",
7
+ "DDIMScheduler"
8
+ ],
9
+ "text_encoder": [
10
+ "transformers",
11
+ "CLIPTextModel"
12
+ ],
13
+ "tokenizer": [
14
+ "transformers",
15
+ "CLIPTokenizer"
16
+ ],
17
+ "unet": [
18
+ "models.unet_3d_condition_mask",
19
+ "UNet3DConditionModel"
20
+ ],
21
+ "vae": [
22
+ "diffusers",
23
+ "AutoencoderKL"
24
+ ]
25
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DDIMScheduler",
3
+ "_diffusers_version": "0.24.0",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
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
+ "set_alpha_to_one": false,
15
+ "skip_prk_steps": true,
16
+ "steps_offset": 1,
17
+ "thresholding": false,
18
+ "timestep_spacing": "leading",
19
+ "trained_betas": null
20
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "output/latent/train_2023-12-15T12-02-48/checkpoint-2000",
3
+ "architectures": [
4
+ "CLIPTextModel"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dropout": 0.0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_size": 1024,
12
+ "initializer_factor": 1.0,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 4096,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 77,
17
+ "model_type": "clip_text_model",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 23,
20
+ "pad_token_id": 1,
21
+ "projection_dim": 512,
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.34.1",
24
+ "vocab_size": 49408
25
+ }
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb24b36c82491320c0a990bdbb3de4cf4f7e4819aaff390d596a0f41d75bdd84
3
+ size 1361596304
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "!",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "!",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "49406": {
13
+ "content": "<|startoftext|>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "49407": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "bos_token": "<|startoftext|>",
30
+ "clean_up_tokenization_spaces": true,
31
+ "do_lower_case": true,
32
+ "eos_token": "<|endoftext|>",
33
+ "errors": "replace",
34
+ "model_max_length": 77,
35
+ "pad_token": "!",
36
+ "tokenizer_class": "CLIPTokenizer",
37
+ "unk_token": "<|endoftext|>"
38
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
unet/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet3DConditionModel",
3
+ "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "output/latent/train_2023-12-15T12-02-48/checkpoint-2000",
5
+ "act_fn": "silu",
6
+ "attention_head_dim": 64,
7
+ "block_out_channels": [
8
+ 320,
9
+ 640,
10
+ 1280,
11
+ 1280
12
+ ],
13
+ "cross_attention_dim": 1024,
14
+ "down_block_types": [
15
+ "CrossAttnDownBlock3D",
16
+ "CrossAttnDownBlock3D",
17
+ "CrossAttnDownBlock3D",
18
+ "DownBlock3D"
19
+ ],
20
+ "downsample_padding": 1,
21
+ "in_channels": 4,
22
+ "layers_per_block": 2,
23
+ "mid_block_scale_factor": 1,
24
+ "motion_mask": true,
25
+ "motion_strength": true,
26
+ "norm_eps": 1e-05,
27
+ "norm_num_groups": 32,
28
+ "out_channels": 4,
29
+ "sample_size": 32,
30
+ "up_block_types": [
31
+ "UpBlock3D",
32
+ "CrossAttnUpBlock3D",
33
+ "CrossAttnUpBlock3D",
34
+ "CrossAttnUpBlock3D"
35
+ ]
36
+ }
unet/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c83d7d4abbc91386c8f29b493b7b8939e38860109d2859d98ba757a690b6a6a
3
+ size 5653789792
vae/config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKL",
3
+ "_diffusers_version": "0.24.0",
4
+ "_name_or_path": "output/latent/train_2023-12-15T12-02-48/checkpoint-2000",
5
+ "act_fn": "silu",
6
+ "block_out_channels": [
7
+ 128,
8
+ 256,
9
+ 512,
10
+ 512
11
+ ],
12
+ "down_block_types": [
13
+ "DownEncoderBlock2D",
14
+ "DownEncoderBlock2D",
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D"
17
+ ],
18
+ "force_upcast": true,
19
+ "in_channels": 3,
20
+ "latent_channels": 4,
21
+ "layers_per_block": 2,
22
+ "norm_num_groups": 32,
23
+ "out_channels": 3,
24
+ "sample_size": 512,
25
+ "scaling_factor": 0.18215,
26
+ "up_block_types": [
27
+ "UpDecoderBlock2D",
28
+ "UpDecoderBlock2D",
29
+ "UpDecoderBlock2D",
30
+ "UpDecoderBlock2D"
31
+ ]
32
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc436097e5cbb105c44df4403ae84acf7e81de1f64acfedc334888e9a8eea223
3
+ size 334643268