-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gives a (returned non-zero exit status 1) error #22
Comments
Same here. Seems like a recent error. |
You have to install Visual Studio Code with C++ support. After that you may have to trigger this bat file to make cl.exe available. If error still exist after bat execution, you may to add cl.exe to path manually. |
(hairstyle) C:\Users\prabhas\Desktop\Style-Your-Hair>python main.py --input_dir ./ffhq_image/ --im_path1 source.png --im_path2 target.png --output_dir ./style_your_hair_output/ --warp_loss_with_prev_list delta_w style_hair_slic_large --save_all --version final --flip_check The above exception was the direct cause of the following exception: Traceback (most recent call last): nclude -IC:\Users\prabhas\anaconda3\envs\hairstyle\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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -c C:\Users\prabhas\Desktop\Style-Your-Hair\models\stylegan2\op\fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o |
python main.py --input_dir ./ffhq_image/ --im_path1 source.png --im_path2 target.png
After putting this line i get this message
C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] Sistem belirtilen dosyayı bulamıyor
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
INFO: Could not find files for the given pattern(s).
Traceback (most recent call last):
File "main.py", line 12, in
from models.Alignment import Alignment
File "C:\Users\mertk\Style-Your-Hair\models\Alignment.py", line 3, in
from models.Net import Net
File "C:\Users\mertk\Style-Your-Hair\models\Net.py", line 3, in
from models.stylegan2.model import Generator
File "C:\Users\mertk\Style-Your-Hair\models\stylegan2\model.py", line 11, in
from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "C:\Users\mertk\Style-Your-Hair\models\stylegan2\op_init_.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "C:\Users\mertk\Style-Your-Hair\models\stylegan2\op\fused_act.py", line 15, in
os.path.join(module_path, "fused_bias_act_kernel.cu"),
File "C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1091, in load
keep_intermediates=keep_intermediates)
File "C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1302, in _jit_compile
is_standalone=is_standalone)
File "C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1400, in _write_ninja_file_and_build_library
is_standalone=is_standalone)
File "C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1833, in _write_ninja_file_to_build_library
with_cuda=with_cuda)
File "C:\Users\mertk\anaconda3\envs\test\lib\site-packages\torch\utils\cpp_extension.py", line 1948, in _write_ninja_file
'cl']).decode().split('\r\n')
File "C:\Users\mertk\anaconda3\envs\test\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "C:\Users\mertk\anaconda3\envs\test\lib\subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1
The text was updated successfully, but these errors were encountered: