VFA icon indicating copy to clipboard operation
VFA copied to clipboard

Visualizing the prediction results

Open SoonFa opened this issue 2 years ago • 9 comments

How to visualize results like Figure 9 in the paper? image

SoonFa avatar Mar 05 '23 11:03 SoonFa

I would like to ask, I have a dataset of my own, how should I proceed to divide it step by step into a dataset suitable for small sample target detection? Thank you very much, is there an introductory document on this?

Caltech-Z avatar Mar 06 '23 05:03 Caltech-Z

I would like to ask, I have a dataset of my own, how should I proceed to divide it step by step into a dataset suitable for small sample target detection? Thank you very much, is there an introductory document on this?

https://github.com/open-mmlab/mmfewshot/blob/main/tools/data/README.md

SoonFa avatar Mar 06 '23 08:03 SoonFa

@SoonFa Just set some configs in test.py https://github.com/csuhan/VFA/blob/e35411eb22b4fc48b524debe58dc7c09be2bf9a6/test.py#L30-L37

csuhan avatar Mar 06 '23 09:03 csuhan

@SoonFa Just set some configs in test.py

https://github.com/csuhan/VFA/blob/e35411eb22b4fc48b524debe58dc7c09be2bf9a6/test.py#L30-L37

when I run

python test.py configs/vfa/voc/vfa_split1/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning.py work_dirs/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning/iter_400.pth --eval mAP --show --show-dir ./imgs

some error come out

warnings.warn( [ ] 1/4952, 2.7 task/s, elapsed: 0s, ETA: 1855sTraceback (most recent call last): File "test.py", line 236, in main() File "test.py", line 197, in main outputs = single_gpu_test(model, data_loader, args.show, args.show_dir, File "/home/zutcv/miniconda3/envs/VFA/lib/python3.8/site-packages/mmfewshot/detection/apis/test.py", line 72, in single_gpu_test result[i], IndexError: list index out of range

SoonFa avatar Mar 06 '23 11:03 SoonFa

I would like to ask, I have a dataset of my own, how should I proceed to divide it step by step into a dataset suitable for small sample target detection? Thank you very much, is there an introductory document on this?

https://github.com/open-mmlab/mmfewshot/blob/main/tools/data/README.md

have seen this file. But what should be the contents of the individual files in the corresponding folder for a complete undisclosed dataset that I need to process into a small sample target detection dataset?

Caltech-Z avatar Mar 06 '23 13:03 Caltech-Z

@SoonFa Just set some configs in test.py https://github.com/csuhan/VFA/blob/e35411eb22b4fc48b524debe58dc7c09be2bf9a6/test.py#L30-L37

when I run

python test.py configs/vfa/voc/vfa_split1/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning.py work_dirs/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning/iter_400.pth --eval mAP --show --show-dir ./imgs

some error come out

warnings.warn( [ ] 1/4952, 2.7 task/s, elapsed: 0s, ETA: 1855sTraceback (most recent call last): File "test.py", line 236, in main() File "test.py", line 197, in main outputs = single_gpu_test(model, data_loader, args.show, args.show_dir, File "/home/zutcv/miniconda3/envs/VFA/lib/python3.8/site-packages/mmfewshot/detection/apis/test.py", line 72, in single_gpu_test result[i], IndexError: list index out of range

I have the same problem. Have you solved it?

ChenZhiMing66 avatar May 07 '23 08:05 ChenZhiMing66

@SoonFa Just set some configs in test.py https://github.com/csuhan/VFA/blob/e35411eb22b4fc48b524debe58dc7c09be2bf9a6/test.py#L30-L37

when I run

python test.py configs/vfa/voc/vfa_split1/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning.py work_dirs/vfa_r101_c4_8xb4_voc-split1_1shot-fine-tuning/iter_400.pth --eval mAP --show --show-dir ./imgs

some error come out

warnings.warn( [ ] 1/4952, 2.7 task/s, elapsed: 0s, ETA: 1855sTraceback (most recent call last): File "test.py", line 236, in main() File "test.py", line 197, in main outputs = single_gpu_test(model, data_loader, args.show, args.show_dir, File "/home/zutcv/miniconda3/envs/VFA/lib/python3.8/site-packages/mmfewshot/detection/apis/test.py", line 72, in single_gpu_test result[i], IndexError: list index out of range

I have solved it. Just change result[i] to result[0] and it works.

ChenZhiMing66 avatar May 07 '23 09:05 ChenZhiMing66

但是它生成的文件中并没有标书出的框?

zzggdd avatar Jun 23 '24 02:06 zzggdd

但是它生成的文件中并没有标书出的框? Hello, have you solved this problem

ThelilinNB avatar Oct 24 '24 05:10 ThelilinNB