SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.15835 · 2025

Text-based Animatable 3D Avatars with Morphable Model Alignment

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 2 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/2504.15835.json · badge: /api/ran/2504.15835.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
onethousand1000/animportrait3d canonical (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
adjust_text_embeddings Ran
ran on a synthesized input
onethousand1000/animportrait3d/GSAvatar/perpneg_utils.py
code served (permissive licence) · get_code("0b202cc831bb6cf8")
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 torch
import math

torch.manual_seed(0)

# Create embeddings dict with 'front', 'side', and 'back' keys
# Each embedding is a tensor of shape (3, 4) - 3 samples, 4 dimensions
embedding_dim = 4
batch_size = 3

embeddings = {
    'front': torch.randn(batch_size, embedding_dim),
    'side': torch.randn(batch_size, embedding_dim),
    'back': torch.randn(batch_size, embedding_dim),
}

# Create azimuth angles for a batch of 2
azimuth = torch.tensor([45.0, 150.0])

# Decay factors and negative weight
front_decay_factor = 2.0
side_decay_factor = 1.5
negative_w = 0.5

ARGS = {
    'embeddings': embeddings,
    'azimuth': azimuth,
    'front_decay_factor': front_decay_factor,
    'side_decay_factor': side_decay_factor,
    'negative_w': negative_w,
}
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 — 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
extract_5p Ran
ran on a synthesized input
onethousand1000/animportrait3d/GSAvatar/helper.py
code served (permissive licence) · get_code("1f9d3992ad1fcb46")
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 (5, 2) 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)

# The function extract_5p takes a single parameter 'lm' which is used as:
# - Indexed with numpy array indices: lm[lm_idx[0], :], lm[lm_idx[[1, 2]], :], etc.
# - Operations like torch.mean and torch.stack are applied
# - It should support indexing like a 2D tensor with shape (num_landmarks, num_dims)

# Create a landmark tensor with shape (56, 2) since we index up to index 55 (1-indexed becomes 0-indexed 54)
# We need at least 56 landmarks to support indices up to 55 (0-indexed)
lm = torch.randn(56, 2)

ARGS = {
    "lm": lm
}
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 (5, 2) — shape (5, 2) 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_perpendicular_component Ran
ran, honoured the contract we drafted
onethousand1000/animportrait3d/GSAvatar/perpneg_utils.py
code served (permissive licence) · get_code("8b06a657ede08dde")
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

torch.manual_seed(0)

# Create two tensors of the same shape
# The function computes the perpendicular component of x with respect to y
x = torch.randn(2, 4)
y = torch.randn(2, 4)

ARGS = {
    'x': x,
    'y': y
}
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_pos_neg_text_embeddings Ran
ran on a synthesized input
onethousand1000/animportrait3d/GSAvatar/perpneg_utils.py
code served (permissive licence) · get_code("7f6743926834b566")
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 torch
import math

torch.manual_seed(0)

# The function expects:
# - embeddings: a dict with keys 'front', 'side', 'back', each mapping to a tensor
# - azimuth_val: a numeric value (int or float)
# - front_decay_factor: a numeric value
# - side_decay_factor: a numeric value
# - negative_w: a numeric value

# Create small embedding tensors (batch_size=2, embedding_dim=4)
embedding_dim = 4
batch_size = 2

embeddings = {
    'front': torch.randn(batch_size, embedding_dim),
    'side': torch.randn(batch_size, embedding_dim),
    'back': torch.randn(batch_size, embedding_dim),
}

azimuth_val = 45.0
front_decay_factor = 2.0
side_decay_factor = 1.5
negative_w = 0.5

ARGS = {
    'embeddings': embeddings,
    'azimuth_val': azimuth_val,
    'front_decay_factor': front_decay_factor,
    'side_decay_factor': side_decay_factor,
    'negative_w': negative_w,
}
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 — 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
points_to_normal Ran
ran on a synthesized input
onethousand1000/animportrait3d/GSAvatar/render_animation.py
code served (permissive licence) · get_code("9936e5887f545def")
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 3, dtype family float, shape (3, 5, 6) 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

torch.manual_seed(0)

# The function expects a points tensor with shape (height, width, 3)
# where the last dimension represents 3D coordinates (x, y, z)
# The function computes normals using finite differences

points = torch.randn(5, 6, 3)

ARGS = {
    "points": points
}
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 3, dtype family float, shape (3, 5, 6) — shape (3, 5, 6) 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
prepare_controlnet_conditioning_image Ran
ran on a synthesized input
onethousand1000/animportrait3d/RiggedPointCloudGen/stable_diffusion_controlnet_img2img.py
code served (permissive licence) · get_code("0c27dcde399cf36d")
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 (12, 3, 64, 64) 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
import PIL.Image
from io import BytesIO

torch.manual_seed(0)

# Create a small PIL Image for testing
def create_small_pil_image(width, height):
    img_array = np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
    return PIL.Image.fromarray(img_array)

# Create sample conditioning images as PIL Images
controlnet_conditioning_image = [
    create_small_pil_image(64, 64),
    create_small_pil_image(64, 64)
]

width = 64
height = 64
batch_size = 2
num_images_per_prompt = 3
device = 'cpu'
dtype = torch.float32
do_classifier_free_guidance = True

