| conv1x1 |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/pose2pose.py code served (permissive licence) · get_code("f2cb93022f2c74b1") 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 Conv2d. 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_channels": 3,
"out_channels": 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
|
| conv1x1 |
Ran ran on a synthesized input |
prasunroy/tips/text2pose/models/netD.py code served (permissive licence) · get_code("bf113488af7858a6") 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)
# The function conv1x1 takes in_channels, out_channels, and an optional bias parameter
# It creates a Sequential model with Conv2d and LeakyReLU
# We need to provide valid integer values for in_channels and out_channels
ARGS = {
"in_channels": 3,
"out_channels": 64,
"bias": 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 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 |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/pose2pose.py code served (permissive licence) · get_code("765da6946c79c4aa") 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 Conv2d. 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_channels": 3,
"out_channels": 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
|
| create_dataloader |
Ran ran on a synthesized input |
prasunroy/tips/refinenet/dataloader.py code served (permissive licence) · get_code("851a74f4363a27fd") 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 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 numpy as np
import pandas as pd
import tempfile
import os
from torchvision import transforms
# Create a minimal CSV file with keypoints data
# The function expects columns where indices 3:39 contain 18 keypoints (36 values)
csv_data = []
for i in range(5):
row = [f"col{j}" for j in range(3)] # First 3 columns (ignored)
# Add 36 values for 18 keypoints (indices 3:39)
for j in range(36):
row.append(str(float(j)))
csv_data.append(row)
# Create a temporary CSV file
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as f:
# Write header
header = [f"col{j}" for j in range(39)]
f.write(','.join(header) + '\n')
# Write data rows
for row in csv_data:
f.write(','.join(row) + '\n')
csv_path = f.name
try:
ARGS = {
'keypoints_data': csv_path,
'noise_range': (-1, 1),
'transform': transforms.ToTensor(),
'batch_size': 2,
'shuffle': False,
'num_workers': 0,
'pin_memory': False,
}
finally:
# Clean up will happen after ARGS is used
pass
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas, 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
|
| downconv2x |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/pose2pose.py code served (permissive licence) · get_code("a6ba95175d9a109c") 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 Conv2d. 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_channels": 3,
"out_channels": 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
|
| downconv2x_hidden |
Ran ran on a synthesized input |
prasunroy/tips/text2pose/models/netD.py code served (permissive licence) · get_code("b164775c3c79a1fa") 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_channels": 3,
"out_channels": 16,
"bias": 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 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
|
| draw_connections |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/visualization.py code served (permissive licence) · get_code("1256bf45983510a6") 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 int, shape (100, 120, 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 cv2
import numpy as np
# Create a small test image (height=100, width=120, channels=3, BGR format)
image = np.random.randint(0, 255, (100, 120, 3), dtype=np.uint8)
# Create keypoints with 18 joints (reshape to -1, 2 means 18x2 = 36 elements)
# The function expects keypoints to be reshaped to (-1, 2)
# We'll create 2 sets of keypoints (batch of 2)
keypoints = [
np.array([
[10.5, 20.3], [15.2, 25.1], [20.0, 30.5], [25.5, 35.2],
[30.0, 40.1], [35.5, 45.3], [40.0, 50.5], [45.5, 55.2],
[50.0, 60.1], [55.5, 65.3], [60.0, 70.5], [65.5, 75.2],
[70.0, 80.1], [75.5, 85.3], [80.0, 90.5], [85.5, 95.2],
[90.0, 98.1], [95.5, 99.3]
], dtype=np.float32),
np.array([
[12.0, 22.0], [17.0, 27.0], [22.0, 32.0], [27.0, 37.0],
[32.0, 42.0], [37.0, 47.0], [42.0, 52.0], [47.0, 57.0],
[52.0, 62.0], [57.0, 67.0], [62.0, 72.0], [67.0, 77.0],
[72.0, 82.0], [77.0, 87.0], [82.0, 92.0], [87.0, 97.0],
[92.0, 99.0], [97.0, 99.5]
], dtype=np.float32)
]
ARGS = {
'image': image,
'keypoints': keypoints,
'thickness': 2,
'head_color': (255, 0, 0),
'alpha': 0.7
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 int, shape (100, 120, 3) — shape (100, 120, 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
|
| draw_keypoints |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/visualization.py code served (permissive licence) · get_code("5b8bb227f10e3899") 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 int, shape (100, 100, 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 cv2
import numpy as np
import torch
torch.manual_seed(0)
# Create a small image (H=100, W=100, C=3 for BGR)
image = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
# Create keypoints array
# The function iterates over keypoints and reshapes each to (-1, 2)
# So each keypoint should be a 2D array that can be reshaped to (N, 2)
# Creating 2 keypoints, each with 18 points (common for pose estimation)
# Shape: (2, 18, 2) - 2 keypoints, 18 points each, x,y coordinates
keypoints = np.random.rand(2, 18, 2) * 100 # Random points within image bounds
# Parameters for draw_keypoints function
ARGS = {
"image": image,
"keypoints": keypoints,
"radius": 2,
"head_color": (0, 255, 0),
"alpha": 0.7
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 (100, 100, 3) — shape (100, 100, 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
|
| linear |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/text2pose.py code served (permissive licence) · get_code("4e73ec1809e9745f") 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_features": 4,
"out_features": 3,
"bias": 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 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
|
| upconv2x_hidden |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/text2pose.py code served (permissive licence) · get_code("652f5857d1428652") 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_channels": 64,
"out_channels": 32,
"bias": 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 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
|
| upconv4x |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/models/text2pose.py code served (permissive licence) · get_code("1147b94c163f7d9b") 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_channels': 3,
'out_channels': 16,
'bias': 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 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
|
| visualize_skeletons |
Ran ran on a synthesized input |
prasunroy/tips/demo/tips/visualization.py code served (permissive licence) · get_code("c8baf2d17da8d0fb") 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 int, shape (256, 256, 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
import cv2
# Create a batch of keypoints
# The function expects keypoints to be reshaped to (-1, 2) for x,y pairs
# Looking at the code, it iterates over keypoints and reshapes each one
# We need 18 keypoints (indices 0-17 are used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
# Each keypoint has x, y coordinates
# Create 2 skeleton samples, each with 18 keypoints (x, y coordinates)
keypoints = np.array([
[[50.0, 50.0], [60.0, 70.0], [70.0, 80.0], [75.0, 85.0], [80.0, 90.0],
[55.0, 75.0], [50.0, 85.0], [45.0, 95.0], [65.0, 85.0], [70.0, 95.0],
[75.0, 105.0], [60.0, 100.0], [55.0, 110.0], [60.0, 120.0],
[45.0, 45.0], [55.0, 40.0], [40.0, 50.0], [60.0, 35.0]],
[[100.0, 100.0], [110.0, 120.0], [120.0, 130.0], [125.0, 135.0], [130.0, 140.0],
[105.0, 125.0], [100.0, 135.0], [95.0, 145.0], [115.0, 135.0], [120.0, 145.0],
[125.0, 155.0], [110.0, 150.0], [105.0, 160.0], [110.0, 170.0],
[95.0, 95.0], [105.0, 90.0], [90.0, 100.0], [110.0, 85.0]]
], dtype=np.float32)
ARGS = {
"keypoints": keypoints,
"keypoint_radius": 3,
"connection_thickness": 1,
"head_color": (128, 128, 128),
"grid_size": (256, 256),
"alpha": 1.0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 int, shape (256, 256, 3) — shape (256, 256, 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
|
| visualize_skeletons |
Ran ran on a synthesized input |
prasunroy/tips/refinenet/visualization.py code served (permissive licence) · get_code("a9170c83b474cab5") 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 int, shape (256, 256, 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
# Construct keypoints: batch of 2 people, each with 18 keypoints (x, y coordinates)
# Shape: (2, 18, 2) - 2 people, 18 keypoints per person, 2 coordinates (x, y)
keypoints = np.array([
[
[50.0, 60.0], # keypoint 0
[55.0, 65.0], # keypoint 1
[60.0, 70.0], # keypoint 2
[65.0, 75.0], # keypoint 3
[70.0, 80.0], # keypoint 4
[75.0, 85.0], # keypoint 5
[80.0, 90.0], # keypoint 6
[85.0, 95.0], # keypoint 7
[90.0, 100.0], # keypoint 8
[95.0, 105.0], # keypoint 9
[100.0, 110.0], # keypoint 10
[105.0, 115.0], # keypoint 11
[110.0, 120.0], # keypoint 12
[115.0, 125.0], # keypoint 13
[40.0, 50.0], # keypoint 14
[45.0, 55.0], # keypoint 15
[50.0, 60.0], # keypoint 16
[55.0, 65.0], # keypoint 17
],
[
[120.0, 130.0], # keypoint 0
[125.0, 135.0], # keypoint 1
[130.0, 140.0], # keypoint 2
[135.0, 145.0], # keypoint 3
[140.0, 150.0], # keypoint 4
[145.0, 155.0], # keypoint 5
[150.0, 160.0], # keypoint 6
[155.0, 165.0], # keypoint 7
[160.0, 170.0], # keypoint 8
[165.0, 175.0], # keypoint 9
[170.0, 180.0], # keypoint 10
[175.0, 185.0], # keypoint 11
[180.0, 190.0], # keypoint 12
[185.0, 195.0], # keypoint 13
[110.0, 120.0], # keypoint 14
[115.0, 125.0], # keypoint 15
[120.0, 130.0], # keypoint 16
[125.0, 135.0], # keypoint 17
]
], dtype=np.float32)
ARGS = {
'keypoints': keypoints,
'keypoint_radius': 2,
'connection_thickness': 1,
'head_color': (200, 100, 50),
'grid_size': (256, 256),
'alpha': 0.8,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 int, shape (256, 256, 3) — shape (256, 256, 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
|