rinongal / textual_inversion

MIT License
2.87k stars 278 forks source link

_pickle.UnpicklingError: invalid load key, '<'. #165

Open 1170300814 opened 6 months ago

1170300814 commented 6 months ago

hi i run the code and i meet this problem image how could i solve it?

rinongal commented 6 months ago

Can you please paste your run command?

1170300814 commented 6 months ago

Can you please paste your run command?

of course! it is python main.py --base configs/latent-diffusion/txt2img-1p4B-finetune.yaml -t --actual_resume /home/yz/textual_inversion/models/ldm/text2img-large/model.ckpt -n act --gpus 0, --data_root /home/yz/dataset/images --init_word 国画

1170300814 commented 6 months ago

i search on intenet! they say it is the problem of pytorch version

1170300814 commented 6 months ago

if the model.ckpt version is the fit one, it is the problem of the parser

66ling66 commented 4 months ago

你解决了吗?

1170300814 commented 4 months ago

你解决了吗?

没有,他这个代码有问题,还不回复。我使用了huggingface上面的diffusers里面的texture inversion的预训练模型上换数据集进行微调,可比这个顺利多了

1170300814 commented 4 months ago

给你链接 https://github.com/huggingface/diffusers/tree/main/examples/textual_inversion