ComfyUI - FaceRestore Node
세부 정보
파일 다운로드
모델 설명
이 프로젝트의 최신 버전은 https://github.com/mav-rik/facerestore_cf에서 확인하세요.
이 ComfyUI 노드는 AUTOMATIC1111 웹UI의 얼굴 복원 옵션과 유사하게 이미지 내 얼굴을 복원하는 데 사용할 수 있습니다.
설치 방법
압축 파일을 해제한 후, facerestore 폴더를 ComfyUI의 custom_nodes 폴더 안에 넣어주세요.
포터블 윈도우 버전의 ComfyUI를 사용 중인 경우, embedded_install.bat를 실행하세요.
포터블 버전이 아닌 윈도우 사용자는 install.bat를 실행할 수 있습니다. 리눅스 및 맥 사용자는 install.sh를 실행하세요.
설치가 실패할 경우, opencv-python를 수동으로 설치하는 방법을 찾아야 합니다 (아니면 cv2가 찾지 못한다는 오류가 발생합니다).
얼굴 복원 모델
이 모델들은 얼굴 복원을 수행합니다. AUTOMATIC1111을 사용 중이신 분이라면 이미 해당 모델을 보유하고 계실 수 있지만, 없는 경우 아래 다운로드 링크를 이용하세요.
모델 파일을 models/facerestore_models 폴더에 넣어주세요.
https://github.com/TencentARC/GFPGAN/releases/
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth
https://github.com/sczhou/CodeFormer/releases/
https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth
얼굴 탐지 모델
얼굴 복원 모델은 잘라낸 얼굴 이미지에서만 작동합니다. 얼굴 탐지 모델을 통해 찾은 각 얼굴에 대해 잘라낸 이미지를 얼굴 복원 모델로 전달합니다.
이 모델들은 처음 사용될 때 자동으로 다운로드되어 models/facedetection 폴더에 저장됩니다.
혹은 직접 다운로드하고 싶으시다면 아래 링크를 이용하세요.
https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth
https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_mobilenet0.25_Final.pth
https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/yolov5l-face.pth
https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/yolov5n-face.pth
이 모델도 자동으로 다운로드되어 facedetection 폴더에 저장됩니다. 복원한 얼굴을 원본 이미지에 다시 삽입하는 데 사용됩니다.
https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/parsing_parsenet.pth
