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

执行test.py时,提示缺少val.txt文件,我该如何获得这个文件呢? #166

Open
MintCoffeeCat opened this issue Jun 26, 2022 · 0 comments

Comments

@MintCoffeeCat
Copy link

您好,我按照ReDet_mmcls分支中的getting_started.md所说,下载了ILSVRC 2012的train和val数据集,并分别解压到了data/train和data/val路径下。同时我根据Get Started所说,下载了checkpoint文件,放在了re_resnet50_c8_batch256路径下。当我继续执行如下的指令时

python tools/test.py configs/imagenet/resnet50_batch256.py checkpoints/re_resnet50_c8_batch256/epoch_100.pth

发生如下报错:

No such file or directory: 'data/imagenet/meta/val.txt'

请问我该如何获得此文件呢?我在ImageNet上找到了ILSVRC 2012数据集对应的annotation标注文件,但是文件格式是xml。
请问此txt文件是根据xml转换得到,还是需要手动创建?麻烦您能帮忙解惑,十分感谢!

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

1 participant