Skip to content

clod44/tfjs-shape-morphing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tfjs simple in-between shape creator.

Table of Context

  • TODO
  • Depencies
  • How to run
  • How it works & Screenshots
  • Notes

TODO

  • Fix: TODO doesn't exists
  • Fix: uploaded model's optimizer and learning rate is overwrited
  • Feature: Being able to recompile the tfjs model
    • Able to change the optimizer
    • Able to change the learning rate
  • Feature: Changing brush size
  • Feature: User determined hidden layer sizes.
    • save the layer infos in file name
  • Improvement: User friendly frontend
  • Improvement: Better way to handle uploaded model's required canvas size
  • Improvement: Mobile Friendly website design
  • Improvement: Remove P5js depency
  • Improvement: Create a logo for the project

Depencies

How to run

Online

Visit here. (https://clod44.github.io/tfjs-shape-morphing/)
(You may need to turn off your Canvas Fingerprint privacy extensions)

Local

Clone the stable branch with

git clone https://github.com/clod44/tfjs-shape-morphing/tree/stable

and double click index.html. Still requires internet access for cdns.

How it works

By pressing "Start the Training", it feeds the ml with different sized circles, squares and triangles and corrects the weights by drawing the particular shape in particular size and converting the canvas to a truth array. You can download or upload your model files to use them later / share. hidden layer size is determined by the canvas size.

screenshot of demo screenshot of demo options

Notes

I probably won't complete the TODO