SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper · CVPR · 2023

LANIT: Language-Driven Image-to-Image Translation for Unlabeled Data

Youngjung Uh, Jaejun Yoo, Seungryong Kim, Sunwoo Kim, Seokju Cho, Soohyun Kim, Jihye Park

Open in the Atlas

Code that ran

20 of 22 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, 3 violated it and 16 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-24; 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/Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper.json · badge: /api/ran/Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper.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
KU-CVLAB/LANIT canonical (classifier label)
classifier basis: census
20 ran · 2 no recorded run
FunctionStatusWhere it lives
clip_normalize Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/utils.py
code served (permissive licence) · get_code("2e59367e3d6ef5b6")
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 (2, 3, 224, 224) as a later run recorded it. 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, 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.functional as F

torch.manual_seed(0)

# Create a small image tensor: batch_size=2, channels=3, height=4, width=4
image = torch.randn(2, 3, 4, 4)

ARGS = {
    'image': image,
    'device': 'cpu'
}
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 4, dtype family float, shape (2, 3, 224, 224) — shape (2, 3, 224, 224) 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
compute_p_loss Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/solver.py
code served (permissive licence) · get_code("b65f7a4607c51432")
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 0, dtype family float, shape () as a later run recorded it. 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, 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 sys
import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create dummy args object
class Args:
    def __init__(self):
        pass

args = Args()

# Create sample tensors
batch_size = 2
num_classes = 4

# y_real: binary labels, shape (batch_size, num_classes)
y_real = torch.randint(0, 2, (batch_size, num_classes)).float()

# sim_fake_txt_prop: predicted probabilities, shape (batch_size, num_classes)
# Values should be in reasonable range for the loss computation
sim_fake_txt_prop = torch.rand(batch_size, num_classes)

# sim_fake_img_prop: predicted probabilities, shape (batch_size, num_classes)
# Values should be in reasonable range for the loss computation
sim_fake_img_prop = torch.rand(batch_size, num_classes)

# device: use CPU only
device = 'cpu'

ARGS = {
    'args': args,
    'y_real': y_real,
    'sim_fake_txt_prop': sim_fake_txt_prop,
    'sim_fake_img_prop': sim_fake_img_prop,
    'device': device
}
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 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
copyconf Ran
ran on a synthesized input
KU-CVLAB/LANIT/util.py
code served (permissive licence) · get_code("01e1add490da5d60")
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 Namespace. 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
from argparse import Namespace

torch.manual_seed(0)

# Create a default_opt Namespace with some typical configuration attributes
default_opt = Namespace(
    learning_rate=0.001,
    batch_size=32,
    num_epochs=10,
    model_name="test_model",
    dropout=0.5,
    hidden_dim=128,
    use_cuda=False,
    seed=42
)

# Create kwargs dict with some overrides
kwargs_dict = {
    "learning_rate": 0.01,
    "batch_size": 64,
    "new_param": "new_value"
}

ARGS = {
    "default_opt": default_opt,
    "kwargs": kwargs_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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
cross_entropy Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/solver.py
code served (permissive licence) · get_code("51028b47890593e5")
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 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 sys

torch.manual_seed(0)

# Create small tensors for label and predict
# label: binary labels, shape (batch_size, num_classes)
# predict: predicted values, shape (batch_size, num_classes)
batch_size = 2
num_classes = 4

label = torch.randint(0, 2, (batch_size, num_classes)).float()
predict = torch.rand(batch_size, num_classes)

ARGS = {
    "label": label,
    "predict": predict
}
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 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
denormalize Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/utils.py
code served (permissive licence) · get_code("4f63545a8e689c49")
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)

# The function denormalize takes a tensor x, applies (x + 1) / 2, and clamps to [0, 1]
# It expects x to be a tensor with a clamp_ method
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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
domain_c_loss Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/solver.py
code served (permissive licence) · get_code("e86f00896affbc78")
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 0, dtype family float, shape () as a later run recorded it. 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, 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 sys

torch.manual_seed(0)

# Create small tensors for the function
batch_size = 2
dim = 4

# y_real: binary labels, shape (batch_size, dim)
# Should be 0s and 1s for cross entropy
y_real = torch.randint(0, 2, (batch_size, dim)).float()

# sim_fake: predictions/similarities, shape (batch_size, dim)
# Should be in a reasonable range for the function to work
sim_fake = torch.rand(batch_size, dim)

# args: can be any object, the function doesn't use it
# Creating a simple namespace object
class Args:
    pass

