Skip to content
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

convert_weight.py ImportError: No module named 'fused' #327

Open
jojoWd opened this issue Jul 11, 2022 · 0 comments
Open

convert_weight.py ImportError: No module named 'fused' #327

jojoWd opened this issue Jul 11, 2022 · 0 comments

Comments

@jojoWd
Copy link

jojoWd commented Jul 11, 2022

run:
python convert_weight.py --repo ../stylegan2 stylegan2-ffhq-config-f.pkl

Error
Traceback (most recent call last):
File "convert_weight.py", line 11, in
from model import Generator, Discriminator
File "/home/dan.wang/train_script/GAN/gan2shape/GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/model.py", line 11, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d, conv2d_gradfix
File "/home/dan.wang/train_script/GAN/gan2shape/GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/home/dan.wang/train_script/GAN/gan2shape/GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/op/fused_act.py", line 15, in
os.path.join(module_path, "fused_bias_act_kernel.cu"),
File "/home/dan.wang/anaconda3/envs/stylegan2py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 661, in load
is_python_module)
File "/home/dan.wang/anaconda3/envs/stylegan2py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 841, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "/home/dan.wang/anaconda3/envs/stylegan2py37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1048, in _import_module_from_library
file, path, description = imp.find_module(module_name, [path])
File "/home/dan.wang/anaconda3/envs/stylegan2py37/lib/python3.7/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'fused'

conda environment:
image

tried
I'v tried to change version (pytorch1.3.1 cuda10.1 python3.7), but it didn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant