Skip to content
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

AssertionError: does not exist! #467

Open
IssacCzy opened this issue May 28, 2024 · 1 comment
Open

AssertionError: does not exist! #467

IssacCzy opened this issue May 28, 2024 · 1 comment

Comments

@IssacCzy
Copy link

IssacCzy commented May 28, 2024

two questions:

  • 1、the btn [Path to latent code] is unusable,cannot be clicked,it's a small problem.
  • 2、when i click the btn: [Load latent],i got the exception
D:\ProgramData\anaconda3\envs\DragGAN\Lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:3527.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
Traceback (most recent call last):
  File "D:\Projects\DragGAN\visualizer_drag.py", line 403, in <module>
    main()
  File "D:\ProgramData\anaconda3\envs\DragGAN\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ProgramData\anaconda3\envs\DragGAN\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "D:\ProgramData\anaconda3\envs\DragGAN\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\ProgramData\anaconda3\envs\DragGAN\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Projects\DragGAN\visualizer_drag.py", line 397, in main
    viz.draw_frame()
  File "D:\Projects\DragGAN\visualizer_drag.py", line 156, in draw_frame
    self.latent_widget(expanded)
  File "D:\Projects\DragGAN\gui_utils\imgui_utils.py", line 83, in decorator
    res = method(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Projects\DragGAN\viz\latent_widget.py", line 57, in __call__
    assert os.path.isfile(self.w_path), f"{self.w_path} does not exist!"
AssertionError:  does not exist!

image

image

do you konw how to fix it ? teach me, 3Q !

@edrees2022
Copy link

The [Path to latent code] field is where you should input the file path of your latent code as a string. Once you’ve filled in this field, you will be able to click the button. I hope this helps you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants