-
Notifications
You must be signed in to change notification settings - Fork 30
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
在转变参数之后 #7
Comments
Please use English or English & Chinese for issues so that we could have broader discussion. |
在改变参数之后, |
when ichange the" swap_layer = 10", in the colab, there are some errors showing ,like |
Hi @yeqingmei123, Thx for your interest. |
hello ,i meet another question,when i first to run this sentence,it has a result ,but when i run it again,it has this error, !python demo/quick_try.py demo/src.png --style toonify --save-path demo/src_output1.png File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/registry.py", line 45, in build_from_cfg |
Have you solved it? I also encountered the same problem. |
为什么会出现新的问题呢
swap_layer = 10
Traceback (most recent call last):
File "demo/quick_try.py", line 253, in
main()
File "demo/quick_try.py", line 242, in main
style_image = testor.run(args.img_path, args.style, args.swap_layer)
File "/usr/local/lib/python3.7/dist-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "demo/quick_try.py", line 212, in run
if swap_layer > 0 else _swap_layer[style])
File "demo/quick_try.py", line 192, in layerSwap
randomize_noise=False)
File "/content/MMGEN-FaceStylor/MMGEN-FaceStylor/agilegan/architectures/ADAStyleGAN2/generator_discriminator.py", line 200, in swap_forward
return img, save_swap_layer
UnboundLocalError: local variable 'save_swap_layer' referenced before assignment
这是什么问题啊
The text was updated successfully, but these errors were encountered: