r/processing • • 2d ago

p5js Neural Canvas, CNN Visualization with p5.js

Enable HLS to view with audio, or disable this notification

Neural Canvas, CNN Visualization with p5.js

Used p5.js to build a neural network visualizer where you can see neurons and convolutional feature maps in real time.

The model was trained in Python using JAX. I exported the parameters to JavaScript using JSON, used Math.js for feedforward computations, and p5.js for visualization.

GitHub: https://github.com/MuhammadEssa2002/neural_canvas

Live demo: https://muhammadessa2002.github.io/neural_canvas/

78 Upvotes

7 comments sorted by

2

u/Icy-Chapter8480 15h ago

why is it faster than me at guessing the drawing…

2

u/Muhammad-Essa 15h ago

​I am going to take it as a compliment!

1

u/StochasticTinkr 2d ago

Where did the training set come from?

5

u/Muhammad-Essa 2d ago

I used Google's Quick, Draw! Dataset, which contains around 50 million drawings across 345 categories.

For my model, I selected 20 categories and used 1000 samples per category, giving me a total of 20000 drawings for training.

The dataset is open source and freely available. You can explore and download it here:

https://quickdraw.withgoogle.com/data