SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.13319 · 2022

Make-A-Story: Visual Memory Conditioned Consistent Story Generation

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 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 3 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2211.13319.json · badge: /api/ran/2211.13319.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
ubc-vision/make-a-story canonical (classifier label)
classifier basis not recorded on the link
3 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_activation_statistics Ran
ran on a synthesized input
ubc-vision/make-a-story/classifier/fid_score.py
code served (permissive licence) · get_code("b6582635d477d6dd")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import numpy as np

torch.manual_seed(0)

# Create a minimal Inception model that returns the expected output shape
class MinimalInceptionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3, stride=2, padding=1)
        self.pool = nn.AdaptiveAvgPool2d((8, 8))
        self.fc = nn.Linear(16 * 8 * 8, 2048)
    
    def forward(self, x):
        # x shape: (batch, 3, 299, 299)
        x = self.conv1(x)  # (batch, 16, 150, 150)
        x = self.pool(x)   # (batch, 16, 8, 8)
        x = x.view(x.size(0), -1)  # (batch, 16*8*8)
        x = self.fc(x)  # (batch, 2048)
        x = x.view(x.size(0), 2048, 1, 1)  # Reshape to (batch, 2048, 1, 1)
        return (x,)  # Return as tuple


# Create a minimal dataset class that yields the expected tuple structure
class MinimalDataset(torch.utils.data.Dataset):
    def __init__(self, num_samples=4):
        self.num_samples = num_samples
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return tuple: (images, images_ldm, labels, bg_labels, text_decs)
        # images is wrapped in a list as per the function code: images = images[0]
        images = [torch.randn(3, 299, 299)]
        images_ldm = torch.randn(3, 299, 299)
        labels = torch.tensor(0)
        bg_labels = torch.tensor(0)
        text_decs = "dummy text"
        return (images, images_ldm, labels, bg_labels, text_decs)


# Instantiate model and dataset
model = MinimalInceptionModel()
dataset = MinimalDataset(num_samples=4)

ARGS = {
    'imgs': dataset,
    'model': model,
    'batch_size': 2,
    'dims': 2048,
    'cuda': False,
    'normalize': False,
    'verbose': 0,
    'is_ref': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — 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
calculate_activation_statistics Ran
ran on a synthesized input
ubc-vision/make-a-story/classifier/fid_score_pororo.py
code served (permissive licence) · get_code("761181154c09b705")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import numpy as np

torch.manual_seed(0)

class SimpleInceptionModel(nn.Module):
    """Minimal inception-like model that returns pool_3 layer activations"""
    def __init__(self, dims=2048):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3, padding=1)
        self.conv2 = nn.Conv2d(16, dims, kernel_size=3, padding=1)
        self.dims = dims
    
    def forward(self, x):
        # x shape: (batch, 3, 299, 299)
        x = self.conv1(x)
        x = self.conv2(x)
        # Return tuple with feature map as first element
        return (x,)

class SimpleDataset:
    """Minimal dataset that yields (images, labels, text_decs) tuples"""
    def __init__(self, num_samples=4, img_size=299):
        self.num_samples = num_samples
        self.img_size = img_size
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return tuple of (images_list, labels, text_decs)
        # images_list contains one tensor of shape (img_size, img_size, 3)
        images = torch.randn(self.img_size, self.img_size, 3)
        images_list = [images]
        labels = torch.tensor(0)
        text_decs = "dummy text"
        return (images_list, labels, text_decs)

# Create instances
model = SimpleInceptionModel(dims=2048)
dataset = SimpleDataset(num_samples=4, img_size=299)

ARGS = {
    "imgs": dataset,
    "model": model,
    "batch_size": 2,
    "dims": 2048,
    "cuda": False,
    "normalize": False,
    "verbose": 0,
    "is_ref": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — 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
images_to_numpy Ran
ran on a synthesized input
ubc-vision/make-a-story/eval_backgound_classifier.py
code served (permissive licence) · get_code("2eb11cf681770a9c")
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 ndarray, ndim 3, dtype family int, shape (4, 2, 3) 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)

# Create a small tensor with shape (3, 4, 2) representing an image batch
# The function expects: tensor.data.cpu().numpy().transpose(1, 2, 0)
# After transpose(1, 2, 0): (4, 2, 3) -> this becomes the output image shape
# So input should be (channels, height, width)
tensor = torch.randn(3, 4, 2)

# Scale values to be in range [-1, 1] for realistic image data
tensor = tensor / tensor.abs().max() * 0.9

ARGS = {
    "tensor": tensor
}
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 ndarray, ndim 3, dtype family int, shape (4, 2, 3) — shape (4, 2, 3) 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
calculate_activation_statistics Not yet run
unverified (harvested, no recorded run)
ubc-vision/make-a-story/classifier/fid_score_flintstone.py
code served (permissive licence) · get_code("1ee41e25ac531e0a")
How it ran

no invocation recorded.

calculate_activation_statistics Not yet run
unverified (harvested, no recorded run)
ubc-vision/make-a-story/classifier/fid_score_vlc.py
code served (permissive licence) · get_code("4688831eb477f37e")
How it ran

no invocation recorded.

calculate_activation_statistics_vlc Not yet run
unverified (harvested, no recorded run)
ubc-vision/make-a-story/classifier/fid_score_vlc.py
code served (permissive licence) · get_code("145ac3242f3f075e")
How it ran

no invocation recorded.

initialize_model Not yet run
unverified (harvested, no recorded run)
ubc-vision/make-a-story/eval_backgound_classifier.py
code served (permissive licence) · get_code("44ac3ddfe6b3c751")
How it ran

no invocation recorded.

nondefault_trainer_args Not yet run
unverified (harvested, no recorded run)
ubc-vision/make-a-story/main_ours.py
pointer only (licence: MIT); the stored copy get_code serves, from yangling0818/sgdiff, is pointer only (licence: NONE) · get_code("87fbedd0c27cf378")
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 yangling0818/sgdiff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 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
nondefault_trainer_args 8 other papers
2 dated earlier, 6 later
2005.10242 (2020-05)
Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2303.18181 (2023-03)
A Closer Look at Parameter-Efficient Tuning in Diffusion Models
and 5 more not named here

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

There has been a recent explosion of impressive generative models that can produce high quality images (or videos) conditioned on text descriptions. However, all such approaches rely on conditional sentences that contain unambiguous descriptions of scenes and main actors in them. Therefore employing such models for more complex task of story visualization, where naturally references and co-references exist, and one requires to reason about when to maintain consistency of actors and backgrounds across frames/scenes, and when not to, based on story progression, remains a challenge. In this work, we address the aforementioned challenges and propose a novel autoregressive diffusion-based framework with a visual memory module that implicitly captures the actor and background context across the generated frames. Sentence-conditioned soft attention over the memories enables effective reference resolution and learns to maintain scene and actor consistency when needed. To validate the effectiveness of our approach, we extend the MUGEN dataset and introduce additional characters, backgrounds and referencing in multi-sentence storylines. Our experiments for story generation on the MUGEN, the PororoSV and the FlintstonesSV dataset show that our method not only outperforms prior state-of-the-art in generating frames with high visual quality, which are consistent with the story, but also models appropriate correspondences between the characters and the background.

For agents

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

get_harvested_code_for_paper("2211.13319")
get_code_for_paper("2211.13319")
have("2211.13319")

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

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

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

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

Connect an agent — have() is free.