args = Args()

ARGS = {
    'args': args,
    'y_real': y_real,
    'sim_fake': sim_fake,
    'device': 'cpu'
}
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 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
get_eval_loader Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/data_loader.py
code served (permissive licence) · get_code("0f014003d0b89418")
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 DataLoader. 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 torch
from PIL import Image
from pathlib import Path

# Create a temporary directory with test images
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create a few small test images
for i in range(3):
    img = Image.new('RGB', (64, 64), color=(i*50, i*50, i*50))
    img.save(temp_path / f'test_image_{i}.jpg')

ARGS = {
    'root': temp_dir,
    'img_size': 256,
    'batch_size': 2,
    'imagenet_normalize': True,
    'shuffle': False,
    'num_workers': 0,
    'drop_last': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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_preds_fromhm Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/wing.py
code served (permissive licence) · get_code("0dc6ba46b83190d8")
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 (2, 4, 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

torch.manual_seed(0)

# Construct a heatmap tensor
# The function expects:
# - hm.size(0) = batch size
# - hm.size(1) = number of keypoints
# - hm.size(2) = height (must be > 1 for indexing at pY-1, pY, pY+1)
# - hm.size(3) = width (must be > 1 for indexing at pX-1, pX, pX+1)
# The function uses pX and pY with bounds checks for 0 < pX < 63 and 0 < pY < 63
# So we need size(2) and size(3) to be at least 64 to match the bounds check

hm = torch.randn(2, 4, 64, 64)

ARGS = {
    "hm": hm
}
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 (2, 4, 2) — shape (2, 4, 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_prompt_and_att Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/utils.py
code served (permissive licence) · get_code("82feab7eec58a657")
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 numpy as np
from collections import namedtuple

# Create a simple args object with all needed attributes
class Args:
    def __init__(self, dataset, num_domains, dict_flag=False):
        self.dataset = dataset
        self.num_domains = num_domains
        self.dict = dict_flag

# Test with 'animal' dataset and 10 domains
ARGS = {
    'args': Args(dataset='animal', num_domains=10, dict_flag=False)
}
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 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
get_templates Ran
ran on a synthesized input
KU-CVLAB/LANIT/template.py
code served (permissive licence) · get_code("778350d4f651dd96")
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

ARGS = {
    'dataset': 'celeb_a'
}
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
get_train_loader Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/data_loader.py
code served (permissive licence) · get_code("5588c411eb2736b5")
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 DataLoader. 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 numpy as np
import tempfile
import os
from PIL import Image
from torchvision.datasets import ImageFolder

torch.manual_seed(0)

# Create a temporary directory structure with test images
temp_dir = tempfile.mkdtemp()

# Create subdirectories and dummy images for 'source' dataset
for domain_idx in range(2):
    domain_dir = os.path.join(temp_dir, f'domain_{domain_idx}')
    os.makedirs(domain_dir, exist_ok=True)
    
    # Create 70 dummy images per domain (enough to have 50 held out for testing)
    for img_idx in range(70):
        img_array = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
        img = Image.fromarray(img_array, 'RGB')
        img_path = os.path.join(domain_dir, f'img_{img_idx}.png')
        img.save(img_path)

ARGS = {
    'root': temp_dir,
    'which': 'source',
    'img_size': 256,
    'batch_size': 8,
    'prob': 0.5,
    'shuffle': True,
    'num_workers': 0,
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
has_file_allowed_extension Ran
ran, violated the contract we drafted
KU-CVLAB/LANIT/core/custom_dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from zhangyuanhan-ai/bamboo, is pointer only (licence: NONE) · get_code("c556c4f841693abe")
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 zhangyuanhan-ai/bamboo, 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.

init_net Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/model.py
code served (permissive licence) · get_code("fd7db27b81772ecc")
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 SimpleNet. 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
from torch.nn import init

torch.manual_seed(0)

# Create a simple network with Conv2d, Linear, and BatchNorm2d layers
class SimpleNet(nn.Module):
    def __init__(self):
        super(SimpleNet, self).__init__()
        self.conv1 = nn.Conv2d(3, 4, kernel_size=3, padding=1)
        self.bn1 = nn.BatchNorm2d(4)
        self.linear1 = nn.Linear(4, 2)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        return x

net = SimpleNet()

ARGS = {
    'net': net,
    'init_type': 'normal',
    'init_gain': 0.02,
    'gpu_ids': [],
    'debug': False,
    'initialize_weights': True
}
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 SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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
is_image_file Ran
ran, violated the contract we drafted
KU-CVLAB/LANIT/core/custom_dataset.py
code served (permissive licence) · get_code("10b3abf638e3b68c")
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.

# Setup code for is_image_file function

def has_file_allowed_extension(filename, extensions):
    """Checks if a file is an allowed extension.

    Args:
        filename (string): path to a file
        extensions (iterable of strings): extensions to consider (lowercase)

    Returns:
        bool: True if the filename ends with one of given extensions
    """
    filename_lower = filename.lower()
    return any((filename_lower.endswith(ext) for ext in extensions))

IMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif', '.tiff', 'webp']

def is_image_file(filename):
    """Checks if a file is an allowed image extension.

    Args:
        filename (string): path to a file

    Returns:
        bool: True if the filename ends with a known image extension
    """
    return has_file_allowed_extension(filename, IMG_EXTENSIONS)

# Test with various filenames
test_filename_1 = "image.jpg"
test_filename_2 = "photo.PNG"
test_filename_3 = "document.pdf"
test_filename_4 = "picture.jpeg"

ARGS = {
    "filename": test_filename_1
}
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 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
listdir Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/data_loader.py
code served (permissive licence) · get_code("c4bec6fa0023c750")
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 tempfile
from pathlib import Path

# Create a temporary directory with some test image files
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create dummy image files with various extensions
(temp_path / "test1.png").touch()
(temp_path / "test2.jpg").touch()
(temp_path / "test3.jpeg").touch()
(temp_path / "test4.JPG").touch()
(temp_path / "test5.webp").touch()
(temp_path / "test6.txt").touch()  # Should be ignored

# Create a subdirectory with more images to test rglob
subdir = temp_path / "subdir"
subdir.mkdir()
(subdir / "nested.png").touch()

ARGS = {
    "dname": temp_dir
}
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
load_image2 Ran
ran on a synthesized input
KU-CVLAB/LANIT/util.py
code served (permissive licence) · get_code("93f0fce42b1dae11")
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 (1, 3, 8, 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 numpy as np
from PIL import Image
import tempfile
import os

# Create a temporary directory and a small test image
temp_dir = tempfile.mkdtemp()
img_path = os.path.join(temp_dir, "test_image.png")

# Create a small PIL image (4x3 RGB)
test_image = Image.new('RGB', (4, 3), color='red')
test_image.save(img_path)

ARGS = {
    'img_path': img_path,
    'img_size': 8
}
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 Tensor, ndim 4, dtype family float, shape (1, 3, 8, 8) — shape (1, 3, 8, 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
make_dataset Ran
ran; our contract draft was wrong, not the code
KU-CVLAB/LANIT/core/custom_dataset.py
code served (permissive licence) · get_code("13d1069e836f8a7b")
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 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 os
import tempfile
import shutil

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

# Create class subdirectories with some image files
class_dirs = ['class_a', 'class_b']
for class_name in class_dirs:
    class_path = os.path.join(temp_dir, class_name)
    os.makedirs(class_path, exist_ok=True)
    
    # Create some dummy image files
    for i in range(2):
        with open(os.path.join(class_path, f'image_{i}.jpg'), 'w') as f:
            f.write('dummy')
        with open(os.path.join(class_path, f'image_{i}.png'), 'w') as f:
            f.write('dummy')
    
    # Create a non-image file that should be ignored
    with open(os.path.join(class_path, 'readme.txt'), 'w') as f:
        f.write('dummy')

# Create mapping from class names to indices
class_to_idx = {'class_a': 0, 'class_b': 1}

# Define allowed image extensions
extensions = ('.jpg', '.jpeg', '.png', '.gif', '.bmp')

ARGS = {
    'dir': temp_dir,
    'class_to_idx': class_to_idx,
    'extensions': extensions
}
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 2, 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
np2tensor Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/wing.py
code served (permissive licence) · get_code("07fab06861c0a9b4")
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, 4, 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)

# The function takes a numpy array (image) and converts it to a tensor
# It expects the array to have 3 dimensions (channels, height, width after permute)
# The function uses .permute(2, 0, 1) which suggests input shape is (height, width, channels)

# Create a small numpy array with shape (height=4, width=3, channels=3)
image = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    "image": image
}
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 3, dtype family float, shape (3, 4, 3) — shape (3, 4, 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
str2bool Ran
ran, violated the contract we drafted
KU-CVLAB/LANIT/util.py
code served (permissive licence) · get_code("7c508037b40522af")
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) 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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for str2bool
ARGS = {
    'v': 'true'  # string input that should convert to boolean
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
tensor2numpy255 Ran
ran on a synthesized input
KU-CVLAB/LANIT/core/wing.py
code served (permissive licence) · get_code("9a50cf70e788d254")
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, 5, 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 tensor with shape (C, H, W) where C=3 (channels), H=4, W=5
# The function expects values in range [-1, 1] based on the formula: * 0.5 + 0.5
# So we create a tensor with values in that range
tensor = torch.randn(3, 4, 5) * 0.5

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, 5, 3) — shape (4, 5, 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
build_model Not yet run
unverified (harvested, no recorded run)
KU-CVLAB/LANIT/clip/model.py
code served (permissive licence) · get_code("e70f3b0d66706015")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
KU-CVLAB/LANIT/clip/clip.py
code served (permissive licence) · get_code("bd53e33a4eefdec0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 4 later) and 14 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
str2bool 175 other papers
61 dated earlier, 74 later, 40 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
build_model 119 other papers
23 dated earlier, 64 later, 30 same year, order not determinable, 2 undated
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2104.14294 (2021-04)
Emerging Properties in Self-Supervised Vision Transformers
and 116 more not named here
has_file_allowed_extension 17 other papers
12 dated earlier, 5 same year, order not determinable
1612.06321 (2016-12)
Large-Scale Image Retrieval with Attentive Deep Local Features
1902.02476 (2019-02)
A Simple Baseline for Bayesian Uncertainty in Deep Learning
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
and 14 more not named here
load 17 other papers
1 dated earlier, 12 later, 4 same year, order not determinable
2211.16582 (2022-11)
SinDDM: A Single Image Denoising Diffusion Model
2302.00070 (2023-02)
Debiasing Vision-Language Models via Biased Prompts
2305.17100 (2023-05)
BiomedGPT: A Generalist Vision-Language Foundation Model for Diverse Biomedical Tasks
and 14 more not named here
is_image_file 11 other papers
8 dated earlier, 1 later, 2 same year, order not determinable
1812.10366 (2018-12)
A Poisson-Gaussian Denoising Dataset with Real Fluorescence Microscopy Images
1902.02476 (2019-02)
A Simple Baseline for Bayesian Uncertainty in Deep Learning
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
and 8 more not named here
make_dataset 3 other papers
2 dated earlier, 1 same year, order not determinable
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
2003.08607 (2020-03)
Unsupervised Domain Adaptation via Structurally Regularized Deep Clustering
2302.11984 (2023-02)
Unsupervised Domain Adaptation via Distilled Discriminative Clustering
denormalize 2 other papers
2 dated earlier
2110.04176 (2021-10)
PHNNs: Lightweight Neural Networks via Parameterized Hypercomplex Convolutions
2203.09301 (2022-03)
One-Shot Adaptation of GAN in Just One CLIP
get_preds_fromhm 1 other paper
1 dated earlier
2110.04176 (2021-10)
PHNNs: Lightweight Neural Networks via Parameterized Hypercomplex Convolutions

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

Repositories linked to this paper

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

Abstract

Existing techniques for image-to-image translation commonly have suffered from two critical problems: heavy reliance on per-sample domain annotation and/or inability to handle multiple attributes per image. Recent trulyunsupervised methods adopt clustering approaches to easily provide per-sample one-hot domain labels. However, they cannot account for the real-world setting: one sample may have multiple attributes. In addition, the semantics of the clusters are not easily coupled to human understanding. To overcome these, we present LANguage-driven Image-toimage Translation model, dubbed LANIT. We leverage easyto-obtain candidate attributes given in texts for a dataset: the similarity between images and attributes indicates persample domain labels. This formulation naturally enables multi-hot labels so that users can specify the target domain with a set of attributes in language. To account for the case that the initial prompts are inaccurate, we also present prompt learning. We further present domain regularization loss that enforces translated images to be mapped to the corresponding domain. Experiments on several standard benchmarks demonstrate that LANIT achieves comparable or superior performance to existing models. The code is available at github.com/KU-CVLAB/LANIT.

For agents

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

get_harvested_code_for_paper("Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper")
get_code_for_paper("Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper")
have("Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper")

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

curl https://syntology.ai/api/ran/Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper.svg)](https://syntology.ai/paper/Park_LANIT_Language-Driven_Image-to-Image_Translation_for_Unlabeled_Data_CVPR_2023_paper)

Connect an agent — have() is free.