| constraint_cor_id_same_z |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano.py code served (permissive licence) · get_code("6ef1862570acb512") How it ranRan 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 3, 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 numpy as np
# Set seed for reproducibility
np.random.seed(0)
# Create a small cor_id array with shape (8, 2) - 8 corner points with (x, y) coordinates
# These should be valid pixel coordinates
cor_id = np.array([
[10.5, 20.5],
[15.3, 25.2],
[12.1, 22.8],
[18.4, 28.1],
[11.2, 21.5],
[16.8, 26.3],
[13.5, 23.9],
[19.1, 29.2]
], dtype=np.float32)
# Create a small cor_img array with shape (64, 128) - height x width
# This represents a corner response image
cor_img = np.random.rand(64, 128).astype(np.float32)
# Set z parameter (depth value)
z = -1.0
# Construct the arguments dictionary
ARGS = {
'cor_id': cor_id,
'cor_img': cor_img,
'z': z
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, 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
|
| constraint_cor_id_same_z |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano_gen.py code served (permissive licence) · get_code("69b79279f2bcf05b") How it ranRan 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 3, 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 numpy as np
# Create small test data
# cor_id: corner IDs as pixel coordinates (N, 2) - N corners with (x, y) in image space
cor_id = np.array([
[10.5, 20.3],
[50.2, 15.8],
], dtype=np.float32)
# cor_img: a small image array with shape (height, width)
# The function uses cor_img.shape[0] for height and cor_img.shape[1] for width
cor_img = np.zeros((64, 128, 3), dtype=np.float32) # height=64, width=128, channels=3
# z: depth parameter (default -1)
z = -1
ARGS = {
"cor_id": cor_id,
"cor_img": cor_img,
"z": z,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, 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
|
| conv3x3 |
Ran ran; our contract draft was wrong, not the code |
zouchuhang/LayoutNetv2/resnet_seg_ae.py pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db") How it ranThe 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 lixiaotong97/DSU, 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. |
| conv3x3 |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/model.py code served (permissive licence) · get_code("01be3eddbd0689a1") How it ranRan 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 Sequential. 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
torch.manual_seed(0)
ARGS = {
'in_planes': 3,
'out_planes': 64,
}
- 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
|
| conv3x3_down |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/model.py code served (permissive licence) · get_code("ff3831cec5b317f0") How it ranRan 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 Sequential. 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
torch.manual_seed(0)
# conv3x3_down takes two parameters: in_planes and out_planes
# These are integers representing the number of input and output channels
# The function creates a Sequential model with conv3x3 followed by MaxPool2d
ARGS = {
"in_planes": 3,
"out_planes": 16
}
- 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 Sequential — a Sequential 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
|
| coorx2u |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/panostretch.py code served (permissive licence) · get_code("e350c739724eb986") How it ranRan 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 1, dtype family float, shape (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 numpy as np
# Analyze the function signature and body
# def coorx2u(x, w=1024):
# return ((x + 0.5) / w - 0.5) * 2 * np.pi
#
# Parameters:
# - x: used in arithmetic operations (x + 0.5), so needs to be numeric (array-like)
# - w: used as divisor, has default value 1024, should be numeric
# Create small test data
x = np.array([0.0, 256.0, 512.0, 768.0]) # Small array of coordinate values
w = 1024 # Standard width parameter
ARGS = {
"x": x,
"w": w,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
|
| find_N_peaks |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano.py code served (permissive licence) · get_code("0e901bc0308c0287") How it ranRan 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 numpy as np
# Create a synthetic signal with some peaks
np.random.seed(0)
signal = np.array([1.0, 2.0, 1.5, 5.0, 2.0, 1.0, 3.0, 6.0, 2.0, 1.0])
# Define arguments
ARGS = {
"signal": signal,
"prominence": 0.5,
"distance": 1,
"N": 4
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — 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
|
| fit_avg_z |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano.py code served (permissive licence) · get_code("d59005dd00723aaa") How it ranRan 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 float32, 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 numpy as np
# Analyze the function to understand parameter requirements:
# - cor_id: indexed with [:, 0] and [:, 1], so shape (N, 2) array
# - cor_id_xy: used in (cor_id_xy ** 2).sum(1), so shape (N, 2) array
# - cor_img: used as input to map_coordinates and indexed by .shape[0], so 2D array
# Create small but valid test data
np.random.seed(0)
# cor_id: N x 2 array of coordinates (row, col indices)
cor_id = np.array([[5, 10], [8, 12]], dtype=np.float32)
# cor_id_xy: N x 2 array of xy distances
cor_id_xy = np.array([[2.0, 3.0], [1.5, 2.5]], dtype=np.float32)
# cor_img: 2D image array that map_coordinates will sample from
# Shape should be larger than the max indices in cor_id to avoid out-of-bounds
cor_img = np.random.randn(20, 25).astype(np.float32)
ARGS = {
"cor_id": cor_id,
"cor_id_xy": cor_id_xy,
"cor_img": cor_img,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float32, 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
|
| fuv2img |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/post_proc2.py code served (permissive licence) · get_code("85ab63393b3f09e3") How it ranRan 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 2, dtype family float, shape (512, 1024) 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 numpy as np
# Create a 1D signal in uv space
# The function uses map_coordinates on this, so it should be a 1D array
fuv = np.random.rand(1024).astype(np.float32)
# Define all parameters
ARGS = {
'fuv': fuv,
'coorW': 1024,
'floorW': 1024,
'floorH': 512
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (512, 1024) — shape (512, 1024) 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
|
| group_weight |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/utils.py code served (permissive licence) · get_code("a7443d8f9651fe86") How it ranRan 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 torch.nn as nn
torch.manual_seed(0)
# Build a small module with Linear, Conv, and BatchNorm layers
# to test the group_weight function
class TestModule(nn.Module):
def __init__(self):
super().__init__()
self.linear1 = nn.Linear(4, 3)
self.conv1 = nn.Conv2d(3, 5, kernel_size=3)
self.bn1 = nn.BatchNorm2d(5)
self.linear2 = nn.Linear(5, 2)
def forward(self, x):
return x
module = TestModule()
ARGS = {
"module": module
}
- 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 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
|
| imgLookAt |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/pano_lsd_align.py code served (permissive licence) · get_code("b7f766de2d78c0aa") How it ranRan 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 float, shape (16, 16, 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 numpy as np
# Create a small spherical image (RGB)
# The function expects shape (sphereH, sphereW, 3) for an RGB image
sphereH = 32
sphereW = 64
im = np.random.rand(sphereH, sphereW, 3).astype(np.float32)
# Camera center coordinates (in radians, on the sphere)
CENTERx = 0.5 # horizontal angle
CENTERy = 0.3 # vertical angle
# Output image height
new_imgH = 16
# Field of view (in radians)
fov = np.pi / 3
ARGS = {
"im": im,
"CENTERx": CENTERx,
"CENTERy": CENTERy,
"new_imgH": new_imgH,
"fov": fov,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — 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 float, shape (16, 16, 3) — shape (16, 16, 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
|
| np_coor2xy |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/utils_eval.py code served (permissive licence) · get_code("be0b9dc0fdec0e29") How it ranRan 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 2, dtype family float, shape (3, 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 numpy as np
# Examine function signature and body:
# np_coor2xy(coor, z=50, coorW=1024, coorH=512)
# - coor: N x 2 array of (col, row) coordinates
# - z: scalar depth parameter (default 50)
# - coorW: scalar width (default 1024)
# - coorH: scalar height (default 512)
# Create a small N x 2 coordinate array
coor = np.array([
[100, 200],
[512, 256],
[1000, 500]
])
ARGS = {
'coor': coor,
'z': 50,
'coorW': 1024,
'coorH': 512
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (3, 2) — shape (3, 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
|
| np_coorx2u |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/post_proc2.py code served (permissive licence) · get_code("9e0a394d87f74afc") How it ranRan 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 1, dtype family float, shape (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 numpy as np
PI = float(np.pi)
def np_coorx2u(coorx, coorW=1024):
return ((coorx + 0.5) / coorW - 0.5) * 2 * PI
# Setup code
coorx_value = np.array([0.0, 256.0, 512.0, 1023.0])
coorW_value = 1024
ARGS = {
"coorx": coorx_value,
"coorW": coorW_value,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
|
| np_coorx2u |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/utils_eval.py code served (permissive licence) · get_code("c40a053cc4cee39a") How it ranRan 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 1, dtype family float, shape (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 numpy as np
# Analyzing the function:
# np_coorx2u takes:
# - coorx: used in arithmetic operations (coorx + 0.5), so needs to be numeric
# - coorW: has default value 1024, used in division, so needs to be numeric
# Both are used with numpy operations, so can be numpy arrays, scalars, or compatible types
ARGS = {
"coorx": np.array([0.0, 256.0, 512.0, 1023.0]),
"coorW": 1024
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
|
| np_coory2v |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/post_proc2.py code served (permissive licence) · get_code("a338620d515a8ca1") How it ranRan 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 1, dtype family float, shape (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 numpy as np
PI = float(np.pi)
def np_coory2v(coory, coorH=512):
return -((coory + 0.5) / coorH - 0.5) * PI
# Create test arguments
coory_value = np.array([0, 128, 256, 511])
coorH_value = 512
ARGS = {
"coory": coory_value,
"coorH": coorH_value
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
|
| np_coory2v |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/utils_eval.py code served (permissive licence) · get_code("a9f4bbf3a7b1872e") How it ranRan 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 float, 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 numpy as np
# The function np_coory2v takes:
# - coory: a coordinate value (appears to be used in arithmetic operations)
# - coorH: a height coordinate with default 512
# coory should be a numeric value (int, float, or numpy array)
# coorH should be a numeric value (int, float, or numpy array)
# Let's test with simple numeric values
coory_value = 128.5
coorH_value = 512
ARGS = {
"coory": coory_value,
"coorH": coorH_value,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float, 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
|
| pmap_x |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/utils.py code served (permissive licence) · get_code("6c4d20427a2348ef") How it ranRan 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 two small tensors for pmap1 and pmap2
# The function uses torch.max, torch.min, and division on these tensors
# So they need to be numeric tensors that support these operations
pmap1 = torch.randn(2, 4)
pmap2 = torch.randn(2, 4)
ARGS = {
"pmap1": pmap1,
"pmap2": pmap2,
}
- 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
|
| pts_linspace |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano_opt.py code served (permissive licence) · get_code("0c80f459c9070c5a") How it ranRan 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 (301, 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)
# pa and pb should be 1D tensors with 2 elements (x, y coordinates)
pa = torch.tensor([0.0, 1.0])
pb = torch.tensor([5.0, 10.0])
# pts is an integer specifying number of points
pts = 300
ARGS = {
"pa": pa,
"pb": pb,
"pts": pts
}
- 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 (301, 2) — shape (301, 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
|
| resnet18 |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/resnet_seg_ae.py code served (permissive licence) · get_code("adb9a1e49de97895") How it ranRan 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 ResNet. 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
torch.manual_seed(0)
ARGS = {
'pretrained': False,
}
- 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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
|
| resnet34 |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/resnet_seg_ae.py code served (permissive licence) · get_code("24a8b2c541a0eda1") How it ranRan 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 ResNet. 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
import math
torch.manual_seed(0)
ARGS = {
'pretrained': False,
}
- 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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
|
| uv_meshgrid |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/panostretch.py code served (permissive licence) · get_code("0f166ec65f3c7f27") How it ranRan 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 float, shape (3, 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 numpy as np
# The function uv_meshgrid takes two integer parameters: w (width) and h (height)
# It uses them to create a meshgrid and perform transformations
# We need to provide small integer values for both parameters
w = 4
h = 3
ARGS = {
"w": w,
"h": h
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — 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 float, shape (3, 4, 2) — shape (3, 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
|
| uv_tri |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/panostretch.py code served (permissive licence) · get_code("4e29a0157c785e2d") How it ranRan 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 3, 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 numpy as np
import functools
def uv_meshgrid(w, h):
uv = np.stack(np.meshgrid(range(w), range(h)), axis=-1)
uv = uv.astype(np.float64)
uv[..., 0] = ((uv[..., 0] + 0.5) / w - 0.5) * 2 * np.pi
uv[..., 1] = ((uv[..., 1] + 0.5) / h - 0.5) * np.pi
return uv
@functools.lru_cache()
def _uv_tri(w, h):
uv = uv_meshgrid(w, h)
sin_u = np.sin(uv[..., 0])
cos_u = np.cos(uv[..., 0])
tan_v = np.tan(uv[..., 1])
return (sin_u, cos_u, tan_v)
def uv_tri(w, h):
sin_u, cos_u, tan_v = _uv_tri(w, h)
return (sin_u.copy(), cos_u.copy(), tan_v.copy())
ARGS = {
"w": 8,
"h": 6
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, 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
|
| vecang |
Ran ran on a synthesized input |
zouchuhang/LayoutNetv2/pano_opt.py code served (permissive licence) · get_code("bfdb0732e340b9fb") How it ranRan 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 float64, ndim 0, 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 numpy as np
# The function vecang computes the angle between two vectors
# It expects numpy arrays as input
# Let's create two simple numpy vectors
vec1 = np.array([1.0, 0.0, 0.0, 1.0])
vec2 = np.array([0.0, 1.0, 1.0, 0.0])
ARGS = {
"vec1": vec1,
"vec2": vec2,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- 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
|
| warpImageFast |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/pano_lsd_align.py code served (permissive licence) · get_code("80022ee7f957c769") How it ranRan 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 float, shape (5, 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 numpy as np
# Create a small test image with shape (height, width, channels)
# Using distinct dimensions: 10x8x3 (height x width x RGB channels)
im = np.random.rand(10, 8, 3).astype(np.float32)
# Create coordinate grids XXdense and YYdense with matching shapes
# These represent the warped coordinate mappings
# Using shape 5x4 for the output warped image
out_h, out_w = 5, 4
XXdense = np.random.uniform(1.5, 6.5, size=(out_h, out_w)).astype(np.float32)
YYdense = np.random.uniform(1.5, 8.5, size=(out_h, out_w)).astype(np.float32)
ARGS = {
'im': im,
'XXdense': XXdense,
'YYdense': YYdense,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — 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 float, shape (5, 4, 3) — shape (5, 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
|
| xyz_2_coorxy |
Ran ran on a synthesized input |
sunset1995/pytorch-layoutnet/visual_3d_layout.py code served (permissive licence) · get_code("57da9acee1c24656") How it ranRan 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 numpy as np
# Analyze the function:
# - xs, ys, zs: appear to be array-like inputs used in arithmetic operations
# - H, W: appear to be scalar dimensions (height, width)
# The function performs trigonometric operations on the xyz coordinates
# and maps them to image coordinates
# Create small numpy arrays for the 3D coordinates
xs = np.array([1.0, 2.0, 3.0, 4.0])
ys = np.array([2.0, 3.0, 4.0, 5.0])
zs = np.array([0.5, 1.0, 1.5, 2.0])
# Create scalar height and width parameters
H = 480
W = 640
ARGS = {
"xs": xs,
"ys": ys,
"zs": zs,
"H": H,
"W": W
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — 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
|
| rotatevec |
Not yet run unverified (harvested, no recorded run) |
zouchuhang/LayoutNetv2/pano_opt.py code served (permissive licence) · get_code("18b3cbeabc3aa42a") How it ran |
| warp_walls |
Not yet run unverified (harvested, no recorded run) |
sunset1995/pytorch-layoutnet/visual_3d_layout.py code served (permissive licence) · get_code("a08d747ddd6be014") How it ran |