Use Keras problems encountered in the process of training data

This approach uses skimage to read the image, still using matplotlib to draw. PNG picture is a four-channel images, the last dimension is transparency, the first three dimensions are RGB, a maximum of 255. Two are drawing to draw with matplotlib.
 
Another way is to use cv2.
 
When read the file:
Because the Mac folder has hidden DS file, it will be given:
“cannot identify image file '/Users//.DS_Store’”
 
Solution:
sudo find ./ -name ".DS_Store" -depth -exec rm {} \;
 
cd to this file, then delete all .DS_Store system files.
 
sudo user does not need to re-enter the password a plurality of times within a certain period of time.

Guess you like

Origin www.cnblogs.com/lhongly/p/11105950.html