s2anet icon indicating copy to clipboard operation
s2anet copied to clipboard

新手求救!

Open Zhangyu-student opened this issue 2 years ago • 2 comments

when I use the demo_inference to test

I got the following error: File "demo/demo_inference.py", line 118, in colormap=dota_colormap) File "demo/demo_inference.py", line 60, in save_det_result dataset = build_dataset(data_test) File "/home/zhangyu/s2anet/mmdet/datasets/builder.py", line 39, in build_dataset dataset = build_from_cfg(cfg, DATASETS, default_args) File "/home/zhangyu/s2anet/mmdet/utils/registry.py", line 76, in build_from_cfg return obj_cls(**args) File "/home/zhangyu/s2anet/mmdet/datasets/custom.py", line 64, in init self.img_infos = self.load_annotations(self.ann_file) File "/home/zhangyu/s2anet/mmdet/datasets/custom.py", line 85, in load_annotations return mmcv.load(ann_file) File "/home/zhangyu/anaconda3/envs/s2anet/lib/python3.7/site-packages/mmcv/fileio/io.py", line 40, in load obj = handler.load_from_path(file, **kwargs) File "/home/zhangyu/anaconda3/envs/s2anet/lib/python3.7/site-packages/mmcv/fileio/handlers/pickle_handler.py", line 13, in load_from_path filepath, mode='rb', **kwargs) File "/home/zhangyu/anaconda3/envs/s2anet/lib/python3.7/site-packages/mmcv/fileio/handlers/base.py", line 21, in load_from_path with open(filepath, mode) as f: FileNotFoundError: [Errno 2] No such file or directory: 'data/dota_1024/test_split/test_s2anet.pkl'

my input is python demo/demo_inference.py configs/dota/s2anet_r50_fpn_1x_dota.py checkpoints/s2anet_r50_fpn_1x_converted-11c9c5f4.pth data/P0706.jpg result/result1.jpg

Zhangyu-student avatar Jul 01 '22 09:07 Zhangyu-student

Hi, were you able to solve this issue?

YoonaIAN avatar Sep 14 '22 12:09 YoonaIAN

yeah, I have solved this issue.

YUDASHI1 avatar Sep 21 '22 07:09 YUDASHI1