textual_inversion icon indicating copy to clipboard operation
textual_inversion copied to clipboard

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

Open 1170300814 opened this issue 1 year ago • 8 comments

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

1170300814 avatar Jan 10 '24 11:01 1170300814

Can you please paste your run command?

rinongal avatar Jan 10 '24 12:01 rinongal

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 avatar Jan 10 '24 13:01 1170300814

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

1170300814 avatar Jan 10 '24 13:01 1170300814

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

1170300814 avatar Jan 10 '24 13:01 1170300814

你解决了吗?

Psw-coder avatar Mar 16 '24 08:03 Psw-coder

你解决了吗?

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

1170300814 avatar Mar 17 '24 06:03 1170300814

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

1170300814 avatar Mar 17 '24 06:03 1170300814

好人

Wisriter avatar Dec 05 '24 09:12 Wisriter