SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.13964 · 2023

PIA: Your Personalized Image Animator via Plug-and-Play Modules in Text-to-Image Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 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/2312.13964.json · badge: /api/ran/2312.13964.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
open-mmlab/PIA canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
preprocess_image Ran
ran, violated the contract we drafted
open-mmlab/PIA/animatediff/pipelines/validation_pipeline.py
code served (permissive licence) · get_code("e2c9cdbc65fd099e")
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 4, dtype family float, shape (1, 3, 24, 16) 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
import torch
from PIL import Image

torch.manual_seed(0)

# Test case 1: PIL Image input
pil_image = Image.new('RGB', (16, 24), color='red')

ARGS = {
    'image': pil_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 24, 16) — shape (1, 3, 24, 16) 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
preprocess_img Ran
ran; our contract draft was wrong, not the code
open-mmlab/PIA/predict.py
code served (permissive licence) · get_code("f954ca727a1b6f01")
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. 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 numpy as np
from PIL import Image
import io

# Create a small test image in memory
def create_test_image():
    # Create a simple 256x256 RGB image
    img_array = np.random.randint(0, 256, (256, 256, 3), dtype=np.uint8)
    img = Image.fromarray(img_array, mode='RGB')
    
    # Save to bytes buffer
    img_bytes = io.BytesIO()
    img.save(img_bytes, format='PNG')
    img_bytes.seek(0)
    return img_bytes

# Create the image
test_image = create_test_image()

