Hi there!
When I try to apply the command "python face_enhancement.py" I get the following error.
(gpen) F:\Anaconda3\GPEN-main>python face_enhancement.py
F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py:274: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0xa2 in position 24: invalid start byte
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
Traceback (most recent call last):
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1522, in _run_ninja_build
env=env)
File "F:\Anaconda3\envs\gpen\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "face_enhancement.py", line 13, in
from face_model.face_gan import FaceGAN
File "F:\Anaconda3\GPEN-main\face_model\face_gan.py", line 13, in
from model import FullGenerator
File "F:\Anaconda3\GPEN-main\face_model\model.py", line 15, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "F:\Anaconda3\GPEN-main\face_model\op__init__.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "F:\Anaconda3\GPEN-main\face_model\op\fused_act.py", line 14, in
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 980, in load
keep_intermediates=keep_intermediates)
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1185, in _jit_compile
with_cuda=with_cuda)
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1283, in _write_ninja_file_and_build_library
error_prefix="Error building extension '{}'".format(name))
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in _run_ninja_build
message += ": {}".format(error.output.decode()) # type: ignore
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 2472: invalid continuation byte
Any idea why this happens to me? Do I need to install something?
Hi there! When I try to apply the command "python face_enhancement.py" I get the following error.
(gpen) F:\Anaconda3\GPEN-main>python face_enhancement.py F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py:274: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0xa2 in position 24: invalid start byte warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) Traceback (most recent call last): File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1522, in _run_ninja_build env=env) File "F:\Anaconda3\envs\gpen\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "face_enhancement.py", line 13, in
from face_model.face_gan import FaceGAN
File "F:\Anaconda3\GPEN-main\face_model\face_gan.py", line 13, in
from model import FullGenerator
File "F:\Anaconda3\GPEN-main\face_model\model.py", line 15, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "F:\Anaconda3\GPEN-main\face_model\op__init__.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "F:\Anaconda3\GPEN-main\face_model\op\fused_act.py", line 14, in
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 980, in load
keep_intermediates=keep_intermediates)
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1185, in _jit_compile
with_cuda=with_cuda)
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1283, in _write_ninja_file_and_build_library
error_prefix="Error building extension '{}'".format(name))
File "F:\Anaconda3\envs\gpen\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in _run_ninja_build
message += ": {}".format(error.output.decode()) # type: ignore
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 2472: invalid continuation byte
Any idea why this happens to me? Do I need to install something?