|
发表于 2021-8-26 22:41:28
|
显示全部楼层
Traceback (most recent call last):
File "face_enhancement.py", line 13, in <module>
from face_model.face_gan import FaceGAN
File "/content/GPEN/face_model/face_gan.py", line 13, in <module>
from model import FullGenerator
File "/content/GPEN/face_model/model.py", line 15, in <module>
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "/content/GPEN/face_model/op/__init__.py", line 1, in <module>
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/content/GPEN/face_model/op/fused_act.py", line 14, in <module>
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "/usr/local/lib/python3.7/dist-packages/torch/utils/cpp_extension.py", line 1092, in load
keep_intermediates=keep_intermediates)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/cpp_extension.py", line 1303, in _jit_compile
is_standalone=is_standalone)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/cpp_extension.py", line 1374, in _write_ninja_file_and_build_library
verify_ninja_availability()
File "/usr/local/lib/python3.7/dist-packages/torch/utils/cpp_extension.py", line 1430, in verify_ninja_availability
raise RuntimeError("Ninja is required to load C++ extensions")
RuntimeError: Ninja is required to load C++ extensions
大佬我按开始之后出现这段代码是什么意思,不能成功增强图片,求教啊 |
|