modern-fortran / neural-fortran

A parallel framework for deep learning
MIT License
403 stars 82 forks source link

MNIST example via PNG #125

Closed serfcity closed 1 month ago

serfcity commented 1 year ago

Can you add example witch user can test MNIST numbers detecting via setting path to PNG 28x28 image and weights files?

milancurcic commented 1 year ago

Unless there's an easy-to-include (as a dependency) and easy-to-use (as in, one function call to read an image into an array) PNG reader in Fortran, this is out of scope.

The easiest way to go from PNG to reading in Fortran is to read the PNG in Python and write the array to a text file or a NumPy file, then read using Fortran stdlib.