Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 28, 2022
1 parent f68d24c commit 16b735b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "bb2e6f60",
"id": "2b949f9f",
"metadata": {},
"source": [
"# BLIP: Inference Demo"
Expand Down Expand Up @@ -93,7 +93,7 @@
"\n",
"model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model*_base_caption.pth'\n",
" \n",
"model = blip_decoder(pretrained=model_url, image_size=384, vit='base')\n",
"model = blip_decoder(pretrained=model_url, image_size=384, vit='base', med_config='BLIP/configs/med_config.json')\n",
"model.eval()\n",
"model = model.to(device)\n",
"\n",
Expand Down Expand Up @@ -139,7 +139,7 @@
"\n",
"model_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model*_vqa.pth'\n",
" \n",
"model = blip_vqa(pretrained=model_url, image_size=480, vit='base')\n",
"model = blip_vqa(pretrained=model_url, image_size=480, vit='base', med_config='BLIP/configs/med_config.json')\n",
"model.eval()\n",
"model = model.to(device)\n",
"\n",
Expand Down

0 comments on commit 16b735b

Please sign in to comment.