XingangPan / DragGAN

Official Code for DragGAN (SIGGRAPH 2023)
https://vcai.mpi-inf.mpg.de/projects/DragGAN/
Other
35.65k stars 3.45k forks source link

UnboundLocalError: cannot access local variable 'reset_w' where it is not associated with a value #331

Open p4ulor opened 1 year ago

p4ulor commented 1 year ago

How this error occurred

Traceback (most recent call last): File "/home/paulor/Public/Pulls/DragGAN/visualizer_drag.py", line 403, in main() File "/home/paulor/miniconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/paulor/miniconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/paulor/miniconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/paulor/miniconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/paulor/Public/Pulls/DragGAN/visualizer_drag.py", line 397, in main viz.draw_frame() File "/home/paulor/Public/Pulls/DragGAN/visualizer_drag.py", line 156, in draw_frame self.latent_widget(expanded) File "/home/paulor/Public/Pulls/DragGAN/gui_utils/imgui_utils.py", line 83, in decorator res = method(self, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/paulor/Public/Pulls/DragGAN/viz/latent_widget.py", line 93, in call viz.args.reset_w = reset_w ^^^^^^^ UnboundLocalError: cannot access local variable 'reset_w' where it is not associated with a value (base)


### My system
- conda 23.5.2
- Python 3.11.4
- Ubuntu 22.04.2 LTS
- 11th Gen Intel® Core™ i7-11850H @ 2.50GHz 
- NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (w/ Nvidia driver metapackage from nvidia-driver-535 (proprietary, tested)