yuantailing / ctw-baseline

Baseline methods for [CTW dataset](https://ctwdataset.github.io/)
MIT License
329 stars 88 forks source link

issue when run prepare_test #13

Closed gangliu123 closed 6 years ago

gangliu123 commented 6 years ago

Hi, I got some error when I try to get test.txt by running prepare_test file. Could you give me some help? Thanks a lot.

Exception in thread Thread-1: Traceback (most recent call last): File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/home/deeplearn/anaconda3/lib/python3.6/threading.py", line 864, in run self._target(*self._args, *self._kwargs) File "/home/gangliu/ctw-baseline/ssd/pythonapi/common_tools.py", line 77, in parallel_work func(args_list[i], tid=tid) File "/home/gangliu/ctw-baseline/ssd/pythonapi/common_tools.py", line 92, in foo func(args) File "../detection/prepare_test_data.py", line 77, in foo crop_once(args) File "../detection/prepare_test_data.py", line 52, in crop_once assert image.shape == imshape AttributeError: 'NoneType' object has no attribute 'shape'

list test 0 / 1

yuantailing commented 6 years ago

Print image file name, ensure file exists. If not, see `Download images and annotations' section in tutorial part-1.

gangliu123 commented 6 years ago

I‘ll try it. Thank you.