ARGS = {
    'controlnet_conditioning_image': controlnet_conditioning_image,
    'width': width,
    'height': height,
    'batch_size': batch_size,
    'num_images_per_prompt': num_images_per_prompt,
    'device': device,
    'dtype': dtype,
    'do_classifier_free_guidance': do_classifier_free_guidance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, diffusers, 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 (12, 3, 64, 64) — shape (12, 3, 64, 64) 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
prepare_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
onethousand1000/animportrait3d/RiggedPointCloudGen/stable_diffusion_controlnet_img2img.py
pointer only (licence: MIT); the stored copy get_code serves, from haoweiz23/ReCon, is pointer only (licence: NONE) · get_code("97adae2d05ca5b3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from haoweiz23/ReCon, 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.

resize_for_condition_image Ran
ran; our contract draft was wrong, not the code
onethousand1000/animportrait3d/RiggedPointCloudGen/controlnet_tile_rgb.py
code served (permissive licence) · get_code("fb98a03fa1c6a2d9")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a small test image
# The function uses: input_image.convert('RGB'), input_image.size, input_image.resize()
# These are standard PIL Image methods
img_array = np.random.randint(0, 256, (100, 150, 3), dtype=np.uint8)
input_image = Image.fromarray(img_array, mode='RGB')

ARGS = {
    'input_image': input_image,
    'resolution': 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 Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
to_np Ran
ran; our contract draft was wrong, not the code
onethousand1000/animportrait3d/GSAvatar/smplx_model/smplx.py
pointer only (licence: MIT); the stored copy get_code serves, from wjrzm/VP-MoCap, is pointer only (licence: NONE) · get_code("43ebe3b786b2d59b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wjrzm/VP-MoCap, 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.

to_tensor Ran
ran; our contract draft was wrong, not the code
onethousand1000/animportrait3d/GSAvatar/smplx_model/smplx.py
code served (permissive licence) · get_code("94904a5bd2e1074f")
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 1, dtype family float, shape (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)

# Test case 1: numpy array
array_numpy = np.array([1.0, 2.0, 3.0, 4.0])

# Test case 2: python list
array_list = [1.0, 2.0, 3.0, 4.0]

# Test case 3: already a torch tensor (should not convert)
array_torch = torch.tensor([1.0, 2.0, 3.0, 4.0])

# Use the numpy array as the primary test case
ARGS = {
    "array": array_numpy,
    "dtype": torch.float32
}
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 1, dtype family float, shape (4,) — shape (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
depths_to_points Not yet run
unverified (harvested, no recorded run)
onethousand1000/animportrait3d/GSAvatar/render_animation.py
code served (permissive licence) · get_code("3058c9444568eb2c")
How it ran

no invocation recorded.

mask_mesh Not yet run
unverified (harvested, no recorded run)
onethousand1000/animportrait3d/GSAvatar/smplx_model/smplx.py
code served (permissive licence) · get_code("b787b771dfcd0913")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 1 later) and 7 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
to_np 9 other papers
9 dated earlier · 1 only as an assembly brick
2104.03953 (2021-04)
SNARF: Differentiable Forward Skinning for Animating Non-Rigid Neural Implicit Shapes
2112.07471 (2021-12)
I M Avatar: Implicit Morphable Head Avatars from Videos
2203.12575 (2022-03)
NeuMan: Neural Human Radiance Field from a Single Video
and 6 more not named here
to_tensor 6 other papers
6 dated earlier
2104.03953 (2021-04)
SNARF: Differentiable Forward Skinning for Animating Non-Rigid Neural Implicit Shapes
2112.07471 (2021-12)
I M Avatar: Implicit Morphable Head Avatars from Videos
2307.13459 (2023-07)
Weakly-supervised 3D Pose Transfer with Keypoints
and 3 more not named here
get_perpendicular_component 2 other papers
2 dated earlier
2304.04968 (2023-04)
Re-imagine the Negative Prompt Algorithm: Transform 2D Diffusion into 3D, alleviate Janus problem and Beyond
2407.13584 (2024-07)
Connecting Consistency Distillation to Score Distillation for Text-to-3D Generation
prepare_image 1 other paper
1 later
2510.15783 (2025-10)
ReCon: Region-Controllable Data Augmentation with Rectification and Alignment for Object Detection
resize_for_condition_image 1 other paper
1 dated earlier
2405.07510 (2024-05)
PeRFlow: Piecewise Rectified Flow as Universal Plug-and-Play Accelerator

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

The generation of high-quality, animatable 3D head avatars from text has enormous potential in content creation applications such as games, movies, and embodied virtual assistants. Current text-to-3D generation methods typically combine parametric head models with 2D diffusion models using score distillation sampling to produce 3D-consistent results. However, they struggle to synthesize realistic details and suffer from misalignments between the appearance and the driving parametric model, resulting in unnatural animation results. We discovered that these limitations stem from ambiguities in the 2D diffusion predictions during 3D avatar distillation, specifically: i) the avatar's appearance and geometry is underconstrained by the text input, and ii) the semantic alignment between the predictions and the parametric head model is insufficient because the diffusion model alone cannot incorporate information from the parametric model. In this work, we propose a novel framework, AnimPortrait3D, for text-based realistic animatable 3DGS avatar generation with morphable model alignment, and introduce two key strategies to address these challenges. First, we tackle appearance and geometry ambiguities by utilizing prior information from a pretrained text-to-3D model to initialize a 3D avatar with robust appearance, geometry, and rigging relationships to the morphable model. Second, we refine the initial 3D avatar for dynamic expressions using a ControlNet that is conditioned on semantic and normal maps of the morphable model to ensure accurate alignment. As a result, our method outperforms existing approaches in terms of synthesis quality, alignment, and animation fidelity. Our experiments show that the proposed method advances the state of the art in text-based, animatable 3D head avatar generation.

For agents

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

get_harvested_code_for_paper("2504.15835")
get_code_for_paper("2504.15835")
have("2504.15835")

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

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

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

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

Connect an agent — have() is free.