← Back to learning

Mamba × TTT · IRSTD

Make one pipeline work, then ask one question at a time.

A week for handoff, segmentation integration and a first controlled comparison. Exports describe plans, not completed experiments.

About 20 min

Course chapters
Progress and notes stay in this browser.

This week’s goal and priorities

Goal: run original TTT → integrate single-frame segmentation → compare original/prototype variants. Reading papers is not a completed training run; the exact baseline, weights and inner loop still need handoff. The supervisor should review the hypothesis and division of work.

Replicate the existing method first. Do not simultaneously add a Mamba hybrid, complex multiscale design and TTA updates. If code or resources are unavailable, deliver the handoff sheet and interface design without invented scores.

A working-day schedule

WhenWorkAcceptance evidence
MondayPin original/prototype commits, configs, weights and differencesHandoff sheet, original task and metric meaning
TuesdayForward/backward, spatial features, data and decoderAligned shapes and valid gradients
WednesdayFit a few samples; freeze splits/evaluation; review the ideaTraceable short-run logs and agreed matrix
ThursdayStart B0/B1 with matched settingsSeparate configs, logs and checkpoints
FridayInspect predictions, misses, false alarms and costInterim comparison; unfinished runs marked in progress
Remaining budgetChoose one inner-loop ablation or paired high-resolution comparisonAblation record or next-week budget

The minimum matrix: required versus optional

IDConfigurationInputQuestionPriority
S0Original TTT + fixed decoder, a few samples256×256Data/gradients/fitting; not a performance resultRequired
B0Original TTT + fixed decoder256×256IRSTD baselineRequired
B1Prototype TTT + same decoder256×256Accuracy and cost relative to B0Required
B2B1, changing only inner-step count256×256Effect of update countIf time remains
H0Original TTT + same decoder512×512High-resolution baselineLater, as a pair
H1Prototype TTT + same decoder512×512Efficiency and detection relative to H0Later, as a pair

Here B2 is a step-count ablation. Give the research chapter’s IRSTD-specific change a separate run identifier rather than conflating two changes. The 256 setting is an initial local protocol, not automatically any paper’s original protocol.

Interactive: choose a stage and export a draft

The export records variables and missing information. It starts no training and promises neither memory use nor accuracy. Before running, supply the source version, data lists, inner-loop and training configurations.

Resources: measure before expanding

Start by requesting one GPU, preferably 40–48 GB of memory; 24 GB can be tried with a small model, input 256 and batch=1. Reserve 24–48 GPU-hours for debugging and short runs. This is a planning allowance, not measured runtime or a fit guarantee. Consider 2–4 parallel GPUs after validation; 8/16 GPUs are not a minimum requirement.

estimated training time ≈ steps per epoch × measured seconds/step × epochs + validation/checkpoint overhead

After warmup, measure 100–200 full training steps including inner updates and decoder, and record peak memory. Ordinary data parallelism does not split one sample’s computation graph automatically. For single-sample OOM, inspect tokens, inner loops and graph retention first.

Shared records and stop conditions

Fix file lists, seed, initialization source, decoder, loss, training budget and evaluator. A first single-seed run diagnoses issues; later repeats are needed for stability claims. If masks are misaligned, gradients break, NaNs appear or a few samples cannot be fitted, debug before long training.

Save IoU/nIoU/Pd/Fa, latency, throughput and memory. For H0/H1, fix hardware, batch, precision and inner steps. Report incomplete runs honestly rather than predicting a gain from an early curve.

Pause and check your understanding

S0 can fit a few training samples. What does this establish?

Connect this unit to your IRSTD work

Progress and notes stay in this browser.