hyejin.shin
commited on
Commit
·
63b4b97
1
Parent(s):
9ea768e
add models
Browse files- README.md +26 -0
- feature_extractor/preprocessor_config.json +27 -0
- model_index.json +36 -0
- motion_adapter/config.json +18 -0
- motion_adapter/diffusion_pytorch_model.safetensors +3 -0
- scheduler/scheduler_config.json +21 -0
- text_encoder/config.json +25 -0
- text_encoder/model.safetensors +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/special_tokens_map.json +24 -0
- tokenizer/tokenizer_config.json +30 -0
- tokenizer/vocab.json +0 -0
- unet/config.json +49 -0
- unet/diffusion_pytorch_model.safetensors +3 -0
- vae/config.json +36 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# How to make
|
2 |
+
- pretrained model: [epiCRealism](https://civitai.com/models/25694?modelVersionId=134065) + [hyper CFG lora 12steps](https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SD15-12steps-CFG-lora.safetensors)
|
3 |
+
-> merge with lora weight 0.3
|
4 |
+
- lora model: [AnimateLCM_sd15_t2v_lora.safetensors](https://huggingface.co/wangfuyun/AnimateLCM/blob/main/AnimateLCM_sd15_t2v_lora.safetensors)-> merge with lora weight 0.3
|
5 |
+
|
6 |
+
```python
|
7 |
+
# Load the motion adapter
|
8 |
+
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=torch.float16)
|
9 |
+
|
10 |
+
# load SD 1.5 based finetuned model
|
11 |
+
model_id = "/home/hyejin2/test/models/epiCRealism-hyper-LCM.safetensors"
|
12 |
+
|
13 |
+
pipe = AnimateDiffVideoToVideoPipeline.from_single_file(model_id, motion_adapter=adapter, torch_dtype=torch.float16)
|
14 |
+
pipe.save_pretrained("models/hello")
|
15 |
+
```
|
16 |
+
|
17 |
+
# How to use
|
18 |
+
```python
|
19 |
+
model_id = "jstep750/animatediff_v2v"
|
20 |
+
|
21 |
+
pipe = AnimateDiffVideoToVideoPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
22 |
+
|
23 |
+
# enable memory savings
|
24 |
+
pipe.enable_vae_slicing()
|
25 |
+
pipe.enable_model_cpu_offload()
|
26 |
+
```
|
feature_extractor/preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": true,
|
7 |
+
"do_convert_rgb": true,
|
8 |
+
"do_normalize": true,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"image_mean": [
|
12 |
+
0.48145466,
|
13 |
+
0.4578275,
|
14 |
+
0.40821073
|
15 |
+
],
|
16 |
+
"image_processor_type": "CLIPImageProcessor",
|
17 |
+
"image_std": [
|
18 |
+
0.26862954,
|
19 |
+
0.26130258,
|
20 |
+
0.27577711
|
21 |
+
],
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"shortest_edge": 224
|
26 |
+
}
|
27 |
+
}
|
model_index.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AnimateDiffVideoToVideoPipeline",
|
3 |
+
"_diffusers_version": "0.29.2",
|
4 |
+
"feature_extractor": [
|
5 |
+
"transformers",
|
6 |
+
"CLIPImageProcessor"
|
7 |
+
],
|
8 |
+
"image_encoder": [
|
9 |
+
null,
|
10 |
+
null
|
11 |
+
],
|
12 |
+
"motion_adapter": [
|
13 |
+
"diffusers",
|
14 |
+
"MotionAdapter"
|
15 |
+
],
|
16 |
+
"scheduler": [
|
17 |
+
"diffusers",
|
18 |
+
"DPMSolverSinglestepScheduler"
|
19 |
+
],
|
20 |
+
"text_encoder": [
|
21 |
+
"transformers",
|
22 |
+
"CLIPTextModel"
|
23 |
+
],
|
24 |
+
"tokenizer": [
|
25 |
+
"transformers",
|
26 |
+
"CLIPTokenizer"
|
27 |
+
],
|
28 |
+
"unet": [
|
29 |
+
"diffusers",
|
30 |
+
"UNetMotionModel"
|
31 |
+
],
|
32 |
+
"vae": [
|
33 |
+
"diffusers",
|
34 |
+
"AutoencoderKL"
|
35 |
+
]
|
36 |
+
}
|
motion_adapter/config.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "MotionAdapter",
|
3 |
+
"_diffusers_version": "0.29.2",
|
4 |
+
"_name_or_path": "guoyww/animatediff-motion-adapter-v1-5-3",
|
5 |
+
"block_out_channels": [
|
6 |
+
320,
|
7 |
+
640,
|
8 |
+
1280,
|
9 |
+
1280
|
10 |
+
],
|
11 |
+
"conv_in_channels": null,
|
12 |
+
"motion_layers_per_block": 2,
|
13 |
+
"motion_max_seq_length": 32,
|
14 |
+
"motion_mid_block_layers_per_block": 1,
|
15 |
+
"motion_norm_num_groups": 32,
|
16 |
+
"motion_num_attention_heads": 8,
|
17 |
+
"use_motion_mid_block": false
|
18 |
+
}
|
motion_adapter/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d8e6bcf5b5d76d21019aee9f90dccc5276affc0616dc1738431410a64171562
|
3 |
+
size 835473448
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "DPMSolverSinglestepScheduler",
|
3 |
+
"_diffusers_version": "0.29.2",
|
4 |
+
"algorithm_type": "dpmsolver++",
|
5 |
+
"beta_end": 0.0145,
|
6 |
+
"beta_schedule": "linear",
|
7 |
+
"beta_start": 0.00065,
|
8 |
+
"dynamic_thresholding_ratio": 0.995,
|
9 |
+
"final_sigmas_type": "zero",
|
10 |
+
"lambda_min_clipped": -Infinity,
|
11 |
+
"lower_order_final": true,
|
12 |
+
"num_train_timesteps": 1000,
|
13 |
+
"prediction_type": "epsilon",
|
14 |
+
"sample_max_value": 1.0,
|
15 |
+
"solver_order": 2,
|
16 |
+
"solver_type": "midpoint",
|
17 |
+
"thresholding": false,
|
18 |
+
"trained_betas": null,
|
19 |
+
"use_karras_sigmas": true,
|
20 |
+
"variance_type": null
|
21 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "openai/clip-vit-large-patch14",
|
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": "quick_gelu",
|
11 |
+
"hidden_size": 768,
|
12 |
+
"initializer_factor": 1.0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 3072,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 77,
|
17 |
+
"model_type": "clip_text_model",
|
18 |
+
"num_attention_heads": 12,
|
19 |
+
"num_hidden_layers": 12,
|
20 |
+
"pad_token_id": 1,
|
21 |
+
"projection_dim": 768,
|
22 |
+
"torch_dtype": "float16",
|
23 |
+
"transformers_version": "4.43.2",
|
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:0c99ab9d59f69f6bd3837ad95469ec4c23e8e87a7d0f07fa23d70a6f173acec3
|
3 |
+
size 246144152
|
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,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "<|endoftext|>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<|endoftext|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer/tokenizer_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"49406": {
|
5 |
+
"content": "<|startoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"49407": {
|
13 |
+
"content": "<|endoftext|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"bos_token": "<|startoftext|>",
|
22 |
+
"clean_up_tokenization_spaces": true,
|
23 |
+
"do_lower_case": true,
|
24 |
+
"eos_token": "<|endoftext|>",
|
25 |
+
"errors": "replace",
|
26 |
+
"model_max_length": 77,
|
27 |
+
"pad_token": "<|endoftext|>",
|
28 |
+
"tokenizer_class": "CLIPTokenizer",
|
29 |
+
"unk_token": "<|endoftext|>"
|
30 |
+
}
|
tokenizer/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
unet/config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNetMotionModel",
|
3 |
+
"_diffusers_version": "0.29.2",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"addition_embed_type": null,
|
6 |
+
"addition_time_embed_dim": null,
|
7 |
+
"attention_head_dim": 8,
|
8 |
+
"block_out_channels": [
|
9 |
+
320,
|
10 |
+
640,
|
11 |
+
1280,
|
12 |
+
1280
|
13 |
+
],
|
14 |
+
"center_input_sample": false,
|
15 |
+
"cross_attention_dim": 768,
|
16 |
+
"down_block_types": [
|
17 |
+
"CrossAttnDownBlockMotion",
|
18 |
+
"CrossAttnDownBlockMotion",
|
19 |
+
"CrossAttnDownBlockMotion",
|
20 |
+
"DownBlockMotion"
|
21 |
+
],
|
22 |
+
"downsample_padding": 1,
|
23 |
+
"encoder_hid_dim": null,
|
24 |
+
"encoder_hid_dim_type": null,
|
25 |
+
"flip_sin_to_cos": true,
|
26 |
+
"freq_shift": 0,
|
27 |
+
"in_channels": 4,
|
28 |
+
"layers_per_block": 2,
|
29 |
+
"mid_block_scale_factor": 1,
|
30 |
+
"motion_max_seq_length": 32,
|
31 |
+
"motion_num_attention_heads": 8,
|
32 |
+
"norm_eps": 1e-05,
|
33 |
+
"norm_num_groups": 32,
|
34 |
+
"num_attention_heads": 8,
|
35 |
+
"out_channels": 4,
|
36 |
+
"projection_class_embeddings_input_dim": null,
|
37 |
+
"reverse_transformer_layers_per_block": null,
|
38 |
+
"sample_size": 64,
|
39 |
+
"time_cond_proj_dim": null,
|
40 |
+
"transformer_layers_per_block": 1,
|
41 |
+
"up_block_types": [
|
42 |
+
"UpBlockMotion",
|
43 |
+
"CrossAttnUpBlockMotion",
|
44 |
+
"CrossAttnUpBlockMotion",
|
45 |
+
"CrossAttnUpBlockMotion"
|
46 |
+
],
|
47 |
+
"use_linear_projection": false,
|
48 |
+
"use_motion_mid_block": false
|
49 |
+
}
|
unet/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b18686171a652fd1c511d0bcaacfe1f124808189fafaff0bcb800d615e27c1b7
|
3 |
+
size 2554599720
|
vae/config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.29.2",
|
4 |
+
"act_fn": "silu",
|
5 |
+
"block_out_channels": [
|
6 |
+
128,
|
7 |
+
256,
|
8 |
+
512,
|
9 |
+
512
|
10 |
+
],
|
11 |
+
"down_block_types": [
|
12 |
+
"DownEncoderBlock2D",
|
13 |
+
"DownEncoderBlock2D",
|
14 |
+
"DownEncoderBlock2D",
|
15 |
+
"DownEncoderBlock2D"
|
16 |
+
],
|
17 |
+
"force_upcast": true,
|
18 |
+
"in_channels": 3,
|
19 |
+
"latent_channels": 4,
|
20 |
+
"latents_mean": null,
|
21 |
+
"latents_std": null,
|
22 |
+
"layers_per_block": 2,
|
23 |
+
"norm_num_groups": 32,
|
24 |
+
"out_channels": 3,
|
25 |
+
"sample_size": 512,
|
26 |
+
"scaling_factor": 0.18215,
|
27 |
+
"shift_factor": null,
|
28 |
+
"up_block_types": [
|
29 |
+
"UpDecoderBlock2D",
|
30 |
+
"UpDecoderBlock2D",
|
31 |
+
"UpDecoderBlock2D",
|
32 |
+
"UpDecoderBlock2D"
|
33 |
+
],
|
34 |
+
"use_post_quant_conv": true,
|
35 |
+
"use_quant_conv": true
|
36 |
+
}
|
vae/diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48ac39ebb4b0c7f967336ab7a789fc301f88f9cc298523458ccbd6bb1782af82
|
3 |
+
size 167335342
|