Describe the bug
There appears to be a bug in the DescToBBoxSignalDict class and likely DescToBBoxDict (untested). See Jupyter example notebook 5. The bounding box dictionary function returns labels where all four values of the 'boxes' tensor are the same versus a polygon/rectangle that outlines the signal.
The bug appears to stem from target_transforms.py lines 1068 and 1116 in code:
Describe the bug There appears to be a bug in the DescToBBoxSignalDict class and likely DescToBBoxDict (untested). See Jupyter example notebook 5. The bounding box dictionary function returns labels where all four values of the 'boxes' tensor are the same versus a polygon/rectangle that outlines the signal.
The bug appears to stem from target_transforms.py lines 1068 and 1116 in code:
Instead of returning the whole vector, it just returns the first index. Deleting the [0] at the end makes it work as expected.
To Reproduce Steps to reproduce the behavior:
Label: {'labels': tensor([0, 0, 0]), 'boxes': tensor([[0.6497, 0.6497, 0.6497, 0.6497], [0.6497, 0.6497, 0.6497, 0.6497], [0.6497, 0.6497, 0.6497, 0.6497]])}
Expected behavior Bounding box label that represents time and spectrum associated with the signal(s).
Desktop (please complete the following information):
Additional context Thanks for putting this toolset together!