A learning model generating device capable of learning a data set containing image defect-containing training prints prepared for each type of image defect to generate a learning model, the learning model generating device comprising:
- a first image reading device that reads images of the training prints;
- and
- a first control device that includes a processor and functions, through the processor executing a first control program, as:
- a first segmenter that segments, on a predetermined first segmentation condition, each of the images of the training prints obtained by reading performed by the first image reading device;
- a learning model generator that learns segmented images obtained by segmentation performed by the first segmenter to generate a first learning model for use in inferring a type of an image defect;
- and
- a first compressor that compresses, on a predetermined first compression condition, each of the images of the training prints obtained by reading performed by the first image reading device,
- wherein the first segmenter segments, on a predetermined second segmentation condition, each of compressed images obtained by compression performed by the first compressor, and
- the learning model generator learns compressed and segmented images obtained by compression performed by the first compressor and segmentation performed by the first segmenter to generate a second learning model for use in inferring a type of an image defect.