Open lucasjinreal opened 5 years ago
Hi,
Thanks for taking a close look at the code. Actually the sampling function is kp_detection
, https://github.com/xingyizhou/ExtremeNet/blob/master/config/ExtremeNet.json#L5 . And it calls random_crop_pts with proper args https://github.com/xingyizhou/ExtremeNet/blob/master/sample/coco_extreme.py#L97 . The error you occurred might due to that you haven't set the image path correctly so cv2.imread
returns None. Can you add print('image_file', image_file)
before https://github.com/xingyizhou/ExtremeNet/blob/master/sample/coco_extreme.py#L90 and check if the path exists on your machine?
I think the code has some error:
this function called sample_data which take db as argument, but the sample data implementation :+1:
Which calls a sampling function, in this case it is random_crop, but random_crop take a image as first argument..
Why opensource codes with errors............