Skip to content

Commit d7ca058

Browse files
committed
streamline submission via uv commands
1 parent d2103c3 commit d7ca058

3 files changed

Lines changed: 926 additions & 18 deletions

File tree

README.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,33 +71,38 @@ Submissions are handled through TIRA ([tira.io/task-overview/sisap-2026](https:/
7171

7272
### Step 2 — Verify locally
7373

74-
To test the containerized submission pipeline locally on your machine, ensure you have the virtual environment activated (or use uv/pip to install the `tira` client):
74+
To test the containerized submission pipeline locally on your machine, sync the workspace dependencies:
7575

7676
```bash
77-
# Install/update the tira client
78-
uv pip install --upgrade tira
77+
# Install/update workspace dependencies
78+
uv sync
7979

80-
# Run a dry run against one of the spot-check datasets:
81-
.venv/bin/tira-cli code-submission \
80+
# Run a dry run against the task-1 spot-check datasets:
81+
uv run tira-cli code-submission \
8282
--path . \
8383
--command 'python3 /app/search.py --input $inputDataset/*.h5 --task-description $inputDataset/config.json --output $outputDir' \
8484
--task sisap-2026 \
8585
--dataset task-1-spot-check-20260602-training \
8686
--dry-run
87-
```
88-
*(On Windows, use `.\.venv\Scripts\tira-cli` instead of `.venv/bin/tira-cli`)*
8987

90-
Use `task-2-spot-check-20260602-training` if your approach only targets Task 2.
88+
# Run a dry run against the task-2 spot-check datasets:
89+
uv run tira-cli code-submission \
90+
--path . \
91+
--command 'python3 /app/search.py --input $inputDataset/*.h5 --task-description $inputDataset/config.json --output $outputDir' \
92+
--task sisap-2026 \
93+
--dataset task-2-spot-check-20260602-training \
94+
--dry-run
95+
```
9196

9297
### Step 3 — Authenticate and submit
9398

9499
Retrieve your authentication token from the TIRA task page (**Submit****Code Submissions****New Submission****I want to submit from my local machine**), then:
95100

96101
```bash
97-
.venv/bin/tira-cli login --token AUTH-TOKEN
98-
.venv/bin/tira-cli verify-installation --task sisap-2026 --team YOUR-TEAM
102+
uv run tira-cli login --token AUTH-TOKEN
103+
uv run tira-cli verify-installation --task sisap-2026 --team deglib
99104

100-
.venv/bin/tira-cli code-submission \
105+
uv run tira-cli code-submission \
101106
--path . \
102107
--command 'python3 /app/search.py --input $inputDataset/*.h5 --task-description $inputDataset/config.json --output $outputDir' \
103108
--task sisap-2026 \
@@ -120,18 +125,17 @@ Retrieve your authentication token from the TIRA task page (**Submit** → **Cod
120125
# Build the submission image
121126
docker build -t sisap-deglib .
122127

123-
# Run one task the way TIRA does (dataset dir holds the .h5 + config.json)
128+
# Run one task the way TIRA does (your-dataset-dir holds the .h5 and config-dir the config.json)
124129
mkdir -p results
125130
docker run --rm --cpus=8 --memory=24g \
126-
-v "$PWD/your-dataset-dir:/app/data/ds:ro" \
131+
-v "$PWD/your-dataset-dir:/app/dataset:ro" \
127132
-v "$PWD/results:/app/results:rw" \
128133
sisap-deglib \
129-
python3 /app/search.py --input '/app/data/ds/*.h5' \
130-
--task-description /app/data/ds/config.json --output /app/results
134+
python3 /app/search.py --input '/app/dataset/*.h5' \
135+
--task-description /app/data/config-dir/config.json --output /app/results
131136

132-
# Score the results against the dataset ground truth (run from submission/,
133-
# like CI does, so eval.py can import the harness modules)
134-
cd submission && PYTHONPATH=. python3 eval.py --results ../results res.csv
137+
# Score the results against the dataset ground truth
138+
uv --directory submission run eval.py --results ../results ../res.csv
135139
```
136140

137141
### Building just the C++ binary

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[project]
2+
name = "sisap26-deglib-root"
3+
version = "0.1.0"
4+
description = "SISAP 2026 deglib submission and evaluation workspace"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"h5py>=3.16.0",
9+
"matplotlib>=3.10.9",
10+
"numpy",
11+
"pandas",
12+
"scipy>=1.17.1",
13+
"tira>=0.0.202",
14+
]

0 commit comments

Comments
 (0)