diff --git a/yolo_world/models/detectors/yolo_world.py b/yolo_world/models/detectors/yolo_world.py index c72963d1..7b393df1 100644 --- a/yolo_world/models/detectors/yolo_world.py +++ b/yolo_world/models/detectors/yolo_world.py @@ -94,6 +94,7 @@ def extract_feat( if txt_feats is not None: # forward image only img_feats = self.backbone.forward_image(batch_inputs) + txt_masks = None else: img_feats, (txt_feats, txt_masks) = self.backbone(batch_inputs, texts)