SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16498 · 2023

MagicAnimate: Temporally Consistent Human Image Animation using Diffusion Model

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.16498.json · badge: /api/ran/2311.16498.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Wangt-CN/DisCo canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
magic-research/magic-animate community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
FunctionStatusWhere it lives
get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
magic-research/magic-animate/magicanimate/models/embeddings.py
code served (permissive licence) · get_code("45f1cb4de58b3f3d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (18, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Define ARGS dictionary with all parameters for get_2d_sincos_pos_embed
ARGS = {
    'embed_dim': 8,
    'grid_size': 4,
    'cls_token': True,
    'extra_tokens': 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (18, 8) — shape (18, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_loader_info Ran
ran, honoured the contract we drafted
Wangt-CN/DisCo/finetune_sdm_yaml.py
code served (permissive licence) · get_code("35055ffeec0c2bc1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class MockDataset:
    def __init__(self, split='train', length=1000, max_video_len=16):
        self.split = split
        self.max_video_len = max_video_len
        self._length = length
    
    def __len__(self):
        return self._length

class MockArgs:
    def __init__(self):
        self.max_video_len = 32
        self.world_size = 2
        self.epochs = 5
        self.ft_iters = 0

torch.manual_seed(0)

args = MockArgs()
size_batch = 16
dataset_train = MockDataset(split='train', length=1000, max_video_len=16)
dataset_val = MockDataset(split='val', length=200, max_video_len=16)

ARGS = {
    'args': args,
    'size_batch': size_batch,
    'dataset': dataset_train
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
magic-research/magic-animate/magicanimate/models/embeddings.py
code served (permissive licence) · get_code("38f69a3d1e46016d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

ARGS = {
    "timesteps": torch.tensor([0.0, 5.0], dtype=torch.float32),
    "embedding_dim": 4,
    "flip_sin_to_cos": False,
    "downscale_freq_shift": 1.0,
    "scale": 1.0,
    "max_period": 10000,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
zero_module Ran
ran; our contract draft was wrong, not the code
magic-research/magic-animate/magicanimate/models/motion_module.py
code served (permissive licence) · get_code("4719c763c53be3fe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned SimpleModule. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple nn.Module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.conv = nn.Conv1d(2, 5, 3)
    
    def forward(self, x):
        return x

module = SimpleModule()

ARGS = {
    "module": module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
zero_module Ran
ran; our contract draft was wrong, not the code
Wangt-CN/DisCo/config/disco_w_tm/tem_disco_temp_attn/controlnet_3d.py
code served (permissive licence) · get_code("da94debb8019ad46")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SimpleModule. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

torch.manual_seed(0)

# Create a simple neural network module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the module
module = SimpleModule()

# Define the ARGS dictionary
ARGS = {
    "module": module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
animate Not yet run
unverified (harvested, no recorded run)
magic-research/magic-animate/demo/gradio_animate_dist.py
code served (permissive licence) · get_code("9f252d8e0f051356")
How it ran

no invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
magic-research/magic-animate/magicanimate/models/embeddings.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from Nightmare-n/DepthAnyVideo, is pointer only (licence: NOASSERTION) · get_code("59fa7b38de05f443")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from Nightmare-n/DepthAnyVideo, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_down_block Not yet run
unverified (harvested, no recorded run)
Wangt-CN/DisCo/config/disco_w_tm/tem_disco_temp_attn/unet_blocks.py
code served (permissive licence) · get_code("6face8b545816855")
How it ran

no invocation recorded.

get_up_block Not yet run
unverified (harvested, no recorded run)
Wangt-CN/DisCo/config/disco_w_tm/tem_disco_temp_attn/unet_blocks.py
code served (permissive licence) · get_code("5d8155b625215a93")
How it ran

no invocation recorded.

tensor2pil Not yet run
unverified (harvested, no recorded run)
Wangt-CN/DisCo/config/disco_w_tm/tem_disco_temp_attn/net.py
code served (permissive licence) · get_code("039e4ab6fa0f7cbf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 7 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
zero_module 196 other papers
74 dated earlier, 6 the same month, 115 later, 1 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
get_2d_sincos_pos_embed 69 other papers
7 dated earlier, 62 later · 12 only as an assembly brick
2203.10897 (2022-03)
Unified Multivariate Gaussian Mixture for Efficient Neural Image Compression
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2303.14389 (2023-03)
Masked Diffusion Transformer is a Strong Image Synthesizer
and 66 more not named here
zero_module 40 other papers
5 dated earlier, 2 the same month, 33 later
2305.13077 (2023-05)
ControlVideo: Training-free Controllable Text-to-Video Generation
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
2308.03448 (2023-08)
Make Explicit Calibration Implicit: Calibrate Denoiser Instead of the Noise Model
and 37 more not named here
get_down_block 10 other papers
8 dated earlier, 2 later
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2212.11565 (2022-12)
Tune-A-Video: One-Shot Tuning of Image Diffusion Models for Text-to-Video Generation
2304.01186 (2023-04)
Follow Your Pose: Pose-Guided Text-to-Video Generation using Pose-Free Videos
and 7 more not named here
get_up_block 10 other papers
8 dated earlier, 2 later
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2212.11565 (2022-12)
Tune-A-Video: One-Shot Tuning of Image Diffusion Models for Text-to-Video Generation
2304.01186 (2023-04)
Follow Your Pose: Pose-Guided Text-to-Video Generation using Pose-Free Videos
and 7 more not named here
get_timestep_embedding 9 other papers
1 dated earlier, 8 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
2402.00769 (2024-02)
AnimateLCM: Computation-Efficient Personalized Style Video Generation without Personalized Video Data
and 6 more not named here
get_2d_sincos_pos_embed_from_grid 4 other papers
4 later
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
2405.20851 (2024-05)
MegActor: Harness the Power of Raw Video for Vivid Portrait Animation
2408.11001 (2024-08)
MegaFusion: Extend Diffusion Models towards Higher-resolution Image Generation without Further Tuning
and 1 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper studies the human image animation task, which aims to generate a video of a certain reference identity following a particular motion sequence. Existing animation works typically employ the frame-warping technique to animate the reference image towards the target motion. Despite achieving reasonable results, these approaches face challenges in maintaining temporal consistency throughout the animation due to the lack of temporal modeling and poor preservation of reference identity. In this work, we introduce MagicAnimate, a diffusion-based framework that aims at enhancing temporal consistency, preserving reference image faithfully, and improving animation fidelity. To achieve this, we first develop a video diffusion model to encode temporal information. Second, to maintain the appearance coherence across frames, we introduce a novel appearance encoder to retain the intricate details of the reference image. Leveraging these two innovations, we further employ a simple video fusion technique to encourage smooth transitions for long video animation. Empirical results demonstrate the superiority of our method over baseline approaches on two benchmarks. Notably, our approach outperforms the strongest baseline by over 38% in terms of video fidelity on the challenging TikTok dancing dataset. Code and model will be made available.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.16498")
get_code_for_paper("2311.16498")
have("2311.16498")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.16498.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.16498.svg)](https://syntology.ai/paper/2311.16498)

Connect an agent — have() is free.