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

ImportError:Cannot import name 'metric_main' from 'metrics' #423

Open
lettersontherocks opened this issue Mar 11, 2024 · 2 comments
Open

Comments

@lettersontherocks
Copy link

Traceback (most recent call last):
  File "D:\University\draggan\DragGAN\training\training_loop.py", line 31, in <module>
    from metrics import metric_main
ImportError: cannot import name 'metric_main' from 'metrics' (D:\software\Anaconda\Lib\site-packages\metrics\__init__.py)

I encountered this problem related to package 'metrics'. Does it have anything to do with the version?Because I checked the dir and cannot find metric_main. version 0.3.3.

@stteovo
Copy link

stteovo commented Sep 11, 2024

Hey , How do you fix it at final, looking forward to you reply!

@lettersontherocks
Copy link
Author

Hey , How do you fix it at final, looking forward to you reply!

hi, it was half a year ago so I may not remember it rightly. I downloaded the folder containing the file from the following website
https://github.com/autonomousvision/voxgraf/blob/main/metrics/frechet_inception_distance.py
It will possibly work.
I think the way we conduct the DragGAN can be divided into two processes, which are training models and dragging. However I encountered many problems when trying to train. Although there were modules like Metrics and Training in the repository, I failed to train any models in the end. Instead, carrying on the training process using the StyleGAN repository, and simply copying the result .pkl files to the checkpoints folder will work.

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