Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Isi-dev committed Aug 1, 2024
2 parents 89e3bad + 626e7af commit 1930c5b
Show file tree
Hide file tree
Showing 204 changed files with 16,545 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
*.pkl
*.pt
*.mov
Expand All @@ -16,3 +17,23 @@ outputs/
**/__pycache__
***/__pycache__
*/__pycache__
=======
*.pkl
*.pt
*.mov
*.pth
*.mov
*.npz
*.npy
*.boj
*.onnx
*.tar
*.bin
cache*
.DS_Store
*DS_Store
outputs/
**/__pycache__
***/__pycache__
*/__pycache__
>>>>>>> 626e7afc02230297b6f553675ea1c32c29971314
5 changes: 5 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<<<<<<< HEAD
from .uniAnimate_Inference import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS

=======
from .uniAnimate_Inference import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS

>>>>>>> 626e7afc02230297b6f553675ea1c32c29971314
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
Binary file added __pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/run_align_pose.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/uniAnimate_Inference.cpython-310.pyc
Binary file not shown.
103 changes: 103 additions & 0 deletions configs/UniAnimate_infer.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# manual setting
max_frames: 1
resolution: [512, 768] # or resolution: [768, 1216]
Expand Down Expand Up @@ -98,4 +99,106 @@ Diffusion: {
'noise_strength': 0.1
}
use_DiffusionDPM: False
=======
# manual setting
max_frames: 1
resolution: [512, 768] # or resolution: [768, 1216]
# resolution: [768, 1216]
round: 1
ddim_timesteps: 30 # among 25-50
seed: 11 # 7
test_list_path: [
# Format: [frame_interval, reference image, driving pose sequence]
# [2, "data/images/WOMEN-Blouses_Shirts-id_00004955-01_4_full.jpg", "data/saved_pose/WOMEN-Blouses_Shirts-id_00004955-01_4_full"],
# [2, "data/images/musk.jpg", "data/saved_pose/musk"],
# [2, "data/images/WOMEN-Blouses_Shirts-id_00005125-03_4_full.jpg", "data/saved_pose/WOMEN-Blouses_Shirts-id_00005125-03_4_full"],
# [2, "data/images/IMG_20240514_104337.jpg", "data/saved_pose/IMG_20240514_104337"]
[1, "data/images/i.png", "data/saved_pose/dancePoses"]

]
partial_keys: [
# ['image','local_image', "dwpose"], # reference image as the first frame of the generated video (optional)
['image', 'randomref', "dwpose"],
]




# default settings
TASK_TYPE: inference_unianimate_entrance
use_fp16: True
guide_scale: 2.5
vit_resolution: [224, 224]
use_fp16: True
batch_size: 1
latent_random_ref: True
chunk_size: 2
decoder_bs: 2
scale: 8
use_fps_condition: False
test_model: checkpoints/unianimate_16f_32f_non_ema_223000.pth
embedder: {
'type': 'FrozenOpenCLIPTextVisualEmbedder',
'layer': 'penultimate',
'pretrained': 'checkpoints/open_clip_pytorch_model.bin'
}


auto_encoder: {
'type': 'AutoencoderKL',
'ddconfig': {
'double_z': True,
'z_channels': 4,
'resolution': 256,
'in_channels': 3,
'out_ch': 3,
'ch': 128,
'ch_mult': [1, 2, 4, 4],
'num_res_blocks': 2,
'attn_resolutions': [],
'dropout': 0.0,
'video_kernel_size': [3, 1, 1]
},
'embed_dim': 4,
'pretrained': 'checkpoints/v2-1_512-ema-pruned.ckpt'
}

