-
Notifications
You must be signed in to change notification settings - Fork 6.8k
imagenet example training error #4272
Comments
use resize for im2rec. Or use resize=256 in ImageRecordIter |
Thank you very much for your reply! Actually I ran im2rec with resize=227 and I tried serveral ways but all failed: 1.data.set_data_aug_level(parser, 0) instead of level 3 2.set image_shape to very small value like '3,100,100' still failed but '3,1,1' succeed. I am really confused about that. The image_shape param is set to be smaller than the input shape of 227 but problem still occurred. Many thanks in advance |
Update:When set imageshape size to 50, we got: It seems that the data augmentation is default, how to forbid that or is there any better solutions? INFO:root:Start training with [gpu(0)] |
Update:I annotated all the augmentation params in ImageRecordIter, but still get the same error. |
i'm assume the input data size is 480. if not, please change this line https://github.com/dmlc/mxnet/blob/master/example/image-classification/train_imagenet.py#L26 for example, change to |
fixed by #4295 |
Could you explain what is the meaning of min_random_scale? Thanks |
I am having the same issue, but with train_cifar10.py (iIssue : #7619) modified the code in train_cifar10.py to, Also, while generating the rec file using im2rec.py, i re-sized my images to 227x227x3 Any help is appreciated. Thanks |
This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks! |
I train the networks on ILSVRC data set, with preprocessing the data set with im2rec.py -resize=227. when training get the error:
/dmlc-core/include/dmlc/logging.h:235: [13:31:47] src/io/image_aug_default.cc:254: Check failed: static_cast<index_t>(res.rows) >= param_.data_shape[1] && static_cast<index_t>(res.cols) >= param_.data_shape[2] input image size smaller than input shape
i debug around, found this is because in the dataset there is picture‘s pixels less 227 (x < 227 or y < 227 or).
Thanks a lot!
The text was updated successfully, but these errors were encountered: