SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.08465 · 2023

MotionDirector: Motion Customization of Text-to-Video Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 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; 6 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 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/2310.08465.json · badge: /api/ran/2310.08465.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
showlab/MotionDirector canonical (classifier label)
classifier basis: census
14 ran · 4 no recorded run
FunctionStatusWhere it lives
convert_text_enc_state_dict Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/convert_diffusers_to_original_ms_text_to_video.py
code served (permissive licence) · get_code("a59539766c1c5a5a")
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 dict. 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)

# The function convert_text_enc_state_dict takes a text_enc_dict parameter
# and returns it as-is. Based on the function body, it simply returns the input dict.
# A state_dict in PyTorch is typically a dictionary mapping parameter names to tensors.

text_enc_dict = {
    'layer1.weight': torch.randn(4, 3),
    'layer1.bias': torch.randn(4),
    'layer2.weight': torch.randn(5, 4),
    'layer2.bias': torch.randn(5),
}

ARGS = {
    'text_enc_dict': text_enc_dict
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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_text_enc_state_dict_v20 Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/convert_diffusers_to_original_ms_text_to_video.py
code served (permissive licence) · get_code("8d4b0c9f8b9a884e")
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 dict. 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 re

torch.manual_seed(0)

# Create a minimal state dict that matches what the function expects
text_enc_dict = {
    # Regular keys that will be relabelled
    'transformer.text_model.final_layer_norm.weight': torch.randn(4),
    'transformer.text_model.final_layer_norm.bias': torch.randn(4),
    'text_model.encoder.layers.0.layer_norm1.weight': torch.randn(4),
    'text_model.encoder.layers.0.fc1.weight': torch.randn(4, 3),
    'text_model.encoder.layers.0.fc2.bias': torch.randn(4),
    
    # QKV weight keys
    'text_model.encoder.layers.0.self_attn.q_proj.weight': torch.randn(4, 3),
    'text_model.encoder.layers.0.self_attn.k_proj.weight': torch.randn(4, 3),
    'text_model.encoder.layers.0.self_attn.v_proj.weight': torch.randn(4, 3),
    
    # QKV bias keys
    'text_model.encoder.layers.0.self_attn.q_proj.bias': torch.randn(4),
    'text_model.encoder.layers.0.self_attn.k_proj.bias': torch.randn(4),
    'text_model.encoder.layers.0.self_attn.v_proj.bias': torch.randn(4),
    
    # Token and positional embeddings
    'transformer.text_model.embeddings.token_embedding.weight': torch.randn(100, 4),
    'transformer.text_model.embeddings.position_embedding.weight': torch.randn(77, 4),
}

ARGS = {
    'text_enc_dict': text_enc_dict
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
create_output_folders Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/MotionDirector_train.py
code served (permissive licence) · get_code("94c11dbf4942965e")
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 datetime
import os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Define the arguments
ARGS = {
    'output_dir': temp_dir,
    'config': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 10,
        'model_name': 'test_model'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
filter_dict Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/lora_handler.py
code served (permissive licence) · get_code("9191602362628ded")
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 dict. 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)

# Analyze the function:
# filter_dict takes two parameters: _dict and keys
# It filters _dict to only include keys that are in the keys list
# It also validates that all keys in the keys list exist in lora_args.keys()

# Create a valid _dict argument (should be similar to lora_args structure)
_dict = {
    'model': None,
    'loras': None,
    'target_replace_module': [],
    'target_module': [],
    'r': 4,
    'search_class': [torch.nn.Linear],
    'dropout': 0,
    'lora_bias': 'none'
}

# Create valid keys list - should be a subset of lora_args keys
keys = ['r', 'dropout', 'lora_bias']

ARGS = {
    '_dict': _dict,
    'keys': keys
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_bucket_sizes Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/bucketing.py
code served (permissive licence) · get_code("f37666c50cfeb34b")
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 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

torch.manual_seed(0)

ARGS = {
    'size': 256,
    'direction': 'down',
    'min_size': 192
}
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 list, ndim 1, dtype family int — 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
get_noise_pred_single Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/ddim_utils.py
code served (permissive licence) · get_code("0b088617d5525751")
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 torch.nn as nn

torch.manual_seed(0)

# Build a minimal UNet that accepts latents, t, and encoder_hidden_states
class MiniUNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, latents, t, encoder_hidden_states=None):
        # latents: [batch, channels]
        # t: scalar or tensor
        # encoder_hidden_states: [batch, seq_len, hidden_dim]
        # Return dict with 'sample' key
        noise_pred = self.linear(latents)
        return {'sample': noise_pred}

# Create instances
latents = torch.randn(2, 4)  # batch=2, channels=4
t = torch.tensor(5)  # timestep
context = torch.randn(2, 3, 5)  # batch=2, seq_len=3, hidden_dim=5
unet = MiniUNet()

ARGS = {
    'latents': latents,
    't': t,
    'context': context,
    'unet': unet
}
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
get_prompt_ids Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/dataset.py
code served (permissive licence) · get_code("6f7c993202e44dda")
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 int, shape (1, 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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.model_max_length = 8
    
    def __call__(self, prompt, truncation=True, padding='max_length', max_length=None, return_tensors=None):
        # Simulate tokenization: convert prompt to token IDs
        # Return a dict-like object with input_ids attribute
        tokens = [101, 2054, 2003, 1045, 102, 0, 0, 0]  # dummy token IDs padded to max_length
        result = MockTokenizerOutput(torch.tensor([tokens]))
        return result

class MockTokenizerOutput:
    def __init__(self, input_ids):
        self.input_ids = input_ids

prompt = "What is this?"
tokenizer = MockTokenizer()

ARGS = {
    "prompt": prompt,
    "tokenizer": tokenizer
}
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 int, shape (1, 8) — shape (1, 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_text_prompt Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/dataset.py
code served (permissive licence) · get_code("b2a01841e254dd24")
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 os
import tempfile

# Create a temporary directory and files for testing
temp_dir = tempfile.mkdtemp()

# Create a test caption file
caption_file_path = os.path.join(temp_dir, "test_video.txt")
with open(caption_file_path, 'w', encoding='utf8') as f:
    f.write("This is a test caption from file")

# Create a test video file path
video_file_path = os.path.join(temp_dir, "test_video.mp4")

ARGS = {
    'text_prompt': 'Direct text prompt',
    'fallback_prompt': 'Fallback text when nothing else works',
    'file_path': video_file_path,
    'ext_types': ['.mp4', '.avi'],
    'use_caption': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_total_frames Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/extract_16frames.py
code served (permissive licence) · get_code("ec9d9a3b095a1675")
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 int, ndim 0, dtype family int, shape () 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 cv2
import tempfile
import os
import numpy as np

# Create a temporary video file for testing
temp_dir = tempfile.mkdtemp()
video_path = os.path.join(temp_dir, "test_video.mp4")

# Create a simple video file with a few frames
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
fps = 30
frame_size = (640, 480)
out = cv2.VideoWriter(video_path, fourcc, fps, frame_size)

# Write 10 frames
for i in range(10):
    frame = np.zeros((480, 640, 3), dtype=np.uint8)
    frame[:, :] = [i * 25, i * 25, i * 25]  # Different color for each frame
    out.write(frame)

out.release()

ARGS = {
    "video_path": video_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
inject_trainable_lora Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/lora.py
code served (permissive licence) · get_code("44f3f2c610c7b72c")
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 2, 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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that has the structure expected by _find_modules
# The function looks for modules with class names in target_replace_module
class SimpleAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3, bias=False)
        self.linear2 = nn.Linear(3, 5, bias=True)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.attention = SimpleAttention()
        self.other_linear = nn.Linear(5, 2)
    
    def forward(self, x):
        x = self.attention(x)
        x = self.other_linear(x)
        return x

# Rename the attention module class to match the target
SimpleAttention.__name__ = 'Attention'

# Create model instance
model = SimpleModel()

# Build arguments dict
ARGS = {
    'model': model,
    'target_replace_module': {'Attention'},
    'r': 2,
    'loras': None,
    'verbose': False,
    'dropout_p': 0.1,
    'scale': 1.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 tuple, ndim 2, dtype family float — 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
min_res Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/bucketing.py
code served (permissive licence) · get_code("40775842d99a25f9")
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 int, ndim 0, dtype family int, shape () 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 numpy as np

torch.manual_seed(0)

def min_res(size, min_size):
    return 192 if size < 192 else size

ARGS = {
    "size": 150,
    "min_size": 192
}
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 int, ndim 0, dtype family int, shape () — shape () 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
next_step Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/ddim_utils.py
code served (permissive licence) · get_code("fb032d6fa7e6196d")
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 numpy as np

torch.manual_seed(0)

class DDIMSchedulerConfig:
    def __init__(self):
        self.num_train_timesteps = 1000

class DDIMScheduler:
    def __init__(self):
        self.config = DDIMSchedulerConfig()
        self.num_inference_steps = 50
        # Create alphas_cumprod with 1000 timesteps
        self.alphas_cumprod = torch.linspace(0.9999, 0.0001, 1000)
        self.final_alpha_cumprod = torch.tensor(0.0)

model_output = torch.randn(2, 4)
timestep = 500
sample = torch.randn(2, 4)
ddim_scheduler = DDIMScheduler()

ARGS = {
    "model_output": model_output,
    "timestep": timestep,
    "sample": sample,
    "ddim_scheduler": ddim_scheduler
}
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 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
read_caption_file Ran
ran; our contract draft was wrong, not the code
showlab/MotionDirector/utils/dataset.py
code served (permissive licence) · get_code("00090fcbdd45d352")
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 tempfile
import os

# Create a temporary caption file with some test content
temp_dir = tempfile.mkdtemp()
caption_file_path = os.path.join(temp_dir, "captions.txt")

with open(caption_file_path, 'w', encoding='utf8') as f:
    f.write("This is a test caption.\nAnother caption line.\n")

ARGS = {
    "caption_file": caption_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
up_down_bucket Ran
ran, honoured the contract we drafted
showlab/MotionDirector/utils/bucketing.py
code served (permissive licence) · get_code("bec7ef14686681c0")
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 int, ndim 0, dtype family int, shape () 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 numpy as np

def up_down_bucket(m_size, in_size, direction):
    if direction == 'down':
        return abs(int(m_size - in_size))
    if direction == 'up':
        return abs(int(m_size + in_size))

torch.manual_seed(0)

ARGS = {
    'm_size': 10,
    'in_size': 3,
    'direction': 'down'
}
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 int, ndim 0, dtype family int, shape () — shape () 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
convert_unet_state_dict Not yet run
unverified (harvested, no recorded run)
showlab/MotionDirector/utils/convert_diffusers_to_original_ms_text_to_video.py
code served (permissive licence) · get_code("754cea3454b8b8da")
How it ran

no invocation recorded.

init_prompt Not yet run
unverified (harvested, no recorded run)
showlab/MotionDirector/utils/ddim_utils.py
code served (permissive licence) · get_code("a0a4d94af120c56f")
How it ran

no invocation recorded.

inject_inferable_lora Not yet run
unverified (harvested, no recorded run)
showlab/MotionDirector/utils/lora.py
code served (permissive licence) · get_code("1516fe29d1f41fc9")
How it ran

no invocation recorded.

inject_trainable_lora_extended Not yet run
unverified (harvested, no recorded run)
showlab/MotionDirector/utils/lora.py
code served (permissive licence) · get_code("1220a3d67e1679cd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 14 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 3 the same month, 7 later) and 4 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
init_prompt 14 other papers
8 dated earlier, 2 the same month, 4 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 11 more not named here
next_step 11 other papers
6 dated earlier, 2 the same month, 3 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 8 more not named here
inject_trainable_lora 10 other papers
3 dated earlier, 7 later
2208.01618 (2022-08)
An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversion
2208.12242 (2022-08)
DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
and 7 more not named here
get_noise_pred_single 8 other papers
6 dated earlier, 1 the same month, 1 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 5 more not named here
min_res 2 other papers
1 dated earlier, 1 later
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
2311.12886 (2023-11)
AnimateAnything: Fine-Grained Open Domain Image Animation with Motion Guidance
up_down_bucket 2 other papers
1 dated earlier, 1 later
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
2311.12886 (2023-11)
AnimateAnything: Fine-Grained Open Domain Image Animation with Motion Guidance
convert_text_enc_state_dict 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
convert_text_enc_state_dict_v20 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
convert_unet_state_dict 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
filter_dict 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
get_bucket_sizes 1 other paper
1 later
2311.12886 (2023-11)
AnimateAnything: Fine-Grained Open Domain Image Animation with Motion Guidance
get_prompt_ids 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
inject_inferable_lora 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
read_caption_file 1 other paper
1 dated earlier
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report

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

Large-scale pre-trained diffusion models have exhibited remarkable capabilities in diverse video generations. Given a set of video clips of the same motion concept, the task of Motion Customization is to adapt existing text-to-video diffusion models to generate videos with this motion. For example, generating a video with a car moving in a prescribed manner under specific camera movements to make a movie, or a video illustrating how a bear would lift weights to inspire creators. Adaptation methods have been developed for customizing appearance like subject or style, yet unexplored for motion. It is straightforward to extend mainstream adaption methods for motion customization, including full model tuning, parameter-efficient tuning of additional layers, and Low-Rank Adaptions (LoRAs). However, the motion concept learned by these methods is often coupled with the limited appearances in the training videos, making it difficult to generalize the customized motion to other appearances. To overcome this challenge, we propose MotionDirector, with a dual-path LoRAs architecture to decouple the learning of appearance and motion. Further, we design a novel appearance-debiased temporal loss to mitigate the influence of appearance on the temporal training objective. Experimental results show the proposed method can generate videos of diverse appearances for the customized motions. Our method also supports various downstream applications, such as the mixing of different videos with their appearance and motion respectively, and animating a single image with customized motions. Our code and model weights will be released.

For agents

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

get_harvested_code_for_paper("2310.08465")
get_code_for_paper("2310.08465")
have("2310.08465")

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

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

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

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

Connect an agent — have() is free.