Hello @victorca25, I'd like to replicate highres fix, but am unsure how it works exactly. I mainly use diffusers so I must use your repo to replicate highres fix.
If I wanted to use 4x-UltraSharp, upscale it by 1.5, with 25 highres steps and a denoising of 0.4. What should the code look like?
this is how the default code looks like:
import torch
from PIL import Image
import numpy as np
from run import load_model, run
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = load_model('upscaler/4x-UltraSharp.pth', device)
path_to_image = 'img11.png'
image = Image.open(path_to_image).convert('RGB')
sr_image =run(model,image)
pil_image = Image.fromarray(sr_image)
pil_image.save('u3.png')
I hope you see my issue soon and thanks in advance for your time.
Hello @victorca25, I'd like to replicate highres fix, but am unsure how it works exactly. I mainly use diffusers so I must use your repo to replicate highres fix.
If I wanted to use 4x-UltraSharp, upscale it by 1.5, with 25 highres steps and a denoising of 0.4. What should the code look like?
this is how the default code looks like:
I hope you see my issue soon and thanks in advance for your time.