activatedgeek/LeNet-5 use ONNX for inference Updated 2025-07-16
Note that:
- the images must be drawn with white on black. If you use black on white, it the accuracy becomes terrible. This is a good very example of brittleness in AI systems!
- images must be converted to 32x32 for
lenet.onnx, as that is what training was done on. The training step converted the 28x28 images to 32x32 as the first thing it does before training even starts
We can try the code adapted from thenewstack.io/tutorial-using-a-pre-trained-onnx-model-for-inferencing/ at lenet/infer.py:and it works pretty well! The program outputs:as desired.
cd lenet
cp ~/git/LeNet-5/lenet.onnx .
wget -O 9.png https://raw.githubusercontent.com/cirosantilli/media/master/Digit_9_hand_drawn_by_Ciro_Santilli_on_GIMP_with_mouse_white_on_black.png
./infer.py 9.png9We can also try with images directly from Extract MNIST images.and the accuracy is great as expected.
infer_mnist.py lenet.onnx mnist_png/out/testing/1/*.png Activation energy Updated 2025-07-16
Perl HOWTO Updated 2025-07-16
Gift vs Grant vs Contract in the United Kingdom Updated 2025-07-16
OpenClassrooms Updated 2025-07-16
Login walls. Lol.
Monero mining Updated 2025-11-05
JPEG file signature Updated 2025-07-16
Functional Analysis course of the University of Oxford Updated 2025-07-16
Schrödinger equation for a one dimensional particle Updated 2025-07-16
We select for the general Equation "Schrodinger equation":giving the full explicit partial differential equation:
- , the linear cartesian coordinate in the x direction
- , which analogous to the sum of kinetic and potential energy in classical mechanics
Equation 1.
Schrödinger equation for a one dimensional particle
. The corresponding time-independent Schrödinger equation for this equation is:
Equation 2.
time-independent Schrödinger equation for a one dimensional particle
. Semantic triple Updated 2025-07-16
TCP/IP Updated 2025-07-16
Ciro Santilli's hardware Dell TODO Updated 2025-07-16
Torah Updated 2025-07-16
Crate solid color image in ImageMagick Updated 2025-07-16
convert -size 512x512 xc:blue blue.png Solver community Updated 2025-07-16
data URI scheme Updated 2025-07-16
less (Unix) Updated 2025-07-16
OurBigBook dynamic tree Updated 2025-07-16
Mentava Updated 2025-07-16
www.mentava.com/
Mentava's software-based daily tutor gets students on track for college-level math and computer science before high school.
Functional Analysis I course of the University of Oxford Updated 2025-07-16
There are unlisted articles, also show them or only show them.
