Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/sczhou/CodeFormer
/ inference_codeformer.py
File
inference_codeformer.py
inference_codeformer.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Modified by Shangchen Zhou from: https://github.com/TencentARC/GFPGAN/blob/master/inference_gfpgan.py
2
import
os
3
import
cv2
4
import
argparse
Callers
nothing calls this directly
Calls
15
RRDBNet
Class · 0.90
RealESRGANer
Class · 0.90
FaceRestoreHelper
Class · 0.90
img2tensor
Function · 0.90
tensor2img
Function · 0.90
imwrite
Function · 0.90
normalize
Function · 0.85
clean_all
Method · 0.80
read_image
Method · 0.80
get_face_landmarks_5
Method · 0.80
align_warp_face
Method · 0.80
add_restored_face
Method · 0.80
Tested by
no test coverage detected