INNER CODE UNIT · Python

img

Mukosame/Anime2Sketch · test.py:50

            img = (img + 1) / 2 # [-1,1] to [0,1]
            img = equalize_clahe(img, clip_limit=opt.clahe_clip)
            img = (img - .5) / .5 # [0,1] to [-1,1]

        aus_tensor = model(img.to(device))
        aus_img = tensor_to_img(aus_tensor)
        save_image(aus_img, aus_path, aus_resize)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…