yizhangliu commited on
Commit
020dc5b
1 Parent(s): 46cde7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ model = None
76
  def model_process(image, mask):
77
  global model
78
 
79
- if mask.shape[0] == image.shape[1] and mask.shape[1] == image.shape[0]:
80
  # rotate image
81
  image = np.transpose(image[::-1, ...][:, ::-1], axes=(1, 0, 2))[::-1, ...]
82
 
 
76
  def model_process(image, mask):
77
  global model
78
 
79
+ if mask.shape[0] == image.shape[1] and mask.shape[1] == image.shape[0] and mask.shape[0] != mask.shape[1]:
80
  # rotate image
81
  image = np.transpose(image[::-1, ...][:, ::-1], axes=(1, 0, 2))[::-1, ...]
82