python run_gpen.py --input my_blurry_face.jpg \ --output restored_face.png \ --model_path ./weights/gpen-bfr-2048.pth \ --size 2048 \ --face_align

Training lasted on 8 × NVIDIA A100 GPUs (mixed‑precision, Adam optimizer, lr = 2e‑4 → 2e‑5 after 800 k steps).

The .pth extension identifies it as a PyTorch model file, containing the learned weights and parameters required to run the restoration algorithm. KenjieDec - Hugging Face

Without explicit details on gpen-bfr-2048.pth , we can only speculate on its applications based on common practices in AI:

: You can test its performance through online demos on platforms like Hugging Face Spaces Where to Find It The model is publicly available for download on ModelScope Hugging Face

: This specific model is a popular choice for enhancing face quality in advanced workflows like ComfyUI-ReActor for face swapping and FaceFusion for video enhancement.

Download Your Free LoadMaster Load Balancer

Download