Closed davidhuangal closed 4 years ago
Just modify the datasets/coco.py (or create a new dataset file) and implement the image reading/preprocessing part in __getitem__ function, the output of __getitem__ should follow the same pattern:
__getitem__
return {'image': img, 'hmap': hmap, 'w_h_': w_h_, 'regs': regs, 'inds': inds, 'ind_masks': ind_masks, 'c': center, 's': scale, 'img_id': img_id}
Thank you.
Just modify the datasets/coco.py (or create a new dataset file) and implement the image reading/preprocessing part in
__getitem__
function, the output of__getitem__
should follow the same pattern: