Update app.py
Browse files
app.py
CHANGED
@@ -182,8 +182,8 @@ if __name__ == "__main__":
|
|
182 |
dict = cv2.cvtColor(dict, cv2.COLOR_RGB2BGR)
|
183 |
|
184 |
#img_output
|
185 |
-
img_cv = rearrange(x_checked_image_torch[0], 'c h w -> h w c').cpu().numpy()
|
186 |
-
img_cv = (img_cv * 255)
|
187 |
img_cv = cv2.cvtColor(img_cv, cv2.COLOR_RGB2BGR)
|
188 |
|
189 |
#mask
|
|
|
182 |
dict = cv2.cvtColor(dict, cv2.COLOR_RGB2BGR)
|
183 |
|
184 |
#img_output
|
185 |
+
img_cv = rearrange(x_checked_image_torch[0], 'c h w -> h w c').cpu().numpy()
|
186 |
+
img_cv = (img_cv * 255).astype(np.uint8)
|
187 |
img_cv = cv2.cvtColor(img_cv, cv2.COLOR_RGB2BGR)
|
188 |
|
189 |
#mask
|