Irene Iele1, Francesco Di Feola2, Paolo Soda1,2, Rosa Sicilia3, Matteo Tortora4
1 University Campus Bio-Medico of Rome, 2 Umeå University, 3 UniCamillus-Saint Camillus International University of Health Sciences 4 University of Genoa
Public release of the code used in the MICCAI 2026 paper on Multi-Agent Test-Time Adaptation for 2D Medical Image Translation.

This repository contains only the two models used in the paper:
cyclegan/flow_matching/
The release is trimmed to the scripts needed to train the task model, train the monitoring agent, compute reconstruction loss, and run the three adaptation strategies:
baselineemarvt
checkpoint/Ap_*: predictor-agent checkpoints.checkpoint/monitoring_agent/cyclegan/: monitoring-agent checkpoints for the CycleGAN branch.checkpoint/monitoring_agent/flow_matching/: monitoring-agent checkpoints for the flow-matching branch.cyclegan/: CycleGAN branch code.flow_matching/: flow-matching branch code.
train.pytest.pytrain_monitoring_agent.pytest_monitoring_agent.pycompute_loss_rec.pyTTA_baseline.pyTTA_ema.pyTTA_rvt.py
train_flow_matching.pytest_flow_matching.pytrain_monitoring_agent.pytest_monitoring_agent.pycompute_loss_rec.pyTTA_baseline.pyTTA_ema.pyTTA_rvt.py
Internal helper modules remain in the tree because the public scripts import them directly.
The repository already includes the checkpoints needed to reproduce the public runs:
- predictor agent
- monitoring agent for CycleGAN
- monitoring agent for flow matching
The monitoring-agent checkpoints are organized by model and dataset.
Use the CycleGAN environment as the base environment for the cyclegan/ branch:
conda env create -f cyclegan/environment.ymlThen add the dependencies required by flow_matching/ in the same environment, or manage that branch in a separate environment if you prefer a cleaner split.