Xenova HF staff commited on
Commit
e10da1a
1 Parent(s): dc7e692

Remove unnecessary deletion

Browse files
Files changed (1) hide show
  1. modeling_florence2.py +0 -1
modeling_florence2.py CHANGED
@@ -2533,7 +2533,6 @@ 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
- del config.vision_config.model_type
2537
  self.vision_tower = DaViT.from_config(config=config.vision_config)
2538
  # remove unused layers
2539
  del self.vision_tower.head
 
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