lucataco/magic-animate 🔢🖼️ → 🖼️
About
MagicAnimate: Temporally Consistent Human Image Animation using Diffusion Model

Example Output
Output
Performance Metrics
87.28s
Prediction Time
87.30s
Total Time
All Input Parameters
{ "image": "https://replicate.delivery/pbxt/JzgM3WOPIopVwRj4Pe7KPxC5DYYC3GUZx4GhjRtCOXwOoBoT/dalle8.jpeg", "video": "https://replicate.delivery/pbxt/JzgM380MyPyDjbgkCYGGPg1g2NWiV50W4PmD52JPIsjh9R9G/running.mp4", "guidance_scale": 7.5, "num_inference_steps": 25 }
Input Parameters
- seed
- Random seed. Leave blank to randomize the seed
- image (required)
- Input image
- video (required)
- Input motion video
- guidance_scale
- Scale for classifier-free guidance
- num_inference_steps
- Number of denoising steps
Output Schema
Output
Example Execution Logs
Using seed: 21244 /src/magic-animate/magicanimate/pipelines/pipeline_animation.py:43: FutureWarning: Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead. from diffusers.pipeline_utils import DiffusionPipeline loaded temporal unet's pretrained weights from /src/pretrained_models/stable-diffusion-v1-5/unet ... ### missing keys: 560; ### unexpected keys: 0; ### Temporal Module Parameters: 417.1376 M The config attributes {'addition_embed_type': None, 'addition_embed_type_num_heads': 64, 'addition_time_embed_dim': None, 'conditioning_channels': 3, 'encoder_hid_dim': None, 'encoder_hid_dim_type': None, 'global_pool_conditions': False, 'num_attention_heads': None, 'transformer_layers_per_block': 1} were passed to ControlNetModel, but are not expected and will be ignored. Please verify your config.json configuration file. It is recommended to provide `attention_head_dim` when calling `get_down_block`. Defaulting `attention_head_dim` to 8. It is recommended to provide `attention_head_dim` when calling `get_down_block`. Defaulting `attention_head_dim` to 8. It is recommended to provide `attention_head_dim` when calling `get_down_block`. Defaulting `attention_head_dim` to 8. It is recommended to provide `attention_head_dim` when calling `get_down_block`. Defaulting `attention_head_dim` to 8. /src/magic-animate/magicanimate/pipelines/pipeline_animation.py:103: FutureWarning: The configuration file of this scheduler: DDIMScheduler { "_class_name": "DDIMScheduler", "_diffusers_version": "0.21.4", "beta_end": 0.012, "beta_schedule": "linear", "beta_start": 0.00085, "clip_sample": true, "clip_sample_range": 1.0, "dynamic_thresholding_ratio": 0.995, "num_train_timesteps": 1000, "prediction_type": "epsilon", "rescale_betas_zero_snr": false, "sample_max_value": 1.0, "set_alpha_to_one": true, "steps_offset": 0, "thresholding": false, "timestep_spacing": "leading", "trained_betas": null } is outdated. `steps_offset` should be set to 1 instead of 0. Please make sure to update the config accordingly as leaving `steps_offset` might led to incorrect results in future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json` file deprecate("steps_offset!=1", "1.0.0", deprecation_message, standard_warn=False) /src/magic-animate/magicanimate/pipelines/pipeline_animation.py:116: FutureWarning: The configuration file of this scheduler: DDIMScheduler { "_class_name": "DDIMScheduler", "_diffusers_version": "0.21.4", "beta_end": 0.012, "beta_schedule": "linear", "beta_start": 0.00085, "clip_sample": true, "clip_sample_range": 1.0, "dynamic_thresholding_ratio": 0.995, "num_train_timesteps": 1000, "prediction_type": "epsilon", "rescale_betas_zero_snr": false, "sample_max_value": 1.0, "set_alpha_to_one": true, "steps_offset": 1, "thresholding": false, "timestep_spacing": "leading", "trained_betas": null } has not set the configuration `clip_sample`. `clip_sample` should be set to False in the configuration file. Please make sure to update the config accordingly as not setting `clip_sample` in the config might lead to incorrect results in future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json` file deprecate("clip_sample not set", "1.0.0", deprecation_message, standard_warn=False) current seed: 21244 0%| | 0/1 [00:00<?, ?it/s]/src/magic-animate/magicanimate/pipelines/pipeline_animation.py:624: FutureWarning: Accessing config attribute `in_channels` directly via 'UNet3DConditionModel' object attribute is deprecated. Please access 'in_channels' over 'UNet3DConditionModel's config object instead, e.g. 'unet.config.in_channels'. num_channels_latents = self.unet.in_channels 0%| | 0/25 [00:00<?, ?it/s][A 4%|▍ | 1/25 [00:02<00:52, 2.21s/it][A 8%|▊ | 2/25 [00:04<00:48, 2.09s/it][A 12%|█▏ | 3/25 [00:06<00:45, 2.05s/it][A 16%|█▌ | 4/25 [00:08<00:42, 2.05s/it][A 20%|██ | 5/25 [00:10<00:40, 2.04s/it][A 24%|██▍ | 6/25 [00:12<00:38, 2.03s/it][A 28%|██▊ | 7/25 [00:14<00:36, 2.02s/it][A 32%|███▏ | 8/25 [00:16<00:34, 2.02s/it][A 36%|███▌ | 9/25 [00:18<00:32, 2.02s/it][A 40%|████ | 10/25 [00:20<00:30, 2.02s/it][A 44%|████▍ | 11/25 [00:22<00:28, 2.02s/it][A 48%|████▊ | 12/25 [00:24<00:26, 2.01s/it][A 52%|█████▏ | 13/25 [00:26<00:24, 2.02s/it][A 56%|█████▌ | 14/25 [00:28<00:22, 2.01s/it][A 60%|██████ | 15/25 [00:30<00:20, 2.01s/it][A 64%|██████▍ | 16/25 [00:32<00:18, 2.02s/it][A 68%|██████▊ | 17/25 [00:34<00:16, 2.02s/it][A 72%|███████▏ | 18/25 [00:36<00:14, 2.02s/it][A 76%|███████▌ | 19/25 [00:38<00:12, 2.02s/it][A 80%|████████ | 20/25 [00:40<00:10, 2.02s/it][A 84%|████████▍ | 21/25 [00:42<00:08, 2.02s/it][A 88%|████████▊ | 22/25 [00:44<00:06, 2.02s/it][A 92%|█████████▏| 23/25 [00:46<00:04, 2.02s/it][A 96%|█████████▌| 24/25 [00:48<00:02, 2.02s/it][A 100%|██████████| 25/25 [00:50<00:00, 2.01s/it][A 100%|██████████| 25/25 [00:50<00:00, 2.03s/it] 0%| | 0/48 [00:00<?, ?it/s][A 12%|█▎ | 6/48 [00:00<00:00, 49.40it/s][A 23%|██▎ | 11/48 [00:00<00:01, 33.66it/s][A 31%|███▏ | 15/48 [00:00<00:01, 30.52it/s][A 40%|███▉ | 19/48 [00:00<00:01, 28.99it/s][A 46%|████▌ | 22/48 [00:00<00:00, 28.27it/s][A 52%|█████▏ | 25/48 [00:00<00:00, 27.77it/s][A 58%|█████▊ | 28/48 [00:00<00:00, 27.40it/s][A 65%|██████▍ | 31/48 [00:01<00:00, 27.15it/s][A 71%|███████ | 34/48 [00:01<00:00, 26.97it/s][A 77%|███████▋ | 37/48 [00:01<00:00, 26.84it/s][A 83%|████████▎ | 40/48 [00:01<00:00, 26.75it/s][A 90%|████████▉ | 43/48 [00:01<00:00, 26.69it/s][A 96%|█████████▌| 46/48 [00:01<00:00, 26.65it/s][A 100%|██████████| 48/48 [00:01<00:00, 28.17it/s] IMAGEIO FFMPEG_WRITER WARNING: input image is not divisible by macro_block_size=16, resizing from (1544, 516) to (1552, 528) to ensure video compatibility with most codecs and players. To prevent resizing, make your input image divisible by the macro_block_size or set the macro_block_size to 1 (risking incompatibility). [swscaler @ 0x6185740] Warning: data is not aligned! This can lead to a speed loss 100%|██████████| 1/1 [00:55<00:00, 55.93s/it] 100%|██████████| 1/1 [00:55<00:00, 55.93s/it] /src/magic-animate/samples/config-2023-12-05T04-46-07/videos/tmpaf72liowdalle8_tmp868xbl66running.mp4
Version Details
- Version ID
e24ad72cc67dd2a365b5b909aca70371bba62b685019f4e96317e59d4ace6714
- Version Created
- December 5, 2023