deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
楼主: leeso

【人脸图清晰化神器】GFPGAN_GPEN_CodeFormer 3合1人像增强工具集

  [复制链接]

0

主题

372

帖子

2330

积分

初级丹圣

Rank: 8Rank: 8

积分
2330
发表于 2022-3-8 12:49:26 | 显示全部楼层
感谢分享
回复

使用道具 举报

1

主题

108

帖子

2132

积分

初级丹圣

Rank: 8Rank: 8

积分
2132
发表于 2022-3-10 22:04:42 | 显示全部楼层
感谢大佬分享
回复 支持 反对

使用道具 举报

4

主题

166

帖子

1063

积分

初级丹圣

Rank: 8Rank: 8

积分
1063

万事如意节日勋章

发表于 2022-3-12 01:42:31 | 显示全部楼层
感谢分享
回复

使用道具 举报

4

主题

166

帖子

1063

积分

初级丹圣

Rank: 8Rank: 8

积分
1063

万事如意节日勋章

发表于 2022-3-12 02:05:17 | 显示全部楼层
感谢分享
回复

使用道具 举报

33

主题

1081

帖子

7247

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7247
发表于 2022-3-12 19:16:58 | 显示全部楼层
楼主,用gpen时出现这个提示怎么解决,gfpgan能用
当前运行GPEN增强
初始化中...如长时间未响应,请清理缓存
Traceback (most recent call last):
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\utils\cpp_extension.py", line 1672, in _run_ninja_build
    env=env)
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "face_enhancement.py", line 17, in <module>
    from face_model.face_gan import FaceGAN
  File "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\face_gan.py", line 13, in <module>
    from gpen_model import FullGenerator
  File "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\gpen_model.py", line 16, in <module>
    from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
  File "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\op\__init__.py", line 1, in <module>
    from .fused_act import FusedLeakyReLU, fused_leaky_relu
  File "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\op\fused_act.py", line 16, in <module>
    os.path.join(module_path, 'fused_bias_act_kernel.cu'),
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\utils\cpp_extension.py", line 1092, in load
    keep_intermediates=keep_intermediates)
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\utils\cpp_extension.py", line 1303, in _jit_compile
    is_standalone=is_standalone)
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\utils\cpp_extension.py", line 1408, in _write_ninja_file_and_build_library
    error_prefix=f"Error building extension '{name}'")
  File "G:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\utils\cpp_extension.py", line 1682, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/2] G:\Program Files\GPEN_GFPGAN_Windows\_internal\CUDA\bin\nvcc --generate-dependencies-with-compile --dependency-output fused_bias_act_kernel.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\torch\csrc\api\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\TH" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\THC" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\CUDA\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\Include" -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -c "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\op\fused_bias_act_kernel.cu" -o fused_bias_act_kernel.cuda.o

FAILED: fused_bias_act_kernel.cuda.o

G:\Program Files\GPEN_GFPGAN_Windows\_internal\CUDA\bin\nvcc --generate-dependencies-with-compile --dependency-output fused_bias_act_kernel.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\torch\csrc\api\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\TH" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\lib\site-packages\torch\include\THC" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\CUDA\include" "-IG:\Program Files\GPEN_GFPGAN_Windows\_internal\Python37\Include" -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -c "G:\Program Files\GPEN_GFPGAN_Windows\GPEN\face_model\op\fused_bias_act_kernel.cu" -o fused_bias_act_kernel.cuda.o

nvcc fatal   : Could not set up the environment for Microsoft Visual Studio using 'G:/Program Files/GPEN_GFPGAN_Windows/_internal/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/../../../../../../../VC/Auxiliary/Build/vcvars64.bat'

ninja: build stopped: subcommand failed.
回复 支持 反对

使用道具 举报

33

主题

1081

帖子

7247

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
7247
发表于 2022-3-12 19:18:38 | 显示全部楼层
另外把那个滚石优化版文件覆盖依然提示出错
提示:
当前运行GPEN增强
初始化中...如长时间未响应,请清理缓存
Traceback (most recent call last):
  File "face_enhancement.py", line 13, in <module>
    from retinaface.retinaface_detection import RetinaFaceDetection
ModuleNotFoundError: No module named 'retinaface'

回复 支持 反对

使用道具 举报

27

主题

420

帖子

2385

积分

初级丹圣

Rank: 8Rank: 8

积分
2385
发表于 2022-3-14 08:27:08 | 显示全部楼层
谢谢,学习了
回复 支持 反对

使用道具 举报

0

主题

187

帖子

1706

积分

初级丹圣

Rank: 8Rank: 8

积分
1706

万事如意节日勋章

发表于 2022-3-14 12:48:55 | 显示全部楼层
感谢分享
回复

使用道具 举报

0

主题

38

帖子

283

积分

初级丹师

Rank: 3Rank: 3

积分
283
发表于 2022-3-14 14:51:54 | 显示全部楼层
自己研究半天搞不定,还是直接站在大佬肩膀上安逸
回复 支持 反对

使用道具 举报

0

主题

163

帖子

884

积分

禁止访问

积分
884
发表于 2022-3-15 01:48:12 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2024-9-28 12:21 , Processed in 0.197981 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表