Rift Detection tensorflow

Hello, I’m actually working in a program for a road rift detector using Tensorflow.
I have a code but I don’t really understand it and it’s not working. Can someone help me?