Repository navigation
Releases
F0 network weights: s7_ft (current) and s6_ft
Trained weights of the SLAP2 F0 network. It predicts the baseline fluorescence (F0) of every pixel and frame of a registered SLAP2 movie.
| file | model | sha256 |
|---|---|---|
slap2_f0_s7_ft.pt |
s7_ft, the current model (locked in 2026-11-30): run S7_mask, fine-tuned for 1700 steps with the loss masked during activity | 196353df71c591e811eb1b69b76dee7398d0e0e71e28eb9ef98c08e9667b8e51 |
slap2_f0_s6_ft.pt |
s6_ft, the model before it (locked in 2026-11-26): run S6_full, fine-tuned for 1700 steps; kept to reproduce results made with it | 7f0658ef51e4c32a0332586bfa495a97bd13c44f3a62fbc9ef35fab731fb543d |
Both files hold only the weights, the model configuration and the window settings. There is no optimizer state, and both load with torch.load(path, weights_only=True). Each is 1.9 MB, with 432 k parameters. SHA256SUMS lists the checksums: run sha256sum -c SHA256SUMS.
What they are built for
Use them only on recordings that match all of these:
- Recordings: SLAP2 multi-ROI raster recordings of iGluSnFR4f, as registered by GIAnT, at 80 Hz (
*_REGISTERED_DOWNSAMPLED-80Hz). - Blind window: the baseline at a pixel and frame never sees that pixel or its neighbours within 4 rows and columns in the 8 frames on either side (17 frames, ±100 ms). This keeps iGluSnFR4f's events out of the baseline. Slower indicators, whose events outlast the window, need their own model (#32).
- Context: 263 frames (3.3 s) on each side, and 23 pixels in space.
The two models share the architecture ("deep": 4 fusion blocks, branch MLPs, zero-initialised pointwise layers) and these windows.
Use
slap2-f0 predict-registered --ckpt slap2_f0_s7_ft.pt ... # this repository, at this tag or later
giant silo TABLE --f0-ckpt slap2_f0_s7_ft.pt ... # GIAnT-Python, which calls slap2-f0From main 3be49f1 (PR #60) on, --ckpt s7_ft (or s6_ft) downloads the file once, checks its sha256 and caches it, and slap2-f0 checkpoint s7_ft prints the cached path for programs that need a file (giant silo --f0-ckpt "$(slap2-f0 checkpoint s7_ft)"). With torch older than 2.6, weights_only=True does not stop crafted files (CVE-2025-32434), so use these files by name or check them against SHA256SUMS.
For faster prediction, add --fast (see the README).
How good they are
These figures come from a GFP control recording (no glutamate signal) with artificial events added, where the truth is known. They are reported as s6_ft / s7_ft.
- Baseline below the movie where there is no activity: 2.3 / 1.8%.
- Baseline below the truth at the added sources: 3.0 / 0.6%.
- How much of the added activity reaches the baseline: s6_ft lowers the baseline by 12% of the mean added activity, and s7_ft raises it by 17% (44% at the least active third of sources). s7_ft's baseline does not follow the events' time course.
- Dense real activity: there is no ground truth for it yet. The added events are at 1 Hz.
Details, the training runs and the other tests (labeled pixels outside the sources, simulations) are in docs/plan.md, sections S6 and S7.
The weights are released under this repository's MIT licence.