Skip to content

Commit

Permalink
Fix dtype of super resolved image
Browse files Browse the repository at this point in the history
  • Loading branch information
HasnainRaz committed Oct 27, 2020
1 parent d7fb8b2 commit bbd15b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
sr = model.predict(np.expand_dims(low_res, axis=0))[0]

# Rescale values in range 0-255
sr = ((sr + 1) / 2.) * 255
sr = (((sr + 1) / 2.) * 255).astype(np.uint8)

# Convert back to BGR for opencv
sr = cv2.cvtColor(sr, cv2.COLOR_RGB2BGR)
Expand Down

0 comments on commit bbd15b0

Please sign in to comment.