xinyu1205 commited on
Commit
217926f
1 Parent(s): ba7689a

Update models/tag2text.py

Browse files
Files changed (1) hide show
  1. models/tag2text.py +1 -1
models/tag2text.py CHANGED
@@ -92,7 +92,7 @@ class Tag2Text_Caption(nn.Module):
92
 
93
  self.threshold = threshold
94
  num_features = 768
95
- self.num_class = config['class_num']
96
 
97
  q2l_config = BertConfig.from_json_file('configs/q2l_config.json')
98
  q2l_config.encoder_width = vision_width
 
92
 
93
  self.threshold = threshold
94
  num_features = 768
95
+ self.num_class = 3429
96
 
97
  q2l_config = BertConfig.from_json_file('configs/q2l_config.json')
98
  q2l_config.encoder_width = vision_width