You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use VolumeDataset without specifying a list of labels.
In line 48, the label list is initialized with None.
In line 88 with set self.label_vol_ratio = self.sample_label_size / self.sample_volume_size if self.label is not None.
However, in line 232self.label_vol_ratio is referenced even if the label list was not initialized and consequently self.label_vol_ratio was never defined.
Current behavior (bug)
Raises AttributeError
Expected behavior (correct)
Should be able to process a data volume without providing a list of labels since label has a default value of None.
/label ~Bug
The text was updated successfully, but these errors were encountered:
@Lauenburg could you add your test function for different input cases you tried, e.g., mode='train', volume=data, lable=None, valid_mask=data to tests/? Please create a new file called test_data_loading.py
Steps to reproduce
Use
VolumeDataset
without specifying a list of labels.In line 48, the label list is initialized with
None.
In line 88 with set
self.label_vol_ratio = self.sample_label_size / self.sample_volume_size
ifself.label is not None
.However, in line 232
self.label_vol_ratio
is referenced even if the label list was not initialized and consequentlyself.label_vol_ratio
was never defined.Current behavior (bug)
Raises
AttributeError
Expected behavior (correct)
Should be able to process a data volume without providing a list of labels since
label
has a default value ofNone.
/label ~Bug
The text was updated successfully, but these errors were encountered: