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
only paste back from already restored faces #46
Comments
Did you mean that you want to paste restored face (from other sources) to the images upsampled by real-esrgan? |
"(from other sources)" Doesn't matter but also that, yes. If I used gfpgan without paste back, I would like to continue with just pasteback without any restoration from beginning. |
I think you can modify https://github.com/xinntao/facexlib/blob/master/facexlib/utils/face_restoration_helper.py An easy way is to change the value face_helper.restored_faces with restored faces from other sources. |
There's no "face_helper.restored_faces" in the code, I ctrl+f and searched. |
Sorry for the misunderstanding. I mean in your script, you can re-set the
|
Thank you, will try it later. |
Is it possible to do this without restoring faces again just with 2x esrgan?
like
"python inference_gfpgan.py --upscale 2 --model_path nomodel --test_path results/restored_faces --save_root results/restored_images --paste_back_only"
?
The text was updated successfully, but these errors were encountered: