Tongbo commited on
Commit
04da49c
·
verified ·
1 Parent(s): 4297951

Update model/multimodal_encoder/builder.py

Browse files
model/multimodal_encoder/builder.py CHANGED
@@ -3,7 +3,7 @@ from .clip_encoder import CLIPVisionTower
3
 
4
 
5
  def build_vision_tower(vision_tower_cfg, **kwargs):
6
- vision_tower = getattr(vision_tower_cfg, 'mm_vision_tower', getattr(vision_tower_cfg, 'vision_tower', None))
7
  is_absolute_path_exists = os.path.exists(vision_tower)
8
  if is_absolute_path_exists or vision_tower.startswith("openai") or vision_tower.startswith("laion") or vision_tower.startswith("google"):
9
  return CLIPVisionTower(vision_tower, args=vision_tower_cfg, **kwargs)
 
3
 
4
 
5
  def build_vision_tower(vision_tower_cfg, **kwargs):
6
+ vision_tower = 'google/siglip-so400m-patch14-384'
7
  is_absolute_path_exists = os.path.exists(vision_tower)
8
  if is_absolute_path_exists or vision_tower.startswith("openai") or vision_tower.startswith("laion") or vision_tower.startswith("google"):
9
  return CLIPVisionTower(vision_tower, args=vision_tower_cfg, **kwargs)