Skip to content

Commit

Permalink
fix input_dim check
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthcfong committed Jan 20, 2018
1 parent 1ed74b4 commit 68f5e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/labelprobe_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def iou_union_d(input, target, threshold = 0.5):


def get_seg_size(input_dim):
if input_dim == [227, 227]:
if input_dim == [227, 227] or (input_dim[0] == 227 and input_dim[1] == 227):
seg_size = (113, 113)
elif input_dim == [224, 224] or (input_dim[0] == 224 and input_dim[1] == 224):
seg_size = (112, 112)
elif input_dim == [384, 384]:
elif input_dim == [384, 384] or (input_dim[0] == 384 and input_dim[1] == 384):
seg_size = (192, 192)
else:
print input_dim
Expand Down

0 comments on commit 68f5e3c

Please sign in to comment.