ARGS = {
    'img_np': test_image,
    'max_size': 512
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
renew_resnet_paths Ran
ran; our contract draft was wrong, not the code
open-mmlab/PIA/animatediff/utils/convert_from_ckpt.py
code served (permissive licence) · get_code("dfb052a0af48540f")
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 list, ndim 1, dtype family float; 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

# Define the function to be tested
def shave_segments(path, n_shave_prefix_segments=1):
    """
    Removes segments. Positive values shave the first segments, negative shave the last segments.
    """
    if n_shave_prefix_segments >= 0:
        return '.'.join(path.split('.')[n_shave_prefix_segments:])
    else:
        return '.'.join(path.split('.')[:n_shave_prefix_segments])

def renew_resnet_paths(old_list, n_shave_prefix_segments=0):
    """
    Updates paths inside resnets to the new naming scheme (local renaming)
    """
    mapping = []
    for old_item in old_list:
        new_item = old_item.replace('in_layers.0', 'norm1')
        new_item = new_item.replace('in_layers.2', 'conv1')
        new_item = new_item.replace('out_layers.0', 'norm2')
        new_item = new_item.replace('out_layers.3', 'conv2')
        new_item = new_item.replace('emb_layers.1', 'time_emb_proj')
        new_item = new_item.replace('skip_connection', 'conv_shortcut')
        new_item = shave_segments(new_item, n_shave_prefix_segments=n_shave_prefix_segments)
        mapping.append({'old': old_item, 'new': new_item})
    return mapping

# Construct valid arguments
ARGS = {
    'old_list': [
        'module.in_layers.0.weight',
        'module.in_layers.2.bias',
        'module.out_layers.0.weight',
        'module.out_layers.3.bias',
        'module.emb_layers.1.weight',
        'module.skip_connection.weight',
    ],
    'n_shave_prefix_segments': 0
}
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 list, ndim 1, dtype family float — a list 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
renew_vae_resnet_paths Ran
ran; our contract draft was wrong, not the code
open-mmlab/PIA/animatediff/utils/convert_from_ckpt.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tuananhbui89/Erasing-Adversarial-Preservation, is pointer only (licence: NONE) · get_code("c5ec9c13e456a046")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tuananhbui89/Erasing-Adversarial-Preservation, and GitHub detected no licence in that repository when it was checked. 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. A run is recorded.

shave_segments Ran
ran; our contract draft was wrong, not the code
open-mmlab/PIA/animatediff/utils/convert_from_ckpt.py
code served (permissive licence) · get_code("cea0bc82e0c96896")
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 str. 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

torch.manual_seed(0)

# Analyzing the function:
# - path: string parameter that gets split by '.' and rejoined
# - n_shave_prefix_segments: int parameter that controls slicing behavior

ARGS = {
    'path': 'module.layer.weight.data.value',
    'n_shave_prefix_segments': 1
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
open-mmlab/PIA/animatediff/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
convert_lora Not yet run
unverified (harvested, no recorded run)
open-mmlab/PIA/animatediff/utils/convert_lora_safetensor_to_diffusers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from bujiazi/motionclone, is pointer only (licence: NONE) · get_code("9736e3792b57e25c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from bujiazi/motionclone, and GitHub detected no licence in that repository when it was checked. 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.

convert_lora_model_level Not yet run
unverified (harvested, no recorded run)
open-mmlab/PIA/animatediff/utils/convert_lora_safetensor_to_diffusers.py
code served (permissive licence) · get_code("441012f132a19443")
How it ran

no invocation recorded.

get_down_block Not yet run
unverified (harvested, no recorded run)
open-mmlab/PIA/animatediff/models/unet_blocks.py
code served (permissive licence) · get_code("8bcc66e888dc7b8a")
How it ran

no invocation recorded.

get_motion_module Not yet run
unverified (harvested, no recorded run)
open-mmlab/PIA/animatediff/models/motion_module.py
code served (permissive licence) · get_code("bbc20b3fd2f946ee")
How it ran

no invocation recorded.

get_up_block Not yet run
unverified (harvested, no recorded run)
open-mmlab/PIA/animatediff/models/unet_blocks.py
code served (permissive licence) · get_code("4ab05f5e735bedde")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 5 the same month, 6 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
81 dated earlier, 9 the same month, 105 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
renew_resnet_paths 14 other papers
5 dated earlier, 1 the same month, 8 later
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning
2310.15169 (2023-10)
FreeNoise: Tuning-Free Longer Video Diffusion via Noise Rescheduling
2311.03054 (2023-11)
AnyText: Multilingual Visual Text Generation And Editing
and 11 more not named here
shave_segments 14 other papers
5 dated earlier, 1 the same month, 8 later
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning
2310.15169 (2023-10)
FreeNoise: Tuning-Free Longer Video Diffusion via Noise Rescheduling
2311.03054 (2023-11)
AnyText: Multilingual Visual Text Generation And Editing
and 11 more not named here
get_motion_module 11 other papers
2 dated earlier, 1 the same month, 8 later
2310.19512 (2023-10)
VideoCrafter1: Open Diffusion Models for High-Quality Video Generation
2311.00213 (2023-11)
Consistent Video-to-Video Transfer Using Synthetic Dataset
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
and 8 more not named here
renew_vae_resnet_paths 11 other papers
4 dated earlier, 1 the same month, 6 later
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning
2310.15169 (2023-10)
FreeNoise: Tuning-Free Longer Video Diffusion via Noise Rescheduling
2311.16933 (2023-11)
SparseCtrl: Adding Sparse Controls to Text-to-Video Diffusion Models
and 8 more not named here
convert_lora 5 other papers
3 dated earlier, 2 later
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning
2310.15169 (2023-10)
FreeNoise: Tuning-Free Longer Video Diffusion via Noise Rescheduling
2311.16933 (2023-11)
SparseCtrl: Adding Sparse Controls to Text-to-Video Diffusion Models
and 2 more not named here
get_down_block 1 other paper
1 dated earlier
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning
get_up_block 1 other paper
1 dated earlier
2307.04725 (2023-07)
AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning

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

Recent advancements in personalized text-to-image (T2I) models have revolutionized content creation, empowering non-experts to generate stunning images with unique styles. While promising, adding realistic motions into these personalized images by text poses significant challenges in preserving distinct styles, high-fidelity details, and achieving motion controllability by text. In this paper, we present PIA, a Personalized Image Animator that excels in aligning with condition images, achieving motion controllability by text, and the compatibility with various personalized T2I models without specific tuning. To achieve these goals, PIA builds upon a base T2I model with well-trained temporal alignment layers, allowing for the seamless transformation of any personalized T2I model into an image animation model. A key component of PIA is the introduction of the condition module, which utilizes the condition frame and inter-frame affinity as input to transfer appearance information guided by the affinity hint for individual frame synthesis in the latent space. This design mitigates the challenges of appearance-related image alignment within and allows for a stronger focus on aligning with motion-related guidance.

For agents

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

get_harvested_code_for_paper("2312.13964")
get_code_for_paper("2312.13964")
have("2312.13964")

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

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

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

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

Connect an agent — have() is free.