SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper · CVPR · 2023

Unpaired Image-to-Image Translation with Shortest Path Regularization

Kun Zhang, Mingming Gong, Shaoan Xie, Yanwu Xu

Open in the Atlas

Code that ran

7 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, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 0 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/Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper.json · badge: /api/ran/Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_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
Mid-Push/santa canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
fused_leaky_relu Ran
ran; our contract draft was wrong, not the code
Mid-Push/santa/models/stylegan_networks.py
code served (permissive licence) · get_code("44c69c91b5434020")
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
import torch.nn as nn

torch.manual_seed(0)

# Create tiny tensors for the function parameters
input_tensor = torch.randn(2, 4)
bias_tensor = torch.randn(4)

# Build the ARGS dictionary with all parameters
ARGS = {
    'input': input_tensor,
    'bias': bias_tensor,
    'negative_slope': 0.2,
    'scale': 2 ** 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_filter Ran
ran, honoured the contract we drafted
Mid-Push/santa/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from heyblackC/DFMIR, is pointer only (licence: NONE) · get_code("acc24402a2d089fa")
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 heyblackC/DFMIR, 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.

get_norm_layer Ran
ran; our contract draft was wrong, not the code
Mid-Push/santa/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from amandinebtto/batvision-dataset, is pointer only (licence: CC-BY-SA-4.0) · get_code("b27dffc0609fbec0")
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 amandinebtto/batvision-dataset, and CC-BY-SA-4.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

get_pad_layer Ran
ran; our contract draft was wrong, not the code
Mid-Push/santa/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from linwei-chen/seg-aliasing, is pointer only (licence: NONE) · get_code("50aa4a59fe718c61")
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 linwei-chen/seg-aliasing, 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.

tensor2im Ran
ran on a synthesized input
Mid-Push/santa/models/utils.py
code served (permissive licence) · get_code("607a0a62c4580c17")
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 small tensor that matches the function's expectations
# The function expects: [batch, channels, height, width]
# It extracts [0], clamps to [-1, 1], and transposes to (height, width, channels)
input_tensor = torch.randn(1, 3, 4, 5) * 0.5  # Small values in roughly [-1, 1] range

ARGS = {
    "input_image": input_tensor,
    "imtype": np.uint8
}
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
upfirdn2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Mid-Push/santa/models/stylegan_networks.py
code served (permissive licence) · get_code("c5d084250637f1f8")
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, 4, 1, 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a small input tensor: (batch=2, channels=4, height=3, width=5)
input_tensor = torch.randn(2, 4, 3, 5)

# Create a small kernel tensor: (kernel_h=3, kernel_w=3)
kernel_tensor = torch.randn(3, 3)

# Define upsampling factors
up_factor = 1

# Define downsampling factors
down_factor = 1

# Define padding
pad_tuple = (0, 0)

ARGS = {
    "input": input_tensor,
    "kernel": kernel_tensor,
    "up": up_factor,
    "down": down_factor,
    "pad": pad_tuple,
}
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, 4, 1, 3) — shape (2, 4, 1, 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
upfirdn2d_native Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Mid-Push/santa/models/stylegan_networks.py
code served (permissive licence) · get_code("200baf9e83c9a4de")
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, 4, 6, 10) 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create small test tensors
batch_size = 2
minor = 4
in_h = 3
in_w = 5

input_tensor = torch.randn(batch_size, minor, in_h, in_w)

# Kernel tensor - small upsampling kernel
kernel = torch.randn(3, 3)

# Upsampling factors
up_x = 2
up_y = 2

# Downsampling factors
down_x = 1
down_y = 1

# Padding parameters
pad_x0 = 1
pad_x1 = 1
pad_y0 = 1
pad_y1 = 1

ARGS = {
    "input": input_tensor,
    "kernel": kernel,
    "up_x": up_x,
    "up_y": up_y,
    "down_x": down_x,
    "down_y": down_y,
    "pad_x0": pad_x0,
    "pad_x1": pad_x1,
    "pad_y0": pad_y0,
    "pad_y1": pad_y1,
}
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, 4, 6, 10) — shape (2, 4, 6, 10) 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

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 later) and 1 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
get_pad_layer 25 other papers
10 dated earlier, 8 later, 7 same year, order not determinable · 3 only as an assembly brick
2004.09484 (2020-04)
Bringing Old Photos Back to Life
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
2008.09604 (2020-08)
Delving Deeper into Anti-aliasing in ConvNets
and 22 more not named here
get_norm_layer 16 other papers
6 dated earlier, 6 later, 4 same year, order not determinable · 2 only as an assembly brick
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1909.08313 (2019-09)
Unsupervised Sketch-to-Photo Synthesis
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
and 13 more not named here
fused_leaky_relu 10 other papers
4 dated earlier, 3 later, 3 same year, order not determinable · 3 only as an assembly brick
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
2104.11116 (2021-04)
Pose-Controllable Talking Face Generation by Implicitly Modularized Audio-Visual Representation
2204.13656 (2022-04)
Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation
and 7 more not named here
get_filter 9 other papers
3 dated earlier, 4 later, 2 same year, order not determinable · 1 only as an assembly brick
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
2204.13656 (2022-04)
Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation
2205.09542 (2022-05)
Domain Enhanced Arbitrary Image Style Transfer via Contrastive Learning
and 6 more not named here
upfirdn2d_native 9 other papers
3 dated earlier, 3 later, 3 same year, order not determinable · 2 only as an assembly brick
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
2104.11116 (2021-04)
Pose-Controllable Talking Face Generation by Implicitly Modularized Audio-Visual Representation
2204.13656 (2022-04)
Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation
and 6 more not named here
upfirdn2d 6 other papers
3 dated earlier, 1 later, 2 same year, order not determinable · 2 only as an assembly brick
2007.15651 (2020-07)
Contrastive Learning for Unpaired Image-to-Image Translation
2104.11116 (2021-04)
Pose-Controllable Talking Face Generation by Implicitly Modularized Audio-Visual Representation
2204.13656 (2022-04)
Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation
and 3 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-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

Unpaired image-to-image translation aims to learn proper mappings that can map images from one domain to another domain while preserving the content of the input image. However, with large enough capacities, the network can learn to map the inputs to any random permutation of images in another domain. Existing methods treat two domains as discrete and propose different assumptions to address this problem. In this paper, we start from a different perspective and consider the paths connecting the two domains. We assume that the optimal path length between the input and output image should be the shortest among all possible paths. Based on this assumption, we propose a new method to allow generating images along the path and present a simple way to encourage the network to find the shortest path without pair information. Extensive experiments on various tasks demonstrate the superiority of our approach. The code is available at https://github.com/Mid-Push/santa.

For agents

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

get_harvested_code_for_paper("Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper")
get_code_for_paper("Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper")
have("Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper")

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

curl https://syntology.ai/api/ran/Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_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/Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper.svg)](https://syntology.ai/paper/Xie_Unpaired_Image-to-Image_Translation_With_Shortest_Path_Regularization_CVPR_2023_paper)

Connect an agent — have() is free.