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

请问使用tool_add_anytext.py合成add_ocr_weights后的1.5系列模型就具有生成文字的能力了吗? #93

Open
godwenbin opened this issue May 22, 2024 · 2 comments

Comments

@godwenbin
Copy link

请问使用tool_add_anytext.py合成add_ocr_weights后的1.5系列模型就具有生成文字的能力了吗?是否还需要继续训练,那请问这个py文件的作用大概是什么呢

@tyxsspa
Copy link
Owner

tyxsspa commented May 22, 2024

Hi,
tool_add_anytext.py 是用来生成一个用作从头训练的anytext ckpt,这里面的weights都是随机初始化或copy自sd1.5的,所以不能生成文字。只有demo.py有使1.5系列的base model或lora生成文字的功能,可以将合并weight后的ckpt保存下来。

@godwenbin
Copy link
Author

godwenbin commented May 22, 2024

Hi, tool_add_anytext.py 是用来生成一个用作从头训练的anytext ckpt,这里面的weights都是随机初始化或copy自sd1.5的,所以不能生成文字。只有demo.py有使1.5系列的base model或lora生成文字的功能,可以将合并weight后的ckpt保存下来。

感谢回复!请问下demo.py为什么能使我的1.5系列基模具有生成文字的能力呢?然后您提到合并后的ckpt保存下来,我目前是跑了tool_add_anytext.py生成了一个合并weight的模型,如您所说,这是一个用作从头训练的anytext ckpt,我放到webui里面确实不具备生文字能力。想请问下,有更快捷的方法让我的1.5系列基模拥有anytext的能力吗?
另外,我看readme里面写的Change base model: Simply fill in your local base model's path in the [Base Model Path].在demo更换我的基模,这边是能够评估基模的哪一方面能力呢?

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

2 participants