MCG-NJU / DDM

[CVPR 2022] Progressive Attention on Multi-Level Dense Difference Maps for Generic Event Boundary Detection
MIT License
49 stars 3 forks source link

balanced sampler issue #9

Open JaejunHwang opened 1 year ago

JaejunHwang commented 1 year ago

When I try to use --balance-batch option, there is a problem.

In MultiFDataset def _get_training_samples(self, index): indices = [] for class_ in self.labels_set: real_index = self.label_to_indices[class_][int(index * self.ratios[class_])] indices.append(real_index) return indices

at the part of (index * self.ratios[class_]), their range is over the self.label_to_indices itself.