FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

I can't run the code!

Open yuhua666 opened this issue 2 years ago • 0 comments

File "/root/FastSAM/fastsam/utils.py", line 17, in adjust_bboxes_to_image_border boxes[:, 0] = torch.where(boxes[:, 0] < threshold, 0, boxes[:, 0]) # x1 RuntimeError: expected scalar type long int but found float

yuhua666 avatar Jul 05 '23 12:07 yuhua666