notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

Typo in examples/segment_anything.ipynb

Open opassos opened this issue 2 years ago • 2 comments
trafficstars

In this demo notebook hete the call

inputs = processor(raw_image, input_boxes=input_boxes, return_tensors="pt").to(device)

raises the error: ValueError("Input boxes must be a list of list of list of floating points.")

input boxes should be wrapped around a list for this to work like:

inputs = processor(raw_image, input_boxes=[input_boxes], return_tensors="pt").to(device)

Same is true for this line

inputs = processor(raw_image, input_boxes=input_boxes, input_points=[input_points], return_tensors="pt").to(device)

which should be replaced by

inputs = processor(raw_image, input_boxes=[input_boxes], input_points=[input_points], return_tensors="pt").to(device)

opassos avatar Jun 26 '23 14:06 opassos

Is this issue still open? I would love to work on this issue. As I am quite new in ML/Python open source world, I do think these kinds of issues will improve my ML understanding. Thank you.

daredevil3435 avatar Mar 30 '24 10:03 daredevil3435

@opassos

daredevil3435 avatar Apr 04 '24 08:04 daredevil3435