wenmengzhou commited on
Commit
b9bb4d7
1 Parent(s): b6ec670

use rgb instead of bgr

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ img_path = 'input.png'
16
  def color(image):
17
  output = img_colorization(image[...,::-1])
18
  result = output[OutputKeys.OUTPUT_IMG].astype(np.uint8)
19
- result = result[...,::-1]
20
  # Generate a unique filename using UUID
21
  unique_imgfilename = str(uuid.uuid4()) + '.png'
22
  cv2.imwrite(unique_imgfilename, result)
 
16
  def color(image):
17
  output = img_colorization(image[...,::-1])
18
  result = output[OutputKeys.OUTPUT_IMG].astype(np.uint8)
19
+ # result = result[...,::-1]
20
  # Generate a unique filename using UUID
21
  unique_imgfilename = str(uuid.uuid4()) + '.png'
22
  cv2.imwrite(unique_imgfilename, result)