Skip to content

Commit

Permalink
Fix transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
ericup committed Jul 9, 2021
1 parent 29e6721 commit 019702c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celldetection/data/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def transpose_spatial(inputs: np.ndarray, inputs_channels_last=True, spatial_dim
else:
# e.g. (0, 2, 3, 1)
b = list(range(inputs.ndim - spatial_dims, inputs.ndim)) # spatial dims
c = list(range(has_batch, inputs.ndim - spatial_dims - (1 - has_batch))) # n channels
c = list(range(has_batch, inputs.ndim - spatial_dims)) # n channels
return np.transpose(inputs, a + b + c)


Expand Down

0 comments on commit 019702c

Please sign in to comment.