Hello, the task of finding an object using a full -bearing neural network is worthwhile using Keras, Theano, in Python. At the moment, this is the following network configuration:
def Create_encoding_layers (): keel = 3 filter_size = 64 parade = ""> 1 Pool_SIZE = 2 retu [ zeropadding = (paD, paAD)), convolution2d (Filter_size, Keel, Keel, Keel, Keel, Keel, Keel, Keel, Keel, Keel, Keel border_mode = 'valid' ), Batchnormalization (), Activation ( '' relu '), Maxpooling2d (pool_size = (pool_size, pool_size)), zeropadding2d (padding = (paAD, PAD)), convolution2d ( 32 , keel, keel, keel, keel, keel border_mode = 'valid' ), Batchnormalization (), Activation ( '' relu '), Maxpooling2d (pool_size = (pool_size, pool_size)), zeropadding2d (padding = (paAD, PAD)), convolution2d ( 32 , keel, keel, keel, keel, keel border_mode = 'valid' ), Batchnormalization (), Activation ( '' relu '), Maxpooling2d (pool_size = (pool_size, pool_size)), zeropadding2d (padding = (paAD, PAD)), convolution2d ( 64 , keel, keel, keel, keel, keel border_mode = 'valid' ), batchnormalization (), Activation ( '' relu '), ] deg span> Create_Decoding_layers (): keel = 3 filter_size = 64 paAD = 1 pool_size = 2 retu [ zeropadding2d (Padding), Convolution2D ( 64 , keel, keel, border_mode = 'Valid' ), Batchnormalization (), Upsampling2d (size = (pool_size, pool_size)), zeropadding2d (padding = (PAD, PAD)), Convolution2d ( 32 , keel, keel, Keel, Keel, Keel border_mode = 'valid' ), batchnormalization (), upsampling2d (size = (pool_size, pool_size), ), Zeropadding2d (Padding = (PAD, PAD)), Convolution2d ( 32 , keel, keel, border_mode = 'Valid' ), BatchNormalization(), UpSampling2D(size=(pool_size,pool_size)), ZeroPadding2D(padding=(pad,pad)), Convolution2D(filter_size, keel, keel, border_mode = 'valid' ), batchnormalization (), zeropadding2d ( 1 )), ] segnet_basic = models.sequential () segnet_basic.add (input_shape = ( 120 , 420 , 1 ))) segnet_basic.encoding_layers = Create_encoding_layers () for l in segnet_basic.encoding_layers: segnet_basic.add (l) segnet_basic.decoding_layers = creatcoding_layers () for l in segnet_basic.decoding_layers: segnet_basic.add (l) segnet_basic.add ( 1 , 1 , 1 , border_mode = '`ipan')) segnet_basic.summary () segnet_basic.add ((reshape (( 420 , 1 ))) is a photograph and mask (the region, where it is located, where it is located, where it is located, where The object is filled with units, and the rest of the area is zeros). As I understand it, at the exit we must get the same mask. I tried different functions of losses. The output is nonsense. Actually the question: what needs to be fixed in order to get a similar mask at the exit? What function of losses and optimizer to use? In the picture, an example of the work of an already trained network. Image - the image that is fed by the network, Label is the expected result that I am multiplying to the display by 255, result - what the network issues. It also multiplied by 255 for the conclusion
question@mail.ru
·