You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the run_detector.py, I got the following errors:
Traceback (most recent call last):
File "C:\Users\nieshijie\Downloads\BlazePalm-master\BlazePalm-master\ML\run_detector.py", line 31, in
cropped_hand = frame[y:endy, x:endx]
TypeError: only integer tensors of a single element can be converted to an index
I modified line 25~30 and convert type from float to int. It seems that the detected bound box is wrong. Could you please check about that? Thanks.
The text was updated successfully, but these errors were encountered:
just convert the data type like this:
# crop this image, pad it, run landmarks
x = max(0, p[0].type(torch.int))
y = max(0, p[1].type(torch.int))
endx = min(ll, p[2].type(torch.int))
endy = min(ll, p[3].type(torch.int))
Hi,
When I run the run_detector.py, I got the following errors:
Traceback (most recent call last):
File "C:\Users\nieshijie\Downloads\BlazePalm-master\BlazePalm-master\ML\run_detector.py", line 31, in
cropped_hand = frame[y:endy, x:endx]
TypeError: only integer tensors of a single element can be converted to an index
I modified line 25~30 and convert type from float to int. It seems that the detected bound box is wrong. Could you please check about that? Thanks.
The text was updated successfully, but these errors were encountered: