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

pickle.UnpicklingError: invalid load key, '<'.在Loading model from ./checkpoints/sd21-unclip-h.ckpt时候pl_sd = torch.load(ckpt, map_location="cpu")报错 #14

Open
LucasLOOT opened this issue Sep 1, 2023 · 0 comments

Comments

@LucasLOOT
Copy link

LucasLOOT commented Sep 1, 2023

python=3.11时候requirements库版本冲突,python=3.10和3.9时会出现下图所示问题,请问python版本多少?

pickle.UnpicklingError: invalid load key, '<'.

image

https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip/blob/main/sd21-unclip-h.ckpt;### 请问这个模型是在python和torch哪个版本训练的,请问有相对应于python=3.11,torch=2.0.1版本的相关模型吗

@LucasLOOT LucasLOOT changed the title requirements中库版本冲突,全部安装最新版本不冲突,但是出现pickle.UnpicklingError,请问模型https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip/blob/main/sd21-unclip-h.ckpt python版本,requirements中库版本冲突,全部安装最新版本不冲突,但是出现pickle.UnpicklingError,请问模型https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip/blob/main/sd21-unclip-h.ckpt Sep 1, 2023
@LucasLOOT LucasLOOT changed the title python版本,requirements中库版本冲突,全部安装最新版本不冲突,但是出现pickle.UnpicklingError,请问模型https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip/blob/main/sd21-unclip-h.ckpt pickle.UnpicklingError: invalid load key, '<'.在Loading model from ./checkpoints/sd21-unclip-h.ckpt时候pl_sd = torch.load(ckpt, map_location="cpu")报错 Sep 1, 2023
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