This is a simple tensorflow script that can detect if the photo contains a desert, mountains, sea, sunset or trees. The model is a neural network with 2 convolutional and 2 fully connected layers.
The code contains many help function that you can use for a better understanding of the algorith. To run it you need python3, tensorflow, preetyTensor, numpy, sklearn and matplotlib installed to your system.