Skip to content

Commit

Permalink
Fixed batch size problem in unwrapper when there's multiple volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-drielsma committed Nov 9, 2023
1 parent 92495b5 commit 4dfb0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlreco/trainval.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def forward(self, data_iter, iteration=None):

# Unwrap output, if requested
if unwrap:
unwrapper.batch_size = len(input_data['index'][0]) * self._num_volumes
unwrapper.batch_size = len(input_data['index'][0])
input_data, res = unwrapper(input_data, res)
else:
if 'index' in input_data:
Expand Down

0 comments on commit 4dfb0b1

Please sign in to comment.