The invention discloses a
large model method and device for AVI detection defect data judgment and a medium. The
large model method comprises the steps that a defect detection
large model is constructed; the method comprises the following steps: acquiring an industrial product photo, generating an image text data pair after text labeling, inputting the image text data pair into a defect detection large model, generating intermediate feature representation by matching an image
encoder and a text
encoder, and generating a prediction
mask by a decoder based on the intermediate feature representation; performing multi-
modal alignment on the predicted text
mask and the text feature information to obtain
modal feature representation; inputting the
modal feature representation and the predicted image
mask into a cue word
encoder to generate a Prompt vector code with the same dimension as the image feature information; and inputting the Prompt vector code into the LLM model, and outputting a semantic level judgment result after language questioning. The large
model method has good mobility, expansibility, strong generalization ability and
perception ability, gets rid of threshold dependence, and realizes accurate redetermination of AVI detection defect data.