Skip to content

Commit

Permalink
Update vary_opt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ucas-HaoranWei authored Mar 19, 2024
1 parent a8520b2 commit cc25c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vary-master/vary/model/vary_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, config: OPTConfig):
super(varyOPTModel, self).__init__(config)


self.vision_tower = build_sam_vit_b()
self.vision_tower_2 = build_sam_vit_b()

self.mm_projector = nn.Linear(1024, 768)

Expand Down Expand Up @@ -113,7 +113,7 @@ def forward(
# inputs_embeds = self.wte(input_ids)


vision_tower = getattr(self, 'vision_tower', None)
vision_tower = getattr(self, 'vision_tower_2', None)


if vision_tower is not None and (input_ids.shape[1] != 1 or self.training) and images is not None:
Expand Down

0 comments on commit cc25c58

Please sign in to comment.