Closed sunwoo76 closed 3 years ago
The default models are randomly initialized (untrained) so this is expected functionality.
@isaaccorley thank you. Do you have a plan to upload pertained model weights?
Yes, I'm working on a branch to which adds pretrained weights but don't have a time of completion for you.
@isaaccorley I see. I hope you to update the pre-trained weights someday :) thank you!
Thanks for your good work.
But, when I try to use your library, this makes strange results.
I loaded the image using openCV and made it pytorch tensor which range is [0.,1.]
Is the default is un-trained model?
I followed this example below:
import torch import torch_enhance
increase resolution by factor of 2 (e.g. 128x128 -> 256x256) model = torch_enhance.models.SRResNet(scale_factor=2, channels=3)
lr = torch.randn(1, 3, 128, 128) sr = model(x) # [1, 3, 256, 256] -> model(my_img)