DragGAN
DragGAN copied to clipboard
Setting up PyTorch plugin "bias_act_plugin"... Failed!
File under cache_dir (./checkpoints):
['stylegan2_elephants_512_pytorch.pkl', 'stylegan2_horses_256_pytorch.pkl', 'stylegan2_lions_512_pytorch.pkl', 'stylegan2-cat-config-f.pkl', 'stylegan2-ffhq-512x512.pkl', 'stylegan2_dogs_1024_pytorch.pkl', 'stylegan2-car-config-f.pkl', 'stylegan2-afhqcat-512x512.pkl']
Valid checkpoint file:
{'stylegan2_elephants_512_pytorch': './checkpoints/stylegan2_elephants_512_pytorch.pkl', 'stylegan2_horses_256_pytorch': './checkpoints/stylegan2_horses_256_pytorch.pkl', 'stylegan
2_lions_512_pytorch': './checkpoints/stylegan2_lions_512_pytorch.pkl', 'stylegan2-cat-config-f': './checkpoints/stylegan2-cat-config-f.pkl', 'stylegan2-ffhq-512x512': './checkpoint
s/stylegan2-ffhq-512x512.pkl', 'stylegan2_dogs_1024_pytorch': './checkpoints/stylegan2_dogs_1024_pytorch.pkl', 'stylegan2-car-config-f': './checkpoints/stylegan2-car-config-f.pkl', 'stylegan2-afhqcat-512x512': './checkpoints/stylegan2-afhqcat-512x512.pkl'}
Loading "./checkpoints/stylegan2_lions_512_pytorch.pkl"... Done.
()
{'z_dim': 512, 'c_dim': 0, 'w_dim': 512, 'img_resolution': 512, 'img_channels': 3, 'mapping_kwargs': {'num_layers': 8, 'embed_features': None, 'layer_features': None, 'activation':
'lrelu', 'lr_multiplier': 0.01, 'w_avg_beta': 0.995}, 'synthesis_kwargs': {'channel_base': 32768, 'channel_max': 512, 'num_fp16_res': 0, 'conv_clamp': None, 'architecture': 'skip', 'resample_filter': [1, 3, 3, 1], 'use_noise': True, 'activation': 'lrelu'}}
Setting up PyTorch plugin "bias_act_plugin"... Failed!
Traceback (most recent call last):
File "/home/akilliceviribilisim/DragGAN/visualizer_drag_gradio.py", line 200, in
pls help me
I have the same error, or at least similar - will try to make a docker file
+1
bias_act_plugin error. i think newest cuda toolkit version unsurpport this plugin.i used cuda toolkit 11.8,its work success.
D:\Download\DragGAN>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
D:\Download\DragGAN>sh gui.sh
Loading "D:\Download\DragGAN\checkpoints\stylegan2_lions_512_pytorch.pkl"... Done.
()
{'z_dim': 512, 'c_dim': 0, 'w_dim': 512, 'img_resolution': 512, 'img_channels': 3,
'mapping_kwargs': {'num_layers': 8, 'embed_features': None, 'layer_features': None,
'activation': 'lrelu', 'lr_multiplier': 0.01, 'w_avg_beta': 0.995}, 'synthesis_kwargs':
{'channel_base': 32768, 'channel_max': 512, 'num_fp16_res
': 0, 'conv_clamp': None, 'architecture': 'skip', 'resample_filter': [1, 3, 3, 1],
'use_noise': True, 'activation': 'lrelu'}}
Setting up PyTorch plugin "bias_act_plugin"... Done.
Setting up PyTorch plugin "upfirdn2d_plugin"... Done.
update your cuda (mine 11.7) and it can be solved
PS E:\DragGAN> & C:/Users/charl/miniconda3/envs/drag-gan/python.exe e:/DragGAN/visualizer_drag_gradio.py
File under cache_dir (./checkpoints):
['stylegan2-afhqcat-512x512.pkl', 'stylegan2-car-config-f.pkl', 'stylegan2-cat-config-f.pkl', 'stylegan2-ffhq-512x512.pkl', 'stylegan2_dogs_1024_pytorch.pkl', 'stylegan2_elephants_512_pytorch.pkl', 'stylegan2_horses_256_pytorch.pkl', 'stylegan2_lions_512_pytorch.pkl']
Valid checkpoint file:
{'stylegan2-afhqcat-512x512': './checkpoints\stylegan2-afhqcat-512x512.pkl', 'stylegan2-car-config-f': './checkpoints\stylegan2-car-config-f.pkl', 'stylegan2-cat-config-f': './checkpoints\stylegan2-cat-config-f.pkl', 'stylegan2-ffhq-512x512': './checkpoints\stylegan2-ffhq-512x512.pkl', 'stylegan2_dogs_1024_pytorch': './checkpoints\stylegan2_dogs_1024_pytorch.pkl', 'stylegan2_elephants_512_pytorch': './checkpoints\stylegan2_elephants_512_pytorch.pkl', 'stylegan2_horses_256_pytorch': './checkpoints\stylegan2_horses_256_pytorch.pkl', 'stylegan2_lions_512_pytorch': './checkpoints\stylegan2_lions_512_pytorch.pkl'}
Loading "./checkpoints\stylegan2_dogs_1024_pytorch.pkl"... Done.
()
{'z_dim': 512, 'c_dim': 0, 'w_dim': 512, 'img_resolution': 1024, 'img_channels': 3, 'mapping_kwargs': {'num_layers': 8, 'embed_features': None, 'layer_features': None, 'activation': 'lrelu', 'lr_multiplier': 0.01, 'w_avg_beta': 0.995}, 'synthesis_kwargs': {'channel_base': 32768, 'channel_max': 512, 'num_fp16_res': 0, 'conv_clamp': None, 'architecture': 'skip', 'resample_filter': [1, 3, 3, 1], 'use_noise': True, 'activation': 'lrelu'}}
Setting up PyTorch plugin "bias_act_plugin"... Failed!
Traceback (most recent call last):
File "e:\DragGAN\visualizer_drag_gradio.py", line 208, in
I cannot pass Setting up PyTorch plugin "bias_act_plugin"
My cuda version is the same, nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0
Can anyone please help me
直接更新到11.7就好了 去官方英伟达官网下一下就好
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
大哥你成功用起来了吗
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
我拉了你说的这个镜像,我进入容器但是没法使用gpu呢
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
我拉了你说的这个镜像,我进入容器但是没法使用gpu呢
可以用啊,是不是的cuda驱动版本的问题?
Manually install CUDA11.8 version,
● Uninstall first pip3 uninstall torch torchvision torchaudio
● Reinstall again pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
我拉了你说的这个镜像,我进入容器但是没法使用gpu呢
可以用啊,是不是的cuda驱动版本的问题?
我用起来了,前面的问题解决了,但是又来了新问题/(ㄒoㄒ)/~~
我的是Ubuntu20.04,4090,nvcc是11.8的
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
我拉了你说的这个镜像,我进入容器但是没法使用gpu呢
可以用啊,是不是的cuda驱动版本的问题?
我用起来了,前面的问题解决了,但是又来了新问题/(ㄒoㄒ)/~~ 我的是Ubuntu20.04,4090,nvcc是11.8的
没找到对应的字体文件吧,下一个字体放到对应的文件夹下面
直接使用stylegan3的镜像进行,省的自己升级cuda docker pull maximedurand/stylegan3:latest
我拉了你说的这个镜像,我进入容器但是没法使用gpu呢
可以用啊,是不是的cuda驱动版本的问题?
我用起来了,前面的问题解决了,但是又来了新问题/(ㄒoㄒ)/~~ 我的是Ubuntu20.04,4090,nvcc是11.8的
没找到对应的字体文件吧,下一个字体放到对应的文件夹下面
大哥!我用起来了,但是这个登录是要去哪里注册账号吗