mrwu-mac / DIFNet

[CVPR 2022] This repository is for the paper ``DIFNet: Boosting Visual Information Flow for Image Captioning'' .
BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

我在window 下运行出现了这种情况。使用了 python test.py --exp_name DIFNet_lrp --mode difnet_lrp命令行 #11

Open 775266553 opened 1 year ago

775266553 commented 1 year ago

Evaluation: 0%| | 0/100 [00:00<?, ?it/s] Traceback (most recent call last): File "test.py", line 141, in scores = predict_captions(model, dict_dataloader_test, text_field, out_file) File "test.py", line 31, in predict_captions for it, ((img_id, images, pixels), caps_gt) in enumerate(iter(dataloader)): File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next data = self._next_data() File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 671, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data_utils\fetch.py", line 56, in fetch data = self.dataset.getitems(possibly_batched_index) TypeError: 'generator' object is not callable

0xzzq666 commented 1 month ago

您好?请问问题解决了吗