SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.07162 · 2022

Brain Imaging Generation with Latent Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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, 0 violated it and 4 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-22; 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/2209.07162.json · badge: /api/ran/2209.07162.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
warvito/generative_chestxray community (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
FunctionStatusWhere it lives
create_synthetic_sentences Ran
ran on a synthesized input
warvito/generative_chestxray/src/python/preprocessing/create_sentences_files_extended.py
code served (permissive licence) · get_code("baa589946839c3b4")
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
import numpy as np

torch.manual_seed(0)

ARGS = {
    'entity': 'atelectasis',
    'adjective': 'severe'
}
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 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
get_datalist Ran
ran on a synthesized input
warvito/generative_chestxray/src/python/testing/util.py
code served (permissive licence) · get_code("44d7ba7c7d111df5")
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 pandas as pd
import tempfile
import os

# Create a temporary TSV file with test data
temp_dir = tempfile.mkdtemp()
ids_path = os.path.join(temp_dir, "test_ids.tsv")

# Write test data to TSV file
test_data = {
    'image': ['image_001.jpg', 'image_002.jpg', 'image_003.jpg', 'image_004.jpg']
}
df = pd.DataFrame(test_data)
df.to_csv(ids_path, sep='\t', index=False)

ARGS = {
    'ids_path': ids_path,
    'upper_limit': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
list_rindex Ran
ran on a synthesized input
warvito/generative_chestxray/src/python/preprocessing/create_section_files.py
code served (permissive licence) · get_code("1a2e685239147d9f")
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

ARGS = {
    "analised_list": [1, 2, 3, 4, 5, 2, 6],
    "s": 2
}
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
normalize_section_names Ran
ran on a synthesized input
warvito/generative_chestxray/src/python/preprocessing/create_section_files.py
code served (permissive licence) · get_code("49696211667f2162")
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 re

def normalize_section_names(section_names):
    section_names = [s.lower().strip() for s in section_names]
    frequent_sections = {'preamble': 'preamble', 'impression': 'impression', 'comparison': 'comparison', 'indication': 'indication', 'findings': 'findings', 'examination': 'examination', 'technique': 'technique', 'history': 'history', 'comparisons': 'comparison', 'clinical history': 'history', 'reason for examination': 'indication', 'notification': 'notification', 'reason for exam': 'indication', 'clinical information': 'history', 'exam': 'examination', 'clinical indication': 'indication', 'conclusion': 'impression', 'chest, two views': 'findings', 'recommendation(s)': 'recommendations', 'type of examination': 'examination', 'reference exam': 'comparison', 'patient history': 'history', 'addendum': 'addendum', 'comparison exam': 'comparison', 'date': 'date', 'comment': 'comment', 'findings and impression': 'impression', 'wet read': 'wet read', 'comparison film': 'comparison', 'recommendations': 'recommendations', 'findings/impression': 'impression', 'pfi': 'history', 'recommendation': 'recommendations', 'wetread': 'wet read', 'ndication': 'impression', 'impresson': 'impression', 'imprression': 'impression', 'imoression': 'impression', 'impressoin': 'impression', 'imprssion': 'impression', 'impresion': 'impression', 'imperssion': 'impression', 'mpression': 'impression', 'impession': 'impression', 'findings/ impression': 'impression', 'finding': 'findings', 'findins': 'findings', 'findindgs': 'findings', 'findgings': 'findings', 'findngs': 'findings', 'findnings': 'findings', 'finidngs': 'findings', 'idication': 'indication', 'reference findings': 'findings', 'comparision': 'comparison', 'comparsion': 'comparison', 'comparrison': 'comparison', 'comparisions': 'comparison'}
    p_findings = ['chest', 'portable', 'pa and lateral', 'lateral and pa', 'ap and lateral', 'lateral and ap', 'frontal and', 'two views', 'frontal view', 'pa view', 'ap view', 'one view', 'lateral view', 'bone window', 'frontal upright', 'frontal semi-upright', 'ribs', 'pa and lat']
    p_findings = re.compile('({})'.format('|'.join(p_findings)))
    main_sections = ['impression', 'findings', 'history', 'comparison', 'addendum']
    for i, s in enumerate(section_names):
        if s in frequent_sections:
            section_names[i] = frequent_sections[s]
            continue
        main_flag = False
        for m in main_sections:
            if m in s:
                section_names[i] = m
                main_flag = True
                break
        if main_flag:
            continue
        m = p_findings.search(s)
        if m is not None:
            section_names[i] = 'findings'
    return section_names

ARGS = {
    "section_names": [
        "Impression",
        "  FINDINGS  ",
        "Clinical History",
        "PA and Lateral",
        "Unknown Section",
        "chest portable",
        "Comparisons",
        "Wet Read"
    ]
}
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 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
section_text Ran
ran; our contract draft was wrong, not the code
warvito/generative_chestxray/src/python/preprocessing/create_section_files.py
code served (permissive licence) · get_code("442a00fb6c1d54db")
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 re

# Create a sample radiology report text with sections
sample_text = """
Some preamble content here before any sections.

 COMPARISON:  Chest radiograph dated January 2023. Previous study from December 2022.

 FINDINGS:  The lungs are clear. No acute cardiopulmonary process.
There is mild degenerative change of the thoracic spine.

 IMPRESSION:  No acute findings. Stable compared to prior study.

 RECOMMENDATIONS:  Follow up as clinically indicated.
"""

ARGS = {
    "text": sample_text
}
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 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
get_test_dataloader Not yet run
unverified (harvested, no recorded run)
warvito/generative_chestxray/src/python/testing/util.py
code served (permissive licence) · get_code("d8d949e1d1d36643")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 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
normalize_section_names 3 other papers
2 dated earlier, 1 later
2021.acl-long.459 (2021 (year only))
Cross-modal Memory Networks for Radiology Report Generation
2107.07502 (2021-07)
MULTIBENCH: Multiscale Benchmarks for Multimodal Representation Learning
2304.08295 (2023-04)
Interactive and Explainable Region-guided Radiology Report Generation
section_text 2 other papers
1 dated earlier, 1 later
2021.acl-long.459 (2021 (year only))
Cross-modal Memory Networks for Radiology Report Generation
2304.08295 (2023-04)
Interactive and Explainable Region-guided Radiology Report Generation

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-22.

Repositories linked to this paper

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

Abstract

Deep neural networks have brought remarkable breakthroughs in medical image analysis. However, due to their data-hungry nature, the modest dataset sizes in medical imaging projects might be hindering their full potential. Generating synthetic data provides a promising alternative, allowing to complement training datasets and conducting medical image research at a larger scale. Diffusion models recently have caught the attention of the computer vision community by producing photorealistic synthetic images. In this study, we explore using Latent Diffusion Models to generate synthetic images from high-resolution 3D brain images. We used T1w MRI images from the UK Biobank dataset (N=31,740) to train our models to learn about the probabilistic distribution of brain images, conditioned on covariables, such as age, sex, and brain structure volumes. We found that our models created realistic data, and we could use the conditioning variables to control the data generation effectively. Besides that, we created a synthetic dataset with 100,000 brain images and made it openly available to the scientific community.

For agents

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

get_harvested_code_for_paper("2209.07162")
get_code_for_paper("2209.07162")
have("2209.07162")

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

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

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

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

Connect an agent — have() is free.