VictorSanh commited on
Commit
d4266ac
1 Parent(s): 4d46bb6

remove type checks for now

Browse files
Files changed (1) hide show
  1. modeling_siglip.py +11 -11
modeling_siglip.py CHANGED
@@ -1230,17 +1230,17 @@ class SiglipModel(SiglipPreTrainedModel):
1230
  def __init__(self, config: SiglipConfig):
1231
  super().__init__(config)
1232
 
1233
- if not isinstance(config.text_config, SiglipTextConfig):
1234
- raise ValueError(
1235
- "config.text_config is expected to be of type SiglipTextConfig but is of type"
1236
- f" {type(config.text_config)}."
1237
- )
1238
-
1239
- if not isinstance(config.vision_config, SiglipVisionConfig):
1240
- raise ValueError(
1241
- "config.vision_config is expected to be of type SiglipVisionConfig but is of type"
1242
- f" {type(config.vision_config)}."
1243
- )
1244
 
1245
  text_config = config.text_config
1246
  vision_config = config.vision_config
 
1230
  def __init__(self, config: SiglipConfig):
1231
  super().__init__(config)
1232
 
1233
+ # if not isinstance(config.text_config, SiglipTextConfig):
1234
+ # raise ValueError(
1235
+ # "config.text_config is expected to be of type SiglipTextConfig but is of type"
1236
+ # f" {type(config.text_config)}."
1237
+ # )
1238
+
1239
+ # if not isinstance(config.vision_config, SiglipVisionConfig):
1240
+ # raise ValueError(
1241
+ # "config.vision_config is expected to be of type SiglipVisionConfig but is of type"
1242
+ # f" {type(config.vision_config)}."
1243
+ # )
1244
 
1245
  text_config = config.text_config
1246
  vision_config = config.vision_config