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

Visualizing the prediction results #3

Open
SoonFa opened this issue Mar 5, 2023 · 8 comments
Open

Visualizing the prediction results #3

SoonFa opened this issue Mar 5, 2023 · 8 comments

Comments

@SoonFa
Copy link

SoonFa commented Mar 5, 2023

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

@Caltech-Z
Copy link

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?

@SoonFa
Copy link
Author

SoonFa commented Mar 6, 2023

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

@csuhan
Copy link
Owner

csuhan commented Mar 6, 2023

@SoonFa Just set some configs in test.py

VFA/test.py

Lines 30 to 37 in e35411e

parser.add_argument('--show', action='store_true', help='show results')
parser.add_argument(
'--show-dir', help='directory where painted images will be saved')
parser.add_argument(
'--show-score-thr',
type=float,
default=0.3,
help='score threshold (default: 0.3)')

@SoonFa
Copy link
Author

SoonFa commented Mar 6, 2023

@SoonFa Just set some configs in test.py

VFA/test.py

Lines 30 to 37 in e35411e

parser.add_argument('--show', action='store_true', help='show results')
parser.add_argument(
'--show-dir', help='directory where painted images will be saved')
parser.add_argument(
'--show-score-thr',
type=float,
default=0.3,
help='score threshold (default: 0.3)')

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

@Caltech-Z
Copy link

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?

@ChenZhiMing66
Copy link

@SoonFa Just set some configs in test.py

VFA/test.py

Lines 30 to 37 in e35411e

parser.add_argument('--show', action='store_true', help='show results')
parser.add_argument(
'--show-dir', help='directory where painted images will be saved')
parser.add_argument(
'--show-score-thr',
type=float,
default=0.3,
help='score threshold (default: 0.3)')

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
Copy link

@SoonFa Just set some configs in test.py

VFA/test.py

Lines 30 to 37 in e35411e

parser.add_argument('--show', action='store_true', help='show results')
parser.add_argument(
'--show-dir', help='directory where painted images will be saved')
parser.add_argument(
'--show-score-thr',
type=float,
default=0.3,
help='score threshold (default: 0.3)')

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.

@zzggdd
Copy link

zzggdd commented Jun 23, 2024

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

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

5 participants