In order to improve the learning performance of a neural network model, this image recognition model generating device is provided with an input image patch determining unit, a similar patch searching unit, a pixel value generating unit, and a convolution processing unit. The input image patch determining unit determines an input image patch containing a border region in contact with the outside of a boundary line of an input image. The similar patch searching unit searches for a similar patch that is similar to the input image patch. The pixel value generating unit generates a pixel value complementing the border region, on the basis of the similar patch. The convolution processing unit performs a convolution process from the generated pixel value and pixel values of the input image.
展开▼