This commit is contained in:
Matthew Deville 2026-01-22 23:39:46 +01:00
parent 609afde727
commit 6e965c4a18

View file

@ -20,19 +20,20 @@ struct Args {
#[arg(help = "URL of the image to download and process")] #[arg(help = "URL of the image to download and process")]
url: String, url: String,
#[arg(long, group = "model_selection", help = "Path to custom ONNX model")]
model_path: Option<String>,
#[arg(long, help = "Skip model download, fail if not cached")]
offline: bool,
#[arg( #[arg(
short,
long, long,
group = "model_selection", group = "model_selection",
default_value = "bria", default_value = "bria",
help = "Model to use: 'bria' or 'birefnet-lite' (mutually exclusive with --model-path)" help = "Model to use: 'bria' or 'birefnet-lite' (mutually exclusive with --model-path)"
)] )]
model: String, model: String,
#[arg(long, group = "model_selection", help = "Path to custom ONNX model")]
model_path: Option<String>,
#[arg(long, help = "Skip model download, fail if not cached")]
offline: bool,
} }
#[show_image::main] #[show_image::main]