Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/fiji-comparison.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: fiji comparison

# Runs the original Fast4DReg Fiji macro (v2.1, without a screen under Xvfb)
# and Fast4DRegPy with the same settings on the same runner, on a dataset
# from the Fast4DReg Zenodo archive. Compares drift tables, corrected stacks,
# the archived Fiji result, run time and memory. Manual only.
on:
workflow_dispatch:
inputs:
dataset:
description: "Dataset"
default: huvec
type: choice
options: [huvec, synthetic-large-drift]

jobs:
compare:
runs-on: ubuntu-latest
timeout-minutes: 360
env:
DATASET: ${{ inputs.dataset || 'huvec' }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install -e ".[validation]"
- run: sudo apt-get update && sudo apt-get install -y xvfb
- run: java -version && nproc && free -g
- name: Fetch the Fast4DReg Fiji sources (commit 0483ace)
run: |
git clone https://github.com/CellMigrationLab/Fast4DReg ../Fast4DReg
git -C ../Fast4DReg checkout 0483ace1ac5b8ee0e3938d00c303104109897803
- run: validation/fiji/setup_imagej.sh "$RUNNER_TEMP/ImageJ" ../Fast4DReg
- name: Cache the Zenodo archive
uses: actions/cache@v4
with:
path: .validation-data/*.zip
key: zenodo-7514913-${{ env.DATASET }}-v1
- name: Compare Fiji and Fast4DRegPy
env:
FIJI_XMX: 13g
run: >
python validation/fiji/compare_with_fiji.py "$RUNNER_TEMP/ImageJ"
"../Fast4DReg/Fast4DReg/macros/time_estimate+apply.ijm"
--dataset "$DATASET" --download --workers 4
--output-dir "validation-results/fiji-comparison-$DATASET"
- if: always()
run: cat validation-results/fiji-comparison-*/summary.json validation-results/fiji-comparison-*/per_frame.csv validation-results/fiji-comparison-*/fiji_log.txt || true
- if: always()
uses: actions/upload-artifact@v4
with:
name: fiji-comparison-${{ env.DATASET }}
path: |
validation-results/fiji-comparison-*/*.json
validation-results/fiji-comparison-*/*.csv
validation-results/fiji-comparison-*/*.txt
49 changes: 0 additions & 49 deletions .github/workflows/fiji-full-movie-timing.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
setting was previously accepted but ignored.
- Full-movie validation now fails if reference fitting, commit identification,
Fiji timing extraction or output-shape comparison is incomplete.
- `validation/fiji/compare_with_fiji.py` replaces `time_full_movie.py`. It
runs Fiji and Fast4DRegPy on any registered Zenodo dataset
(`synthetic-large-drift` or `huvec`) and is available as the manual
**fiji comparison** workflow.

## 0.5.0

Expand Down
2 changes: 1 addition & 1 deletion docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The default strict gate requires:
- serial and parallel results to be identical.

The repository also has manual **full-movie validation** and
**fiji full-movie timing** Actions workflows. Details for reproducing the Fiji
**fiji comparison** Actions workflows. Details for reproducing the Fiji
run locally are in [validation/README.md](../validation/README.md).

## Data licence
Expand Down
9 changes: 5 additions & 4 deletions validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ the patched macro on a virtual display.

Scripts:

- `time_full_movie.py` runs Fiji and Fast4DRegPy on the full movie on the same
machine and compares their drift tables, outputs and run times. It is also
available as the **fiji full-movie timing** workflow; results are in
`results/fiji-full-movie-timing/`.
- `compare_with_fiji.py --dataset NAME` runs Fiji and Fast4DRegPy with the
same settings on a dataset from the Zenodo archive (`synthetic-large-drift`
or `huvec`) and compares their drift tables, outputs, the archived Fiji
result and run times. It is also available as the **fiji comparison**
workflow. Earlier timing results are in `results/fiji-full-movie-timing/`.
- `make_macro_fixtures.py` regenerates `tests/data/fiji_macro/`, and
`make_imagej_interpolation_fixture.py` regenerates
`tests/data/imagej_interpolation/`:
Expand Down
Loading
Loading