UNet: {
'type': 'UNetSD_UniAnimate',
'config': None,
'in_dim': 4,
'dim': 320,
'y_dim': 1024,
'context_dim': 1024,
'out_dim': 4,
'dim_mult': [1, 2, 4, 4],
'num_heads': 8,
'head_dim': 64,
'num_res_blocks': 2,
'dropout': 0.1,
'temporal_attention': True,
'num_tokens': 4,
'temporal_attn_times': 1,
'use_checkpoint': True,
'use_fps_condition': False,
'use_sim_mask': False
}
video_compositions: ['image', 'local_image', 'dwpose', 'randomref', 'randomref_pose']
Diffusion: {
'type': 'DiffusionDDIM',
'schedule': 'linear_sd',
'schedule_param': {
'num_timesteps': 1000,
"init_beta": 0.00085,
"last_beta": 0.0120,
'zero_terminal_snr': True,
},
'mean_type': 'v',
'loss_type': 'mse',
'var_type': 'fixed_small', # 'fixed_large',
'rescale_timesteps': False,
'noise_strength': 0.1
}
use_DiffusionDPM: False
>>>>>>> 626e7afc02230297b6f553675ea1c32c29971314
CPU_CLIP_VAE: True
104 changes: 104 additions & 0 deletions configs/UniAnimate_infer_long.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# manual setting
# resolution: [512, 768] # or [768, 1216]
resolution: [768, 1216]
Expand Down Expand Up @@ -99,3 +100,106 @@ Diffusion: {
}
CPU_CLIP_VAE: True
context_batch_size: 1
=======
# manual setting
# resolution: [512, 768] # or [768, 1216]
resolution: [768, 1216]
round: 1
ddim_timesteps: 30 # among 25-50
context_size: 32
context_stride: 1
context_overlap: 8
seed: 7
max_frames: "None" # 64, 96, "None" mean the length of original pose sequence
test_list_path: [
# Format: [frame_interval, reference image, driving pose sequence]
[2, "data/images/WOMEN-Blouses_Shirts-id_00004955-01_4_full.jpg", "data/saved_pose/WOMEN-Blouses_Shirts-id_00004955-01_4_full"],
[2, "data/images/musk.jpg", "data/saved_pose/musk"],
[2, "data/images/WOMEN-Blouses_Shirts-id_00005125-03_4_full.jpg", "data/saved_pose/WOMEN-Blouses_Shirts-id_00005125-03_4_full"],
[2, "data/images/IMG_20240514_104337.jpg", "data/saved_pose/IMG_20240514_104337"],
[2, "data/images/IMG_20240514_104337.jpg", "data/saved_pose/IMG_20240514_104337_dance"],
[2, "data/images/WOMEN-Blouses_Shirts-id_00005125-03_4_full.jpg", "data/saved_pose/WOMEN-Blouses_Shirts-id_00005125-03_4_full_dance"]
]


# default settings
TASK_TYPE: inference_unianimate_long_entrance
use_fp16: True
guide_scale: 2.5
vit_resolution: [224, 224]
use_fp16: True
batch_size: 1
latent_random_ref: True
chunk_size: 2
decoder_bs: 2
scale: 8
use_fps_condition: False
test_model: checkpoints/unianimate_16f_32f_non_ema_223000.pth
partial_keys: [
['image', 'randomref', "dwpose"],
]
embedder: {
'type': 'FrozenOpenCLIPTextVisualEmbedder',
'layer': 'penultimate',
'pretrained': 'checkpoints/open_clip_pytorch_model.bin'
}


auto_encoder: {
'type': 'AutoencoderKL',
'ddconfig': {
'double_z': True,
'z_channels': 4,
'resolution': 256,
'in_channels': 3,
'out_ch': 3,
'ch': 128,
'ch_mult': [1, 2, 4, 4],
'num_res_blocks': 2,
'attn_resolutions': [],
'dropout': 0.0,
'video_kernel_size': [3, 1, 1]
},
'embed_dim': 4,
'pretrained': 'checkpoints/v2-1_512-ema-pruned.ckpt'
}

UNet: {
'type': 'UNetSD_UniAnimate',
'config': None,
'in_dim': 4,
'dim': 320,
'y_dim': 1024,
'context_dim': 1024,
'out_dim': 4,
'dim_mult': [1, 2, 4, 4],
'num_heads': 8,
'head_dim': 64,
'num_res_blocks': 2,
'dropout': 0.1,
'temporal_attention': True,
'num_tokens': 4,
'temporal_attn_times': 1,
'use_checkpoint': True,
'use_fps_condition': False,
'use_sim_mask': False
}
video_compositions: ['image', 'local_image', 'dwpose', 'randomref', 'randomref_pose']
Diffusion: {
'type': 'DiffusionDDIMLong',
'schedule': 'linear_sd',
'schedule_param': {
'num_timesteps': 1000,
"init_beta": 0.00085,
"last_beta": 0.0120,
'zero_terminal_snr': True,
},
'mean_type': 'v',
'loss_type': 'mse',
'var_type': 'fixed_small',
'rescale_timesteps': False,
'noise_strength': 0.1
}
CPU_CLIP_VAE: True
context_batch_size: 1
>>>>>>> 626e7afc02230297b6f553675ea1c32c29971314
Binary file added dwpose/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/onnxdet.cpython-310.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/onnxdet.cpython-39.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/onnxpose.cpython-310.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/onnxpose.cpython-39.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/util.cpython-310.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/util.cpython-39.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/wholebody.cpython-310.pyc
Binary file not shown.
Binary file added dwpose/__pycache__/wholebody.cpython-39.pyc
Binary file not shown.
Loading

0 comments on commit 1930c5b

Please sign in to comment.