Skip to content

Commit

Permalink
Update ldm_super_resolution_evaluator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pwolnows authored Oct 29, 2024
1 parent 6c50a39 commit b5536b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def preprocess_image(image):
@staticmethod
def postprocess_image(image: np.ndarray, std=255, mean=0):
image = image / 2 + 0.5
image = image.transpose(0, 2, 3, 1)
image *= np.array(std, dtype=image.dtype)
image += np.array(mean, dtype=image.dtype)

Expand Down

0 comments on commit b5536b5

Please sign in to comment.