Comments (3)
![image](https://private-user-images.githubusercontent.com/61346536/337859352-f569d56e-ce71-47fd-b69d-a1f241861a64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzOTE0NzYsIm5iZiI6MTcxODM5MTE3NiwicGF0aCI6Ii82MTM0NjUzNi8zMzc4NTkzNTItZjU2OWQ1NmUtY2U3MS00N2ZkLWI2OWQtYTFmMjQxODYxYTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDE4NTI1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1MjJmNDA5MGI3MmU4YzI4OGY0MGU2N2I2Mzk0OTI4YjYxYWJlYThiNTQzMDIyYTFmMGM0MDVmNWRmNGQzNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eevA85-DpNbFpKTKhKCZwZmE5YpKlDKyJ2H9qkw40Zo)
Prompt: A blue traffic sign with the words "Welcome!" written on it
![image](https://private-user-images.githubusercontent.com/61346536/337859684-e332b088-9ce0-4ac0-b027-16cc1d59548e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzOTE0NzYsIm5iZiI6MTcxODM5MTE3NiwicGF0aCI6Ii82MTM0NjUzNi8zMzc4NTk2ODQtZTMzMmIwODgtOWNlMC00YWMwLWIwMjctMTZjYzFkNTk1NDhlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDE4NTI1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyYTMxN2U2NGZjY2YyNzBiZTk1NzMzMTUyMzZkZTVkYjQ1ZjM5NmY5NDRiNGNkODU5MjIyZmRlNDk4YTE4MjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CDFHjTh62dcaKGHexfYcSbnrywcIoQSlTxXyjL_qm9w)
Prompt: A newspaper whose title is "Breaking News"
Not only is the given template incorrect, but the general rendering access is also poor (all the parameters are set to the default values provided in the repository). Am I doing something wrong?
from anytext.
That's not quite normal. Are the versions of your dependency libraries consistent with those in environment.yaml
, such as opencv, transformers, and xformers? Are you using the Arial_Unicode.ttf
font file?
from anytext.
![image](https://private-user-images.githubusercontent.com/61346536/338123491-a9bff1e8-94ed-4f42-be59-48ea4467528a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzOTE0NzYsIm5iZiI6MTcxODM5MTE3NiwicGF0aCI6Ii82MTM0NjUzNi8zMzgxMjM0OTEtYTliZmYxZTgtOTRlZC00ZjQyLWJlNTktNDhlYTQ0Njc1MjhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ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mFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wS9op6-ZsQMJLqcRg-apGKjYB3mdmXwQ-kt3DdlUTlE)
Here are the glyph images obtained through debugging, each from the HuggingFace demo (left) and my server (right) respectively.
I believe that I'm using the correct font style file (Arial_Unicode.ttf
), but the font sizes are different, which might be causing the issue.
I'm looking for possible problems, but do you have any ideas?
Oh, I found that the font file I downloaded from the internet (arialuni.ttf
) was not compatible.
After I replaced it with the default font file on my Mac, the problem was solved :) Thanks for your kind help!
from anytext.
Related Issues (20)
- Expected all tensors to be on the same device HOT 2
- 变形 HOT 2
- Is there a reason why you chose the pretrained model as stable-diffusion-v1-5? HOT 1
- 生成中文
- 能不能选自己的字体,这个功能很重要
- How to generate picture with Chinese HOT 3
- 文字渲染问题 HOT 4
- 在标准字体上效果不佳 HOT 4
- Text editing issue HOT 1
- 从一个新的checkpoint继续训练,代码没有任何输出就结束运行了 HOT 1
- 無法解析dataset的json檔
- Is there a separate reason to set max_chars to 20? HOT 1
- 请问使用tool_add_anytext.py合成add_ocr_weights后的1.5系列模型就具有生成文字的能力了吗? HOT 2
- 是否有计划将sd部分升级到2.1 HOT 1
- 您好,我这边想问一下,就是我在运行damo.py后,在webUI界面添加Lora地址后,对生成出来的图像并不起作用,我仔细的看了damo.py文中,并没有说明Lora的模型在哪里起作用,而且我把底模换成SD1.5后,通过prompt提示词与具体想要生成的文字,然而,生成出来的图片中并没带有文字,我想问一下会是什么原因呢? HOT 1
- Need help
- 英文训练集 HOT 1
- 关注复现使用的200k数据 HOT 7
- 部署效果差 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anytext.