CodeFormer
CodeFormer copied to clipboard
Repair results are different in final_results directory and restored_faces directory.
When I use the command "python3 inference_codeformer.py --bg_upsampler realesrgan -w 0.7 --input_path ~/Desktop/xiufu4.jpg" to repair a photo, the faces and clothes in the "restored_faces" are both in high definition. However, in the "final_results" directory, the faces are in high definition, but the clothes are blurry. Why is this happening?
orignial photo:
photo in restored_faces:
photo in final results:
I wonder if i use wrong parameter or it is an expected result? If not, how can I get same result between restored_faces and final_result.
I have the same confusion.
Use this --bg_upsampler realesrgan and --face_upsample
So, the command will be python inference_codeformer.py -w 0.5 --has_aligned --bg_upsampler realesrgan --face_upsample --input_path [image folder]|[image path]
因为CF只对脸部作高清修复, 而对非脸部外的图像只作增强,修复完脸部后复合到背景图像中去,因而背景仍会是较模糊的。