notebooks
notebooks copied to clipboard
Typo in examples/segment_anything.ipynb
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)
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.
@opassos