python train.py
See original GitHub issuewhen I use python train.py CenterNet-104
to train the model, there is such error
Traceback (most recent call last): File "train.py", line 43, in prefetch_data data, ind = sample_data(db, ind, data_aug=data_aug) File "/media/disk/wudi/CenterNet/sample/coco.py", line 200, in sample_data return globals()[system_configs.sampling_function](db, k_ind, data_aug, debug) File "/media/disk/wudi/CenterNet/sample/coco.py", line 100, in kp_detection image, detections = random_crop(image, detections, rand_scales, input_size, border=border) File "/media/disk/wudi/CenterNet/sample/utils.py", line 57, in random_crop image_height, image_width = image.shape[0:2] AttributeError: 'NoneType' object has no attribute 'shape'
whe does the error happen? how to avoid this error? Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (1 by maintainers)
Top GitHub Comments
I just copied the image in the verification set directly to the training set.
@Duankaiwen Hi, I want to train my dataset, and where shouled I modify in the code?