Distribution Shift Experiment CLI Builder

Target script: experiment.py

Weights Mode

Random weights is the default and emits no subcommand. Choose ImageNet or Custom to emit a subcommand.

No-subcommand behavior: random weights selected when mode is “Random”.

Dataset Configuration

Root directory for the source distribution.
Root directory for the target distribution.
List file for source images (defaults to CULane train.txt).
List file for target images.

Sampling & Test Controls

Controls sample size, run count, and statistical-test settings.

Images per run.
Number of times calibration is ran. Also, number of times the test is ran.
Index for block sampling of dataset.
Dataloader batch size.
Input image size (pixels).
Autoencoder latent dimensions.
Significance level (0–1).
Base seed for runs.
1 disables permutation p-values
Significance Preview
Percentile: 95.0th
Do not assume a Gaussian distribution. Gaussian shown for illustrative purposes only. The red line marks the (1 - alpha) * 100 percentile threshold.

Logging Output

Where to write JSON experiment logs (directory must exist).

Directory path; must already exist.
Output JSON filename.
Required: --source_dir, --target_dir, --target_list_path. If custom weights, also --model_weights_path.
```*