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

Invalid load key #27

Open
NoteToSelfFindGoodNickname opened this issue Feb 16, 2023 · 0 comments
Open

Invalid load key #27

NoteToSelfFindGoodNickname opened this issue Feb 16, 2023 · 0 comments

Comments

@NoteToSelfFindGoodNickname

The log is attached.

(everydream) C:\Users\tomwe\ed>python main.py --base configs/stable-diffusion/v1-finetune_everydream.yaml -t --actual_resume C:\Users\tomwe\ed\models\v1-5-pruned.safetensors -n MyProjectName --data_root training_samples\MyProject
Global seed set to 23
Running on GPUs 0,
Loading model from C:\Users\tomwe\ed\models\v1-5-pruned.safetensors
Traceback (most recent call last):
File "main.py", line 585, in
model = load_model_from_config(config, opt.actual_resume)
File "main.py", line 29, in load_model_from_config
pl_sd = torch.load(ckpt, map_location="cpu")
File "C:\Users\tomwe\miniconda3\envs\everydream\lib\site-packages\torch\serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\tomwe\miniconda3\envs\everydream\lib\site-packages\torch\serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\xca'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 783, in
if trainer.global_rank == 0:
NameError: name 'trainer' is not defined

(everydream) C:\Users\tomwe\ed>

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