-
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
Error while running main.py command #27
Comments
same error.have you solved this problem? |
_3D ======> THREE_D |
did you get this error when you ran Traceback (most recent call last): 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 after installing all the libraries i am getting this error when i ran the initial command |
Hello ,
You can do following thing to check the cause of error
First verify that your cuda and cudnn working accurately and use your gpu ,
you can use commands to check this
Then Check Ninja Installation
Then check MSVC Build Tools ( Open Visual Studio Installer and ensure
"Desktop development with C++" is installed. )
If it wont work reinstall requirements.txt
Thank You
…On Fri, Jun 28, 2024 at 10:23 PM prabhasreddy-57 ***@***.***> wrote:
did you get this error when you ran
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
Traceback (most recent call last):
File
"C:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\utils\cpp_extension.py",
line 1673, in _run_ninja_build
env=env)
File "C:\Users\prabhas\anaconda3\envs\hairstyle\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 "main.py", line 12, in
from models.Alignment import Alignment
File "C:\Users\prabhas\Desktop\Style-Your-Hair\models\Alignment.py", line
3, in
from models.Net import Net
File "C:\Users\prabhas\Desktop\Style-Your-Hair\models\Net.py", line 3, in
from models.stylegan2.model import Generator
File "C:\Users\prabhas\Desktop\Style-Your-Hair\models\stylegan2\model.py",
line 11, in
from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "C:\Users\prabhas\Desktop\Style-Your-Hair\models\stylegan2\op_*init*_.py",
line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File
"C:\Users\prabhas\Desktop\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\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\utils\cpp_extension.py",
line 1091, in load
keep_intermediates=keep_intermediates)
File
"C:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\utils\cpp_extension.py",
line 1302, in
*jit_compile is_standalone=is_standalone) File
"C:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\utils\cpp_extension.py",
line 1407, in write_ninja_file_and_build_library error_prefix=f"Error
building extension '{name}'") File
"C:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\utils\cpp_extension.py",
line 1683, in run_ninja_build raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/3]
C:\Users\prabhas\AppData\Local\Temp\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
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\torch\csrc\api\include
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\TH
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\THC
-IC:\Users\prabhas\AppData\Local\Temp\CUDA\include
-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
FAILED: fused_bias_act_kernel.cuda.o
C:\Users\prabhas\AppData\Local\Temp\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
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\torch\csrc\api\include
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\TH
-IC:\Users\prabhas\anaconda3\envs\hairstyle\lib\site-packages\torch\include\THC
-IC:\Users\prabhas\AppData\Local\Temp\CUDA\ininja: fatal: ReadFile: The
handle is invalid.
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
CreateProcess failed: The system cannot find the file specified.
after installing all the libraries i am getting this error when i ran the
initial command
how did u solve it
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFVZVWZIO23EPAEG5DGQLETZJWLXZAVCNFSM6AAAAABGLIAQJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJXGM3DEMRRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
RuntimeError: no valid convolution algorithms available in CuDNN(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 |
when i run this command
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
i got error
Loading StyleGAN2 from checkpoint: pretrained_models/ffhq.pt
torch.Size([512])
Setting up Perceptual loss...
C:\Users\WebPC-05\AppData\Local\anaconda3\envs\testing2\lib\site-packages\torchvision\models_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
C:\Users\WebPC-05\AppData\Local\anaconda3\envs\testing2\lib\site-packages\torchvision\models_utils.py:223: UserWarning: Arguments other than a weight enum or
None
for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passingweights=VGG16_Weights.IMAGENET1K_V1
. You can also useweights=VGG16_Weights.DEFAULT
to get the most up-to-date weights.warnings.warn(msg)
Loading model from: C:\Users\WebPC-05\Style-Your-Hair\losses\lpips\weights\v0.1\vgg.pth
...[net-lin [vgg]] initialized
...Done
Traceback (most recent call last):
File "C:\Users\WebPC-05\Style-Your-Hair\main.py", line 162, in
main(args)
File "C:\Users\WebPC-05\Style-Your-Hair\main.py", line 53, in main
im_path2 = flip_check(im_path1, im_path2, args.device)
File "C:\Users\WebPC-05\Style-Your-Hair\utils\kp_diff.py", line 14, in flip_check
kp_extractor = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, flip_input=False, device=device)
File "C:\Users\WebPC-05\AppData\Local\anaconda3\envs\testing2\lib\enum.py", line 429, in getattr
raise AttributeError(name) from None
AttributeError: _3D
The text was updated successfully, but these errors were encountered: