MCPcopy Create free account
hub / github.com/ChenWu98/cycle-diffusion / save_image

Function save_image

evaluation/utils.py:7–10  ·  view source on GitHub ↗
(image_path, image)

Source from the content-addressed store, hash-verified

5
6
7def save_image(image_path, image):
8 assert image.dim() == 3 and image.shape[0] == 3
9
10 utils.save_image(image, image_path)
11
12
13def calculate_ssim(img1, img2):

Callers 2

evaluateMethod · 0.85
evaluateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected