GFPGANv1.3-to-ncnn
GFPGANv1.3-to-ncnn copied to clipboard
export style model error
hi, i use your project to export style model and face this error.
/media/disk_docker/miniconda3/envs/YOLOX/bin/python /media/disk_docker/XdpWork/vkProcess/GFPGANv1.3-to-ncnn/GFPGANv1.3-to-ncnn/Export_StyleGAN2GeneratorClean_to_ONNX.py
/media/disk_docker/XdpWork/vkProcess/GFPGANv1.3-to-ncnn/GFPGANv1.3-to-ncnn/gfpgan/archs/stylegan2_clean_arch.py:321: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if not input_is_latent:
/media/disk_docker/XdpWork/vkProcess/GFPGANv1.3-to-ncnn/GFPGANv1.3-to-ncnn/gfpgan/archs/stylegan2_clean_arch.py:325: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if randomize_noise:
/media/disk_docker/XdpWork/vkProcess/GFPGANv1.3-to-ncnn/GFPGANv1.3-to-ncnn/gfpgan/archs/stylegan2_clean_arch.py:330: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if truncation < 1:
Traceback (most recent call last):
File "/media/disk_docker/XdpWork/vkProcess/GFPGANv1.3-to-ncnn/GFPGANv1.3-to-ncnn/Export_StyleGAN2GeneratorClean_to_ONNX.py", line 66, in
Process finished with exit code 1
can you help me to solve this error?
+1. @XdpAreKid did u solve it?
I'm sorry, but I don't have time right now as I'm busy with another project.
+1 How to solve it?
May be problem with versions of packages It was made with pytorch version lower 2,0
Hi, @XdpAreKid @kaikaizhu @zimenglan-sysu-512 have any of you solved this issue?
Hi, @XdpAreKid @kaikaizhu @zimenglan-sysu-512 have any of you solved this issue?
https://github.com/XdpAreKid/GFPGAN-ncnn