MCPcopy 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
2import os
3import cv2
4import argparse

Callers

nothing calls this directly

Calls 15

RRDBNetClass · 0.90
RealESRGANerClass · 0.90
FaceRestoreHelperClass · 0.90
img2tensorFunction · 0.90
tensor2imgFunction · 0.90
imwriteFunction · 0.90
normalizeFunction · 0.85
clean_allMethod · 0.80
read_imageMethod · 0.80
get_face_landmarks_5Method · 0.80
align_warp_faceMethod · 0.80
add_restored_faceMethod · 0.80

Tested by

no test coverage detected