This invention discloses a pixel block arrangement method and
system for billion-pixel images. The method includes: inputting the billion-
pixel image to be labeled into an
inference model and constructing a pixel block tree using initial pixel blocks; performing pixel block filtering based on a pixel block filtering model and the pixel block tree to arrange adjacent fine-grained pixel blocks into corresponding coarse-grained pixel blocks; obtaining a preset number of canvases based on the remaining fine-grained pixel blocks, the corresponding coarse-grained pixel blocks, and a pixel block packing model, and generating final
layout information of the
packed pixel blocks in the preset number of canvases; optimizing the model based on the final
layout information of the
packed pixel blocks to obtain a trained
inference model; and outputting the
labeled data of the billion-
pixel image to be labeled and the labels of the
labeled data based on the trained
inference model. The pixel block arrangement framework proposed in this invention significantly improves the inference speed for billion-pixel images while maintaining ideal performance.