Test Project to learn how to produce fonts using current ai tools and resources. This is a mix of pix2pix and reinforced learning.
- Install python requirements (python3):
$ sudo pip3 install -r requirements.txt
-
Select a main font for training and rename it as 1.ttf
-
Put the rest of the fonts in the fonts folder (ttf files)
-
Run font2img.py
$ python3 font2img.py
- Copy the generated images from the data folder and divide them into 3 folders (50% to train and 25% to the rest of the folders):
- train
- test
- val
-
Use renamer.py to rename files by modifying the path location
-
Once files are renamed copy train test and val folders to the images font folder (replace if needed)
-
Run basti.py for training
$ python3 basti.py
- Save or move the generated model h5 and json files to a safe location for further use later