-
Notifications
You must be signed in to change notification settings - Fork 43
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 python vlog_read_script_sample.py script #9
Comments
Here are some steps to troubleshoot this error: · Verify that the file you are trying to load (model_file) exists and is complete. · Ensure that the file is indeed a pickle file and that it has not been accidentally modified or corrupted. · If you have access to the original file or a backup, try replacing the possibly corrupted file with a known good version. · If this file is downloaded from the internet, make sure the download was successful and the file is not partially downloaded. |
thanks for your reply and guiding,I just downloaded and pass to the next step. Traceback (most recent call last): |
Claude3 tell me to add teh sub sentence, solve the problem. |
I appreciate Claude3's answer and thank you for your attention to our project~! |
(vlogger_backup) root@ubuntu-vm01:/sdb/github/Vlogger# python sample_scripts/vlog_read_script_sample.py protagonists ready! |
vlogger_backup) root@ubuntu-vm01:/sdb/github/Vlogger# python sample_scripts/vlog_read_script_sample.py
/sdb/anaconda3/envs/vlogger_backup/lib/python3.10/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils._pytree._register_pytree_node(
/sdb/github/Vlogger
Seed set to 3407
pretrained/stable-diffusion-v1-4/unet/config.json
Traceback (most recent call last):
File "/sdb/github/Vlogger/sample_scripts/vlog_read_script_sample.py", line 304, in
main(omega_conf)
File "/sdb/github/Vlogger/sample_scripts/vlog_read_script_sample.py", line 119, in main
model = get_models(args).to(device)
File "/sdb/github/Vlogger/models/init.py", line 30, in get_models
return UNet3DConditionModel.from_pretrained_2d(pretrained_model_path, subfolder="unet", use_concat=args.use_mask)
File "/sdb/github/Vlogger/models/unet.py", line 654, in from_pretrained_2d
state_dict = torch.load(model_file, map_location="cpu")
File "/sdb/anaconda3/envs/vlogger_backup/lib/python3.10/site-packages/torch/serialization.py", line 1040, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/sdb/anaconda3/envs/vlogger_backup/lib/python3.10/site-packages/torch/serialization.py", line 1258, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
The text was updated successfully, but these errors were encountered: