DBD-research-group / BirdSet

A benchmark dataset collection for bird sound classification
https://huggingface.co/datasets/DBD-research-group/BirdSet
BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Bugfix for cmAP metric in multilabel.py s.t. it works for multi-GPU t… #146

Closed reheinrich closed 5 months ago

reheinrich commented 5 months ago

The cmAP metric showed some very strange behavior during multi-GPU training. In particular, self.accumulated_predictions and self.accumulated_labels were not always passed to the torch.cat function as lists, but sometimes directly as tensors, which the torch.cat function could not handle. So I changed the code to make sure that self.accumulated_predictions and self.accumulated_labels are always lists before being passed to torch.cat.