A non-transitory computer-readable storage medium storing a program for causing a computer to execute a control method for an inference processing system, the inference processing system performing, by a server and an edge device, computation of an inference model including an input layer, L intermediate layers, and an output layer,
- wherein the server comprises:
- a first estimation unit that sets a server-side inference model that is the same as the inference model;
- and
- a server communication unit capable of communicating data with the edge device, and
- the edge device comprises:
- a second estimation unit that sets an edge-side inference model including the input layer and first to n-th (L>n>1) intermediate layers among the L intermediate layers;
- an edge-side communication unit capable of communicating data with the server;
- and
- an image identification unit that detects specific information included in an input image input to an input layer of the edge-side inference model, and generates, according to the detected specific information, layer position information indicating a position of a last layer to process the input image in the edge-side inference model,
- the control method comprising:
- a first input step of inputting the input image to an input layer of the edge-side inference model;
- a transmitting step of transmitting, from the edge device to the server using the edge-side communication unit, layer data that is a computation result obtained by performing processing from the input layer to a layer indicated by the layer position information, and the layer position information;
- a receiving step of receiving the layer data and the layer position information at the server using the server communication unit;
- a second input step of inputting the received layer data to a layer subsequent to a layer indicated by the received layer position information in the server-side inference model;
- and
- a processing step of performing processing from the layer, where the received layer data is input in the second input step, to the output layer.