-
Notifications
You must be signed in to change notification settings - Fork 11
Add intensity sweep visualization to CLI #415
Copy link
Copy link
Open
Labels
contributingGood for community contributorsGood for community contributorsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Activity
Metadata
Metadata
Assignees
Labels
contributingGood for community contributorsGood for community contributorsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Projects
- StatusShow more project fieldsTodo
- StatusShow more project fieldsTo triage
What
Add a
--sweepflag to the CLI that generates a grid of outputs at multiple intensity levels (e.g., 20%, 40%, 60%, 80%, 100%) for a single procedure.Why
Intensity sweep is available in the Gradio demo (Tab 3) but not from the command line. Clinicians and researchers who work from scripts need this functionality without launching the web UI.
Expected behavior
python scripts/run_inference.py photo.jpg \ --procedure rhinoplasty \ --sweep 20,40,60,80,100 \ --output output/sweep_grid.pngThis should produce a single image with labeled columns showing each intensity level side by side.
Implementation hints
scripts/app.py(Tab 3) already does this — extract and generalize ithconcator numpyhstackto assemble the gridcv2.putTextDifficulty: 🟡 Intermediate