Traceback (most recent call last): File "D:\pycharm\PyCharm Community Edition 2022.3.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "D:\pycharm\PyCharm Community Edition 2022.3.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:\ImageCaptioning.pytorch-master\tools\train.py", line 296, in <module> train(opt) File "D:\ImageCaptioning.pytorch-master\tools\train.py", line 37, in train loader = DataLoader(opt) File "D:\ImageCaptioning.pytorch-master\captioning\data\dataloader.py", line 308, in __init__ self.dataset = Dataset(opt) File "D:\ImageCaptioning.pytorch-master\captioning\data\dataloader.py", line 109, in __init__ self.info = json.load(open(self.opt.input_json)) FileNotFoundError: [Errno 2] No such file or directory: 'data/coco.json'
Traceback (most recent call last): File "D:\pycharm\PyCharm Community Edition 2022.3.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "D:\pycharm\PyCharm Community Edition 2022.3.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:\ImageCaptioning.pytorch-master\tools\train.py", line 296, in <module> train(opt) File "D:\ImageCaptioning.pytorch-master\tools\train.py", line 37, in train loader = DataLoader(opt) File "D:\ImageCaptioning.pytorch-master\captioning\data\dataloader.py", line 308, in __init__ self.dataset = Dataset(opt) File "D:\ImageCaptioning.pytorch-master\captioning\data\dataloader.py", line 109, in __init__ self.info = json.load(open(self.opt.input_json)) FileNotFoundError: [Errno 2] No such file or directory: 'data/coco.json'