This post was flagged by the community and is temporarily hidden.
There is a tutorial about data on the processing website - section tutorials | data
Also see the videos in session 3 here :
Are you actually using the Processing language? If so, how are you using keras?
Questions about implementing CNNs with keras are out of scope for this forum, unless you are trying to debug some aspect of an implementation in a Processing language sketch specifically.