-
Notifications
You must be signed in to change notification settings - Fork 598
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
[Fix] Fix bugs in RandomConcatDataset, SeqCropLikeStark and TridentSampling #438
Changes from 4 commits
59f0d47
beceec6
376ea27
7136c64
a698d58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ def __init__(self, dataset_cfgs, dataset_sampling_weights=None): | |
] | ||
|
||
datasets = [build_dataset(cfg) for cfg in dataset_cfgs] | ||
self.CLASSES = datasets[0].CLASSES | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add comments that why we need |
||
|
||
super().__init__(datasets) | ||
|
||
def __getitem__(self, ind): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,14 +117,11 @@ def sampling_trident(self, video_visibility): | |
else: | ||
min_ind, max_ind = search_ind - max_frame_range, \ | ||
search_ind | ||
# TODO: invisible objects are not used, because their | ||
# bboxes must cause interruption in the subsequent | ||
# pipeline. | ||
extra_template_index = self.random_sample_inds( | ||
video_visibility, | ||
num_samples=1, | ||
frame_range=[min_ind, max_ind], | ||
allow_invisible=True)[0] | ||
allow_invisible=False)[0] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change like this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the bboxes of invisible object are invalid, and it will cause interruptions in the pipeline. |
||
|
||
extra_template_inds.append(extra_template_index) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comments for
isinstance(dataset, ConcatDataset) and isinstance(dataset.datasets[0], BaseSOTDataset)