ucas-vg / PointTinyBenchmark

Point based and tiny object detection and localization code set of UCAS-VG
http://vision.ucas.ac.cn/sources
MIT License
649 stars 80 forks source link

[SeaPerson Dataset] File not found: data/tiny_set_v2/anns/release/rgb_test.json #58

Closed yaoqi-zd closed 2 years ago

yaoqi-zd commented 2 years ago

Hi, when I train P2PNet with the following command

export GPU=4 && LR=1e-4 && B=2 && WH=(640 640) && CONFIG="TinyPersonV2/p2p/p2p_r50_fpns4_1x_fl_sl1_TinyPersonV2_640" && \
CUDA_VISIBLE_DEVICES=0,1,2,3 PORT=10000 tools/dist_train.sh configs2/${CONFIG}.py $GPU \
--work-dir ../TOV_mmdetection_cache/work_dir/${CONFIG}/trainval${WH[0]}x${WH[1]}_adamlr${LR}_1x_b${B}${GPU}g_coarse/ \
--cfg-options optimizer.lr=${LR} data.samples_per_gpu=${B} \
 data.train.ann_file="data/tiny_set_v2/anns/release/corner/coarse/noise_rg-0-0.25_1/corner_w640_h640/pseuw16h16/rgb_train_w640h640ow100oh100_coarse.json" \
 data.val.ann_file="data/tiny_set_v2/anns/release/rgb_test.json"

I get error FileNotFoundError: [Errno 2] No such file or directory: 'data/tiny_set_v2/anns/release/rgb_test.json'

the content in my tiny_set_v2 directory are:

anns  anns_realease_rgb.zip  imgs  imgs_rgb.zip  LegallyItem

and the anns directory looks like:

.
└── release
    └── corner
        └── coarse
            ├── noise_rg-0-0.125_1
            │   ├── corner_w640_h640
            │   │   ├── pseuw16h16
            │   │   │   └── rgb_train_w640h640ow100oh100_coarse.json
            │   │   └── rgb_train_w640h640ow100oh100_coarse.json
            │   └── noise_rg-0-0.125_1.zip
            ├── noise_rg-0-0.167_1
            │   ├── corner_w640_h640
            │   │   └── rgb_train_w640h640ow100oh100_coarse.json
            │   └── noise_rg-0-0.167_1.zip
            ├── noise_rg-0-0.25_1
            │   ├── corner_w640_h640
            │   │   ├── pseuw16h16
            │   │   │   └── rgb_train_w640h640ow100oh100_coarse.json
            │   │   └── rgb_train_w640h640ow100oh100_coarse.json
            │   └── noise_rg-0-0.25_1.zip
            └── noise_uniform_1
                ├── corner_w640_h640
                │   ├── pseuw16h16
                │   │   └── rgb_train_w640h640ow100oh100_coarse.json
                │   └── rgb_train_w640h640ow100oh100_coarse.json
                └── noise_uniform_1.zip

14 directories, 11 files

I cannot find the file anns/release/rgb_test.json, do I miss anything?

yaoqi-zd commented 2 years ago

sorry I indeed miss to unzip the ann_release_rgb.zip file