amazingvince commited on
Commit
dec5a46
1 Parent(s): 7e534bf

Update modeling_florence2.py

Browse files
Files changed (1) hide show
  1. modeling_florence2.py +1 -1
modeling_florence2.py CHANGED
@@ -2532,7 +2532,7 @@ class Florence2VisionModelWithProjection(Florence2PreTrainedModel):
2532
  class Florence2ForConditionalGeneration(Florence2PreTrainedModel):
2533
  def __init__(self, config: Florence2Config):
2534
  super().__init__(config)
2535
- assert config.vision_config.model_type == 'davit', 'only DaViT is supported for now'
2536
  self.vision_tower = DaViT.from_config(config=config.vision_config)
2537
  # remove unused layers
2538
  del self.vision_tower.head
 
2532
  class Florence2ForConditionalGeneration(Florence2PreTrainedModel):
2533
  def __init__(self, config: Florence2Config):
2534
  super().__init__(config)
2535
+ # assert config.vision_config.model_type == 'davit', 'only DaViT is supported for now'
2536
  self.vision_tower = DaViT.from_config(config=config.vision_config)
2537
  # remove unused layers
2538
  del self.vision_tower.head