fengyang0317 / unsupervised_captioning

Code for Unsupervised Image Captioning
MIT License
215 stars 51 forks source link

AttributeError: 'NoneType' object has no attribute 'group' #9

Closed hello-lx closed 5 years ago

hello-lx commented 5 years ago

(py36) XXX@lthpc:~/XSpace/Games/ICP1_unsupervised_captioning$ python preprocessing/crawl_descriptions.py Traceback (most recent call last): File "preprocessing/crawl_descriptions.py", line 100, in app.run(main) File "/home/XXX/miniconda3/envs/py36/lib/python3.6/site-packages/absl/app.py", line 300, in run _run_main(main, args) File "/home/XXX/miniconda3/envs/py36/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main sys.exit(main(argv)) File "preprocessing/crawl_descriptions.py", line 96, in main download(FLAGS.data_dir, FLAGS.num_pages, i, c) File "preprocessing/crawl_descriptions.py", line 76, in download all_pages = get_num_pages(label) File "preprocessing/crawl_descriptions.py", line 60, in get_num_pages num_pages = int(obj.group(1)) AttributeError: 'NoneType' object has no attribute 'group'

hello-lx commented 5 years ago

hello, anyone can help me?

fengyang0317 commented 5 years ago

Duplicated with #8