question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the idea behind breaking if classes[cls] >= self.shots in metadata creation?

See original GitHub issue

In earlier versions of metadata_coco.py, the loop over annotations of an image would always break if we find an annotation for a category we already sampled enough annotations for: https://github.com/YoungXIAO13/FewShotDetection/blob/78e95a32ec7b955e93fec5c17e7bdc6ebc01271c/lib/datasets/metadata_coco.py#L217-L218 Now, we only break in this case if we are in phase 1 and continue sampling of annotations for phase 2: https://github.com/YoungXIAO13/FewShotDetection/blob/fc0b453029cffb8719b9d65421f9a91019c1a392/lib/datasets/metadata_coco.py#L221-L225 What is generally the idea of breaking instead of continuing in this case? Why having phase-dependent actions in the current version and why don’t always continue the loop and thus look if there are some annotations of categories we haven’t yet sampled enough annotations for?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Jonas-Meiercommented, Feb 10, 2021

Do you mean the used RAM when finally saving the sampled images and masks to a file? How would a firm continue cause more RAM usage as a break? Shouldn’t the memory only depend on the amount of images and annotations sampled? I could imagine that we could save some memory when allowing to sample multiple annotations from a single image, since we would use less images which would result in smaller prn_images.pt file. The prn_mask.pt file however should be always of the same size (for same shots parameter).

0reactions
Jonas-Meiercommented, Feb 15, 2021

No problem. Thank you for the interesting discussion and clarification.

I finally would think that there is no reason left for using break over continue in both phases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · YoungXIAO13/FewShotDetection
(ECCV 2020) PyTorch implementation of paper "Few-Shot Object Detection and ... the idea behind breaking if classes[cls] >= self.shots in metadata creation?
Read more >
Practical Principles for Metadata Creation and Maintenance
Quality metadata creation is just as important as the care, preservation, display, and dissemination of collections; adequate planning and resources must be ...
Read more >
Metadata for Diversity: Identification and Implications of ...
Purpose. The purpose of this paper is to investigate what metadata elements for access points currently exist to represent diverse library reading materials, ......
Read more >
1. What are metadata? - Metadata Creation
Metadata is key to the functionality of the systems holding the content, enabling users to find items of interest, record essential information about...
Read more >
How to Build a Successful Metadata Management ...
Collaborate more effectively: Break down data silos for better understanding of data assets across all business units. Create taxonomies and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found