CrazyBoyM / dreambooth-for-diffusion

文生图大模型训练工具箱 (完整封装stable diffusion全量微调训练流程, 可训练定制自己的独特风格、人物概念,开箱即用, 含自动图像标注、权重转换、训练参数配置等)

Home Page:https://www.codewithgpu.com/i/CrazyBoyM/dreambooth-for-diffusion/dreambooth-for-diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSError: file ./model/config.json not found

echo-zhai opened this issue · comments

dict_values(['./model/tokenizer/vocab.json', './model/tokenizer/merges.txt', None, './model/tokenizer/special_tokens_map.json', './model/tokenizer/tokenizer_config.json'])
Traceback (most recent call last):
File "/usr/local/python3_8/lib/python3.8/site-packages/transformers/configuration_utils.py", line 601, in _get_config_dict
resolved_config_file = cached_path(
File "/usr/local/python3_8/lib/python3.8/site-packages/transformers/utils/hub.py", line 297, in cached_path
raise EnvironmentError(f"file {url_or_filename} not found")
OSError: file ./model/config.json not found

我本地部署的时候遇到一个问题,提示模型里找不到config.json文件?
环境: centos7
transformers:4.19.2

可以检查下程序在本地读取的模型路径是否能正确读到

检查过模型路径,转换为diffuser官方文件后,模型路径下确实是没有config.json文件的;检查了好几个模型都是这样的

ls

feature_extractor model_index.json safety_checker scheduler text_encoder tokenizer unet vae

你的diffusers版本是多少

pip list|grep diffusers

diffusers 0.7.2

没道理唉,刚测试同样的版本在本地是正常的

可以看下你的ckpt转换后的model目录下的文件么?

解决了,transformers版本低了,升级了transformers版本ok了

解决了,transformers版本低了,升级了transformers版本ok了

okk. 感谢提醒