DragGAN
DragGAN copied to clipboard
AttributeError: 'dict' object has no attribute 'img_resolution'
when i run python visualizer_drag_gradio.py report issue: AttributeError: 'dict' object has no attribute 'img_resolution how do i solve this issue?
I have the same problem
Traceback (most recent call last):
File "/data/DragGAN/visualizer_drag_gradio.py", line 205, in
i also have this problem
me too.
me too
i solved it by add: state['generator_params'] = dnnlib.EasyDict()
before state['renderer'].init_network
I have the same problem
Traceback (most recent call last): File "/data/DragGAN/visualizer_drag_gradio.py", line 205, in global_state = init_images(global_state) File "/data/DragGAN/visualizer_drag_gradio.py", line 75, in init_images state['renderer'].init_network( File "/data/DragGAN/viz/renderer.py", line 224, in init_network res.img_resolution = G.img_resolution AttributeError: 'dict' object has no attribute 'img_resolution'
did you resolve this issue
好像解决了,当时更新代码就好了
when i run python visualizer_drag_gradio.py report issue: AttributeError: 'dict' object has no attribute 'img_resolution how do i solve this issue?
I don't know why but I solved this issue by
pip install gradio==3.36.1
this was also useful for pydantic error