AdelaiDet icon indicating copy to clipboard operation
AdelaiDet copied to clipboard

run demo.py error

Open SJDeng opened this issue 4 years ago • 4 comments

When I run
python demo/demo.py
--config-file configs/FCOS-Detection/R_50_1x.yaml
--input input1.jpg input2.jpg
--opts MODEL.WEIGHTS fcos_R_50_1x.pth

error : Config 'configs/FCOS-Detection/R_50_1x.yaml' has no VERSION. Assuming it to be compatible with latest v2

Please help me,than you so much.

SJDeng avatar Jun 24 '20 19:06 SJDeng

this is a warning, not the error

stanstarks avatar Jul 01 '20 10:07 stanstarks

I met the same question ,if you solve the problem ,Please let me know.Thank you so much

z929407579 avatar Jun 08 '21 14:06 z929407579

Traceback (most recent call last): File "demo/demo.py", line 75, in demo = VisualizationDemo(cfg) File "/root/code/adet/demo/predictor.py", line 40, in init self.predictor = DefaultPredictor(cfg) File "/root/code/detectron2/detectron2/engine/defaults.py", line 188, in init checkpointer.load(cfg.MODEL.WEIGHTS) File "/root/anaconda3/lib/python3.8/site-packages/fvcore-0.1.1.post20200716-py3.8.egg/fvcore/common/checkpoint.py", line 117, in load File "/root/code/detectron2/detectron2/checkpoint/detection_checkpoint.py", line 42, in _load_file loaded = super()._load_file(filename) # load native pth checkpoint File "/root/anaconda3/lib/python3.8/site-packages/fvcore-0.1.1.post20200716-py3.8.egg/fvcore/common/checkpoint.py", line 213, in _load_file File "/root/anaconda3/lib/python3.8/site-packages/torch/serialization.py", line 593, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/root/anaconda3/lib/python3.8/site-packages/torch/serialization.py", line 763, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) EOFError: Ran out of input

我出现这个错

world2025 avatar Oct 26 '21 03:10 world2025

Traceback (most recent call last): File "demo/demo.py", line 75, in demo = VisualizationDemo(cfg) File "/root/code/adet/demo/predictor.py", line 40, in init self.predictor = DefaultPredictor(cfg) File "/root/code/detectron2/detectron2/engine/defaults.py", line 188, in init checkpointer.load(cfg.MODEL.WEIGHTS) File "/root/anaconda3/lib/python3.8/site-packages/fvcore-0.1.1.post20200716-py3.8.egg/fvcore/common/checkpoint.py", line 117, in load File "/root/code/detectron2/detectron2/checkpoint/detection_checkpoint.py", line 42, in _load_file loaded = super()._load_file(filename) # load native pth checkpoint File "/root/anaconda3/lib/python3.8/site-packages/fvcore-0.1.1.post20200716-py3.8.egg/fvcore/common/checkpoint.py", line 213, in _load_file File "/root/anaconda3/lib/python3.8/site-packages/torch/serialization.py", line 593, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/root/anaconda3/lib/python3.8/site-packages/torch/serialization.py", line 763, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) EOFError: Ran out of input

我出现这个错

@tkone2018 你好,这个问题解决了吗,我也是报这个错

namelzya avatar Nov 23 '21 12:11 namelzya