ReDet icon indicating copy to clipboard operation
ReDet copied to clipboard

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

Open MintCoffeeCat opened this issue 3 years ago • 0 comments

您好,我按照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转换得到,还是需要手动创建?麻烦您能帮忙解惑,十分感谢!

MintCoffeeCat avatar Jun 26 '22 06:06 MintCoffeeCat