Closed Kirstihly closed 1 year ago
Hi, it seems that the image can not be cropped correctly. Which sample are you using in the demo? You may need to print the values of rgb_img.shape
, and center, scale
for debugging.
crop_img_resized, crop_img, crop_shape = crop(rgb_img, center, scale, res, rot=rot)
Hi, it seems that the image can not be cropped correctly. Which sample are you using in the demo? You may need to print the values of
rgb_img.shape
, andcenter, scale
for debugging.crop_img_resized, crop_img, crop_shape = crop(rgb_img, center, scale, res, rot=rot)
I see. Thank you! I'm using my own dataset and removing some of the noisy frames fixed it.
Hi! Have you fixed it? I meet the same error.
Thank you for sharing the code base. However, I have tried folders of images or videos but they all raise weird ValueError:
could not broadcast input array from shape (N,M,3) into shape (N,0,3)
.According to the error message, I've already checked that
new_img[new_y[0]:new_y[1], new_x[0]:new_x[1]]
andimg[old_y[0]:old_y[1], old_x[0]:old_x[1]]
are of the same shape. It would be very much appreciated if anyone can provide me with any idea why this error is happening. Thank you!