SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.09223 · 2023

DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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, 2 violated it and 0 have no contract verdict; 2 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/2308.09223.json · badge: /api/ran/2308.09223.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
hexiaoxiao-cs/dmcvr canonical (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
FunctionStatusWhere it lives
chunk_size Ran
ran, honoured the contract we drafted
hexiaoxiao-cs/dmcvr/generation/diffae/dist_utils.py
code served (permissive licence) · get_code("235265a7a3a652fb")
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

torch.manual_seed(0)

ARGS = {
    "size": 10,
    "rank": 2,
    "world_size": 4
}
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 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
is_time Ran
ran, violated the contract we drafted
hexiaoxiao-cs/dmcvr/generation/diffae/experiment.py
code served (permissive licence) · get_code("4f9b67ed1294c6a0")
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 bool, ndim 0, dtype family float, 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)

# Analyzing the function:
# - num_samples: an integer representing sample count
# - every: an integer used as divisor (frequency/period)
# - step_size: an integer used for comparison threshold
# The function performs integer division and modulo-like logic to check timing

ARGS = {
    "num_samples": 42,
    "every": 10,
    "step_size": 3
}
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 bool, ndim 0, dtype family float, 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
jsonable Ran
ran, violated the contract we drafted
hexiaoxiao-cs/dmcvr/generation/diffae/config_base.py
code served (permissive licence) · get_code("3436fefeb3a4b49a")
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 bool, ndim 0, dtype family float, 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 json
import torch
import numpy as np

def jsonable(x):
    try:
        json.dumps(x)
        return True
    except TypeError:
        return False

# Test with a simple JSON-serializable value
ARGS = {
    "x": {"key": "value", "number": 42, "list": [1, 2, 3]}
}
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 bool, ndim 0, dtype family float, 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
make_transform Ran
ran; our contract draft was wrong, not the code
hexiaoxiao-cs/dmcvr/generation/diffae/dataset.py
code served (permissive licence) · get_code("7b0f30c49d628c72")
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 Compose. 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 torchvision.transforms as transforms
import torchvision.transforms.functional as Ftrans
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Define the Crop class and helper functions as provided
class Crop:
    def __init__(self, x1, x2, y1, y2):
        self.x1 = x1
        self.x2 = x2
        self.y1 = y1
        self.y2 = y2

    def __call__(self, img):
        return Ftrans.crop(img, self.x1, self.y1, self.x2 - self.x1, self.y2 - self.y1)

    def __repr__(self):
        return self.__class__.__name__ + '(x1={}, x2={}, y1={}, y2={})'.format(self.x1, self.x2, self.y1, self.y2)

def d2c_crop():
    cx = 89
    cy = 121
    x1 = cy - 64
    x2 = cy + 64
    y1 = cx - 64
    y2 = cx + 64
    return Crop(x1, x2, y1, y2)

def make_transform(image_size, flip_prob=0.5, crop_d2c=False):
    if crop_d2c:
        transform = [d2c_crop(), transforms.Resize(image_size)]
    else:
        transform = [transforms.Resize(image_size), transforms.CenterCrop(image_size)]
    transform.append(transforms.RandomHorizontalFlip(p=flip_prob))
    transform.append(transforms.ToTensor())
    transform.append(transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)))
    transform = transforms.Compose(transform)
    return transform

# Create test arguments
ARGS = {
    'image_size': 224,
    'flip_prob': 0.5,
    'crop_d2c': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
unpack_bz2 Ran
ran; our contract draft was wrong, not the code
hexiaoxiao-cs/dmcvr/generation/diffae/align.py
code served (permissive licence) · get_code("8b346c500755d6bc")
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 bz2
import os
import tempfile

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

# Create a test bz2 file
test_content = b"This is test data for unpacking"
src_path = os.path.join(temp_dir, "test_file.bz2")
with bz2.BZ2File(src_path, 'wb') as f:
    f.write(test_content)

ARGS = {
    'src_path': src_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
get_file Not yet run
unverified (harvested, no recorded run)
hexiaoxiao-cs/dmcvr/generation/diffae/align.py
code served (permissive licence) · get_code("f93f74df8c200466")
How it ran

no invocation recorded.

use_cached_dataset_path Not yet run
unverified (harvested, no recorded run)
hexiaoxiao-cs/dmcvr/generation/diffae/dataset_util.py
code served (permissive licence) · get_code("96226a66ab62eb91")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 0 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
jsonable 5 other papers
2 dated earlier, 1 the same month, 2 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2211.12500 (2022-11)
Person Image Synthesis via Denoising Diffusion Model
2308.01316 (2023-08)
Patched Denoising Diffusion Models For High-Resolution Image Synthesis
and 2 more not named here
chunk_size 2 other papers
1 dated earlier, 1 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
get_file 2 other papers
1 dated earlier, 1 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding
is_time 2 other papers
1 the same month, 1 later
2308.01316 (2023-08)
Patched Denoising Diffusion Models For High-Resolution Image Synthesis
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
make_transform 2 other papers
1 dated earlier, 1 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
unpack_bz2 2 other papers
1 dated earlier, 1 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding
use_cached_dataset_path 2 other papers
1 dated earlier, 1 later
2111.15640 (2021-11)
Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense

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

Accurate 3D cardiac reconstruction from cine magnetic resonance imaging (cMRI) is crucial for improved cardiovascular disease diagnosis and understanding of the heart's motion. However, current cardiac MRI-based reconstruction technology used in clinical settings is 2D with limited through-plane resolution, resulting in low-quality reconstructed cardiac volumes. To better reconstruct 3D cardiac volumes from sparse 2D image stacks, we propose a morphology-guided diffusion model for 3D cardiac volume reconstruction, DMCVR, that synthesizes high-resolution 2D images and corresponding 3D reconstructed volumes. Our method outperforms previous approaches by conditioning the cardiac morphology on the generative model, eliminating the time-consuming iterative optimization process of the latent code, and improving generation quality. The learned latent spaces provide global semantics, local cardiac morphology and details of each 2D cMRI slice with highly interpretable value to reconstruct 3D cardiac shape. Our experiments show that DMCVR is highly effective in several aspects, such as 2D generation and 3D reconstruction performance. With DMCVR, we can produce high-resolution 3D cardiac MRI reconstructions, surpassing current techniques. Our proposed framework has great potential for improving the accuracy of cardiac disease diagnosis and treatment planning. Code can be accessed at https://github.com/hexiaoxiao-cs/DMCVR.

For agents

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

get_harvested_code_for_paper("2308.09223")
get_code_for_paper("2308.09223")
have("2308.09223")

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

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

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

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

Connect an agent — have() is free.