ianpan commited on
Commit
0b22878
·
verified ·
1 Parent(s): 1eebdfb

Upload model

Browse files
Files changed (1) hide show
  1. modeling.py +1 -1
modeling.py CHANGED
@@ -519,7 +519,7 @@ class TotalClassifierModel(PreTrainedModel):
519
 
520
  if 2 in crop_dims:
521
  # swap plane
522
- x = x0.transpose(2, 0)
523
  smin2, smax2 = self.crop_single_plane(
524
  x, device, organ, threshold, buffer, speed_up
525
  )
 
519
 
520
  if 2 in crop_dims:
521
  # swap plane
522
+ x = x0.swapaxes(2, 0)
523
  smin2, smax2 = self.crop_single_plane(
524
  x, device, organ, threshold, buffer, speed_up
525
  )