Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新手求救! #140

Open
Zhangyu-student opened this issue Jul 1, 2022 · 2 comments
Open

新手求救! #140

Zhangyu-student opened this issue Jul 1, 2022 · 2 comments

Comments

@Zhangyu-student
Copy link

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

@YoonaIAN
Copy link

Hi, were you able to solve this issue?

@YUDASHI1
Copy link

yeah, I have solved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants