The invention discloses an incremental
small sample instance segmentation method based on transfer learning, and the method comprises the steps: constructing an incremental
small sample instance segmentation model which comprises a feature extractor, a Transform
encoder (Transform
Encoder), a Transform Decoder (Transform Decoder) and two prediction heads, and the feature extractor, the Transform
Encoder, the Transform Decoder and the two prediction heads are connected in sequence; training the incremental
small sample instance segmentation model; segmenting the foreground objects of the
base class and the new class in the image by using the trained incremental small sample segmentation model to obtain the class and the segmentation
mask of each foreground object; according to the method, the lightweight adapter is added and the knowledge
distillation strategy is adopted, so that the problem that the performance of an old class is reduced when
base class knowledge cannot be fully utilized and the model is finely adjusted in the prior art is solved, better integration of the
base class knowledge and new class knowledge is realized, and the stability-
plasticity difficulty is better balanced.