We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24c7121 commit cb6d214Copy full SHA for cb6d214
yolo_world/models/detectors/yolo_world.py
@@ -43,8 +43,8 @@ def predict(self,
43
img_feats, txt_feats = self.extract_feat(batch_inputs,
44
batch_data_samples)
45
46
- self.bbox_head.num_classes = self.num_test_classes
47
- # self.bbox_head.num_classes = txt_feats[0].shape[0]
+ # self.bbox_head.num_classes = self.num_test_classes
+ self.bbox_head.num_classes = txt_feats[0].shape[0]
48
results_list = self.bbox_head.predict(img_feats,
49
txt_feats,
50
batch_data_samples,
0 commit comments