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

An error occurred evaluating the loaded PKL file #95

Open
49xxy opened this issue Dec 6, 2022 · 2 comments
Open

An error occurred evaluating the loaded PKL file #95

49xxy opened this issue Dec 6, 2022 · 2 comments

Comments

@49xxy
Copy link

49xxy commented Dec 6, 2022

Thank you for your excellent work.
I encountered the following errors when evaluating pkl model with FID and KID:
Loading network from "training-runs/00003-fastgan_lite-lianpu7k-gpus1-batch8/best_model.pkl"... Traceback (most recent call last): File "calc_metrics.py", line 186, in <module> calc_metrics() # pylint: disable=no-value-for-parameter File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "calc_metrics.py", line 144, in calc_metrics network_dict = legacy.load_network_pkl(f) File "/workspace/projected_gan-main/legacy.py", line 24, in load_network_pkl data = _LegacyUnpickler(f).load() File "/workspace/projected_gan-main/legacy.py", line 72, in find_class return super().find_class(module, name) ModuleNotFoundError: No module named '__builtin__'

I sincerely hope to get your help.Thanks!

@woctezuma
Copy link

woctezuma commented Dec 6, 2022

Requirement:

  • 64-bit Python 3.8

@anaivebird
Copy link

$%Z(6I9Z%0GQ~ 5K @_3H
add this to line 72 of legacy.py

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

3 participants