Comments (4)
同问,几个月过去了..
from zi2zi-pytorch.
好像并没有直接生成字体,只是生成了图片,需要再导入fontcreator、fontforge等软件制作字体
from zi2zi-pytorch.
如题,如何存储为新的ttf字体?
同问,几个月过去了..
您好,我在跑这个代码的预处理阶段出现了以下的问题:
python font2img.py --src_font=src.ttf --dst_font=trg.otf --charset=CN --sample_count=1000 --sample_dir=dir --label=0 --filter --shuffle --mode=font2font
Traceback (most recent call last):
File "font2img.py", line 340, in
args.sample_count, args.sample_dir, args.label, args.filter)
File "font2img.py", line 138, in font2font
src_font = ImageFont.truetype(src, size=char_size)
File "/root/miniconda3/lib/python3.7/site-packages/PIL/ImageFont.py", line 976, in truetype
return freetype(font)
File "/root/miniconda3/lib/python3.7/site-packages/PIL/ImageFont.py", line 973, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/root/miniconda3/lib/python3.7/site-packages/PIL/ImageFont.py", line 250, in init
font, size, index, encoding, layout_engine=layout_engine
OSError: cannot open resource
想问一下这个--src_font=src.ttf --dst_font=trg.otf这两个参数的设置需要修改吗?期待您的回复
from zi2zi-pytorch.
可能是--charset=CN出現問題 你必須創一個.txt檔裡面是dst_font有支援到的字 --charset=你創的.txt檔名
from zi2zi-pytorch.
Related Issues (20)
- '
- ‘
- RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR HOT 1
- '
- --src_font {your model\'s source font file} HOT 1
- 为得到字体图片,运行命令python font2img.py --src_font=src.ttf 时报错font2img.py: error: the following arguments are required: --mode 请问这个问题该如何解决呢? HOT 1
- preprocess阶段报错OSError: cannot open resource HOT 1
- 'NoneType' object is not subscriptable HOT 2
- RuntimeError: output with shape [1, 256, 256] doesn't match the broadcast shape [3, 256, 256] HOT 4
- inference请教 HOT 8
- 对比实验
- 最少多少个自己手写字符就可以用来训练模型生成其它字符的手写效果?
- AttributeError: 'NoneType' object has no attribute 'tobytes' HOT 2
- 在第三部训练时出现AssertionError HOT 2
- 最后生成的图片文字不完整 HOT 2
- Why did the code not implement fine_tune and freeze_encoder
- 预训练模型链接过期了能补一下吗 HOT 2
- AttributeError: 'NoneType' object has no attribute 'tobytes' HOT 4
- checkpoint文件夹不存在 HOT 1
- Enhancement Question: Diffusion-based Zi2Zi for both CJK and Latin
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 zi2zi-pytorch.