Skip to content

Ardibid/SecondHand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecondHand

A toolkit to interface SecondHand a C-VAE model for handwriting typeface generation.


Guides

Running the app

To run the app, run this script from the same folder that the secondHand_dashboard.py exists and then access the app from your browser:

python secondHand_dashboard.py -mode local 

There are three modes of running the app:

Setup

  • Clone the repository
  • Make sure you have all the dependencies with the correct version, you can use the requirements.txt file
  • Only for the first run:
    • Run the app for the first time and use Merge Data button to merge all the sample data files
    • Run the t-SNE algorithm to create the t-SNE distribution
  • Follow the three steps:
    • Create your data selection
    • Train your model
    • Generate type faces

Data curation

Use the two scatter plots to select a portion of data set, or even the whole. The larger the selection, the longer it takes to train the model. You can inspect the samples using plots in the seconf row. You can use rectangle selection tool, lasso selection tool, and use shift to combine different selections.
You can use the sample size slider to view more data at a time. By default you will see a small portion of data, to make it easier for your browser, RAM, and GPU. But you can cranck that slider to show you all +30K samples, your call!

Model Training

Once you have your data selected, you can use the Train tab to train the C-VAE model. You can add/remove/edit your selection after each round of training is over. Your model will continue training with the new selection. You can save the model or simply reset it to start from the begining. Your model will be re-initiated, but your selection will stays the same.

Typeface Generation

You can use the Generation tab to play with the model's latent space and fine tune each glyph in your tyepface.

Once Done with all the glyphs, you can save the typeface and start rendering text with it!

Technicals

Dependencies

(the toolkit is developed with the versions mentioned here, use other versions at your own risk)


By Ardavan Bidgoli, Spring 2022, GitHub
Developed as a part of Ardavan Bidgoli's PhD thesis and 48-770 @ Carnegie Mellon University, School of Architecture.

About

A toolkit for creating handwriting typeface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages