I found answer of EncoderDepth problem :
Network input image size, specified as a:
2-element vector in the format [height, width].
3-element vector in the format [height, width, depth]. depth is the number of image channels. Set depth to 3 for RGB images, 1 for grayscale images, or to the number of channels for multispectral and hyperspectral images.
Note
Each encoder section has a 2x2 maxPooling2dLayer that halves the image size. The height and width of the input image must be a multiple of 2D, where D is the value of EncoderDepth.
If I understant true : I'm working with 250x250 image size. I have to use 3 for EncoderDepth, My input can gray scale but output is RGB. If I make it 3, 2³ =8 250/8 : 31,25. It's mean fails. I have to setup by image sizes 256x256.
Please comment if I understant correctly this situation. I will try and let you know asap.

