-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Attribute Error: image #38
Comments
I am using windows 11 |
I am also running into this error. App loads but everything else crashes and throws this error once you try to add an image or load any of the models from recent. |
Honestly, I found that removing that part of the code made it work. I'm guessing there's something missing/bug in the code, but in the meantime, removing these 3 lines lets you at least run the GUI locally (you won't be able to use the mask though): These are lines 180-182 of # if self.check_update_mask(**self.args):
# h, w, _ = self.result.image.shape
# self.drag_widget.init_mask(w, h) |
Update: the PR ccd84ff has fixed this, so just do a |
Traceback (most recent call last):
File "C:\Users\alime\Downloads\DragGAN-main1\DragGAN-main\dnnlib\util.py", line 45, in getattr
return self[name]
KeyError: 'image'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\alime\Downloads\DragGAN-main1\DragGAN-main\visualizer_drag.py", line 402, in
main()
File "C:\Users\alime\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\alime\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\alime\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\alime\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\alime\Downloads\DragGAN-main1\DragGAN-main\visualizer_drag.py", line 396, in main
viz.draw_frame()
File "C:\Users\alime\Downloads\DragGAN-main1\DragGAN-main\visualizer_drag.py", line 181, in draw_frame
h, w, _ = self.result.image.shape
File "C:\Users\alime\Downloads\DragGAN-main1\DragGAN-main\dnnlib\util.py", line 47, in getattr
raise AttributeError(name)
AttributeError: image
The text was updated successfully, but these errors were encountered: