Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't feel like I can achieve the effect of the published image. I just increased the resolution, but the image is not high-definition. Is it because I set the parameters incorrectly? #875

Open
hjj-lmx opened this issue Dec 3, 2024 · 0 comments

Comments

@hjj-lmx
Copy link

hjj-lmx commented Dec 3, 2024

def __init__(self, device):
    model_info = {
        "model_path": os.path.join("gfpgan", "weights", "RealESRGAN_x4plus.pth"),
        "scale": 4,
        "model": lambda: RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=23, num_grow_ch=32, scale=4)
    }
    self.model = RealESRGANer(
        scale=model_info["scale"],
        model_path=model_info["model_path"],
        model=model_info["model"](),
        half=True,
        tile=256,
        tile_pad=10,
        pre_pad=10,
        device=device,
    )
@hjj-lmx hjj-lmx changed the title 感觉达不到发布出来的图片的效果,只是把分辨率变大了,图片并没有高清,是我参数设置错误了吗? I don't feel like I can achieve the effect of the published image. I just increased the resolution, but the image is not high-definition. Is it because I set the parameters incorrectly? Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant