mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
[segment-anything] Print IOU values to help with debugging (#999)
This commit is contained in:
@ -126,7 +126,7 @@ pub fn main() -> anyhow::Result<()> {
|
|||||||
start_time.elapsed().as_secs_f32()
|
start_time.elapsed().as_secs_f32()
|
||||||
);
|
);
|
||||||
println!("mask:\n{mask}");
|
println!("mask:\n{mask}");
|
||||||
println!("iou_predictions: {iou_predictions:?}");
|
println!("iou_predictions: {iou_predictions}");
|
||||||
|
|
||||||
let mask = (mask.ge(args.threshold)? * 255.)?;
|
let mask = (mask.ge(args.threshold)? * 255.)?;
|
||||||
let (_one, h, w) = mask.dims3()?;
|
let (_one, h, w) = mask.dims3()?;
|
||||||
|
Reference in New Issue
Block a user