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

External exemplars, more predictions images, more parametrized inference... #21

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

GioFic95
Copy link
Contributor

Added:

  • requirements.txt file;
  • possibility to use external exemplars in FSC_test_cross(few-shot).py via the --external parameter: all the test images share the same exemplars, given in the standard annotations json file, but only for few input images;
  • visualisation of meaningful images even with small exemplars (s_cnt >= 1) in demo.py and FSC_test_cross(few-shot).py;
  • writing of images with predictions and bounding boxes (the latter only if not "external") for each test image in FSC_test_cross(few-shot).py;
  • writing of a plot with the number of counted objects for each input image in FSC_test_cross(zero-shot).py (particularly useful when doing inference on video frames);
  • parameters to define all the needed input files and directories (anno_file, data_split_file, im_dir);
  • parametrized limit to the number of exemplars used for any test image in FSC_test_cross(few-shot).py via the --box_bound parameter;
  • possibility to disable test-time normalization in FSC_test_cross(few-shot).py via the --normalization parameter;
  • print of elapsed time in demo.py.

- requirements.txt file;
- visualisation of meaningful images even with small exemplars (s_cnt >= 1) in demo.py and FSC_test_cross(few-shot).py;
- parameters to define all the needed input files and dirs (anno_file, data_split_file, im_dir);
- possibility to use external exemplars in FSC_test_cross(few-shot).py via the --external parameter: all the test images share the same exemplars, given in the standard annotation.json file, but only for few input images;
- parametrized limit to the number of exemplars used for any test image in FSC_test_cross(few-shot).py via the --box_bound parameter;
- possibility to disable test-time normalization in FSC_test_cross(few-shot).py via the --normalization parameter;
- writing of a plot with number of counted objects for each input image in FSC_test_cross(zero-shot).py;
- writing of images with predictions and bounding boxes (if not "external") for each test image in FSC_test_cross(few-shot).py;
- print of elapsed time in demo.py.
@Verg-Avesta Verg-Avesta merged commit 0dcb72e into Verg-Avesta:main Jan 25, 2023
@GioFic95 GioFic95 mentioned this pull request Feb 2, 2023
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

Successfully merging this pull request may close these issues.

2 participants