This folder contains developer-facing helper scripts.
-
run_dev.pyStarts the FastAPI app locally. -
setup_huggingface.pyDownloads and prepares the expected local Hugging Face model snapshot layout. -
smoke_real_diffusers.pyRuns a real-model smoke test through the orchestration path and writes output artifacts. -
create_real_e2e_example.pyExecutes a real multi-round steering session on GPU and writes a standalone HTML walkthrough plus a trace bundle underoutput/examples/real_e2e_example_run/. The example is intended to demonstrate system value starting from a strong user text prompt and a clear objective. -
run_paper_minimal_baseline_matrix.pyExecutes bounded paper-facing experiment bundles from a protocol YAML and writes JSON/CSV summaries plus per-run runtime bundles under the chosenpaper/results/.../directory. -
run_paper_oracle_target_recovery.pyExecutes the hidden-target oracle study that starts from manual captions, steers for multiple rounds, and scores progress in CLIP space against the held-out target image. -
run_paper_oracle_multimetric_repeated.pyRepeats the oracle target-recovery study across multiple seeds per target and writes CLIP- and DINOv2-based summaries underpaper/results/oracle_multimetric_repeated/. -
run_paper_oracle_incumbent_policy_slice.pyExecutes the compact incumbent-policy comparison for oracle steering, contrasting carry-forward baseline, soft incumbent penalty, and hard incumbent cooldown. -
run_paper_sampler_feedback_comparison.pyExecutes the controlled sampler and feedback-model comparison bundle and writes policy summaries, round curves, and paper-facing SVG plots underpaper/results/sampler_feedback_comparison/. -
run_paper_method_extension_comparison.pyExecutes the extended method-comparison bundle for newer samplers, richer preference models, and alternative oracle-selection policies, then writes policy summaries, round curves, and paper-facing SVG plots underpaper/results/method_extension_comparison/. -
run_paper_oracle_progress_diagnosis.pyExecutes a compact real-backend oracle-stagnation diagnosis study, comparing incumbent-locking baseline behavior against targeted sampler, updater, and oracle-policy fixes, then writes summary tables and a paper-facing SVG plot underpaper/results/oracle_progress_diagnosis/. The same runner is also used for the newer inspired-methods slice underpaper/results/oracle_inspired_methods/. -
build_human_pairwise_eval_pack.pyBuilds the curated human pairwise evaluation package, including review HTML and CSV-friendly comparison artifacts underpaper/results/human_pairwise_evaluation/. -
create_configuration_samples.pyWrites example YAML configuration bundles for documentation, demos, and controlled experiment setup. -
preload_experiment_models.pyScans the paper protocol YAML files, downloads the referenced diffusion and evaluation models once into the local shared caches, and lets later experiment runs reuse them instead of refetching weights. -
build_paper_baseline_analysis.pyReads repeated experiment CSVs from a chosenpaper/results/.../tables/directory and writes paper-facing analysis tables plus a short appendix note under the matchinganalysis/directory. -
build_journal_manuscript_assets.pyCopies and prepares paper figures from repository-contained experiment bundles intopaper/figures/. -
build_journal_manuscript_html.pyRenders the self-contained journal manuscript HTML with justified text and a bundled local MathJax runtime for offline equation rendering. -
build_journal_appendix_html.pyRenders the self-contained journal appendix HTML with justified text and a bundled local MathJax runtime for offline equation rendering. -
build_paper_html.pyRenders the older Markdown manuscript draft into a standalone HTML document underpaper/. -
run_e2e_debug.ps1Launches the Playwright suite headed in Chrome for interactive debugging. -
bootstrap.ps1Creates a local virtual environment, installs dependencies, installs npm packages, and can optionally prepare the Hugging Face model snapshot. -
build_release_zip.ps1Builds an optional source release zip from tracked repository files intooutput/releases/. -
build_pages_site.pyConverts the repository Markdown set into a static HTML site undersite/, rewrites inter-document links for GitHub Pages, and copies published image assets used by the docs. -
generate_readme_banner.pyUses the Gemini image-generation API to create the repository banner asset used in the main README. -
generate_doc_illustrations.pyUses the Gemini image-generation API to create conceptual illustration assets for the student tutorial and published HTML docs.
These scripts are convenience entry points for setup, release packaging, smoke testing, local development, and browser debugging.
To warm the shared model cache before running several paper experiments:
python scripts/preload_experiment_models.py --include-default-diffusionThis prepares diffusion snapshots under models/ and Hugging Face evaluation
models under models/hf_cache/ so the oracle and paper runners can reuse them
across runs.