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

Error when testing #124

Open
Hcz-up opened this issue Jun 23, 2020 · 0 comments
Open

Error when testing #124

Hcz-up opened this issue Jun 23, 2020 · 0 comments

Comments

@Hcz-up
Copy link

Hcz-up commented Jun 23, 2020

question:
when i input:python main.py --mode test --dataset CelebA --image_size 128 --c_dim 5 --selected_attrs Black_Hair Blond_Hair Brown_Hair Male Young --model_save_dir=stargan_celeba\models --result_dir=stargan_celeba\results
have a traceback:
Traceback (most recent call last):
File "main.py", line 115, in
main(config)
File "main.py", line 49, in main
solver.test()
File "C:\Users\HCZ\Desktop\stargan-master\solver.py", line 530, in test
self.restore_model(self.test_iters)
File "C:\Users\HCZ\Desktop\stargan-master\solver.py", line 107, in restore_model
self.G.load_state_dict(torch.load(G_path, map_location=lambda storage, loc:storage))
File "E:\language\python\lib\site-packages\torch\serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "E:\language\python\lib\site-packages\torch\serialization.py", line 763, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '?'.

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

1 participant