michelecafagna26 / vinvl-visualbackbone

Original VinVL visual backbone with simplified APIs to easily extract features, boxes, object detections, in a few lines of Python code.
5 stars 1 forks source link

EOFError: Ran out of input #2

Open tt0059 opened 1 year ago

tt0059 commented 1 year ago

Ran out of input File "/nfs/tangt/anaconda3/envs/VinVL/lib/python3.8/site-packages/torch/serialization.py", line 764, in _legacy_load magic_number = pickle_module.load(f, pickle_load_args) File "/nfs/tangt/anaconda3/envs/VinVL/lib/python3.8/site-packages/torch/serialization.py", line 595, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/nfs/tangt/code/my-image-to-paragraph/VinVL/vinvl-visualbackbone/scene_graph_benchmark/maskrcnn_benchmark/utils/checkpoint.py", line 95, in _load_file return torch.load(f, map_location=torch.device("cpu")) File "/nfs/tangt/code/my-image-to-paragraph/VinVL/vinvl-visualbackbone/scene_graph_benchmark/maskrcnn_benchmark/utils/checkpoint.py", line 136, in _load_file loaded = super(DetectronCheckpointer, self)._load_file(f) File "/nfs/tangt/code/my-image-to-paragraph/VinVL/vinvl-visualbackbone/scene_graph_benchmark/maskrcnn_benchmark/utils/checkpoint.py", line 61, in load checkpoint = self._load_file(f) File "/nfs/tangt/code/my-image-to-paragraph/VinVL/vinvl-visualbackbone/scene_graph_benchmark/scene_graph_benchmark/wrappers/wrappers.py", line 96, in init self.checkpointer.load(str(Path(BASE_PATH, cfg.MODEL.WEIGHT))) File "/nfs/tangt/code/my-image-to-paragraph/VinVL/vinvl-visualbackbone/scene_graph_benchmark/test.py", line 5, in detector = VinVLVisualBackbone() File "/nfs/tangt/anaconda3/envs/VinVL/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/nfs/tangt/anaconda3/envs/VinVL/lib/python3.8/runpy.py", line 194, in _run_module_as_main (Current frame) return _run_code(code, main_globals, None, EOFError: Ran out of input

michelecafagna26 commented 1 year ago

This is very weird, can you post the snippet of code you used and python and pytorch versions?