For some context, read the write-up.
git clone https://github.com/bwasti/pic2emoji.git
pip install tinygrad
You can optionally install pyopencl
for more performance during training time.
python train.py emoji_set
You can add more emoji to the folder. They'll need to be 72x72. A good resource is this site: https://emojipedia.org/apple/
Note: the size of the image must be divisible by 36
python train.py emoji_set mario.png
This will generate an image mario.png.emoji.png
.
Happy to take PRs! However, this is a weekend project so I won't be actively maintaining it much.