Flying memes

LLaVA, Google Photo API and a broken e-book reader: Haiku digital photo frame.

October 22nd, 2023

I’ve made a digital photo frame that displays random photo from my Google Photo library enriched with an Haiku generated by a LLaVa instance using the same photo as reference.

Read the rest of this entry »

Pics From The Past: ChatGPT and StableDiffusion powered facts of the day Photo Generation.

July 8th, 2023

Wikimedia has a nice API which provides the facts of the day in JSON format, something like:

Read the rest of this entry »

Experimenting with my Sketches and ControlNet

April 1st, 2023

Lately I’ve been spent some time using ControlNet to process some of my sketches, the results are quite interesting and show the potential of the technology even when the starting sketch is very low quality and noisy, due to being on squared paper.

Read the rest of this entry »

Can we show causation between a book genre and its quality?

May 14th, 2022

Quality is subjective, true, but can we show that no matter the audience a fantasy book is always better than an horror book? If this would be the case it’d mean that even readers who prefer horror books should give higher ratings to an horror-fantasy book than an horror book of other sub-genres.

Read the rest of this entry »

Do some books categories receive on average better ratings than others?

May 8th, 2022

Do fantasy books on average get better ratings than sci-fi books? The answer seems to be yes, according to this little data science project I’ve build from Goodreads data.

Read the rest of this entry »

In Browser Real Time Object Detection From an HTTP Live Stream

July 2nd, 2021

This experiment combines hsl.js and tensorflow.js to perform real time object detection from a browser. When the mouse hovers the canvas the entire stream is shown, with the detected object framed in a black box, otherwise only the parts of the stream corresponding to detected objects are displayed.

Read the rest of this entry »

A simple web based classifier-powered glyph detector.

September 27th, 2020

In these days I’m spending some time reading about machine learning. To practice what I’ve read I’ve built a super simple, but working, glyph classifier, that recognizes the first five letters of the alphabet when drawn on an HTML canvas. You can try it here and check its source code on github.

Read the rest of this entry »

Plotting the characteristic polynomial of a matrix

June 28th, 2017

Next step is determining the roots of the characteristic polynomial of a matrix. Before working on extracting the roots using Newton’s method I wanted to be able to visualize the function.

Read the rest of this entry »

Determinant of a matrix in JS

June 10th, 2017

I’m currently reading Deep Learning, from Ian Goodfellow, Yoshua Bengio and Aaron Courville. While reading I got interested in calculating the determinant of a square matrix, I know there are many existing libraries to do that but the algorithm looked simply enough to give it a try.

Read the rest of this entry »

Enabling browser BPG support using Service Worker

August 21st, 2016

This is, by far, my longest running side project. I’ve started it before moving to London, so around December 2014 and now I’m so proud to announce it is ready and released on GitHub.

Read the rest of this entry »