Skip to content

Commit

Permalink
Update blip.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Junnan Li authored Jan 28, 2022
1 parent 0480d94 commit b84fe14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/blip.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
* By Junnan Li
'''
import warnings
warnings.filterwarnings("ignore")

from models.vit import VisionTransformer, interpolate_pos_embed
from models.med import BertConfig, BertModel, BertLMHeadModel
Expand Down Expand Up @@ -233,4 +235,4 @@ def load_checkpoint(model,url_or_filename):
msg = model.load_state_dict(state_dict,strict=False)
print('load checkpoint from %s'%url_or_filename)
return model,msg


0 comments on commit b84fe14

Please sign in to comment.