Skip to content

Commit

Permalink
add teaser images for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dandelin committed May 12, 2021
1 parent ed5fec3 commit 86d633b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ We provide five pretrained weights
5. ViLT-B/32 200k finetuned on F30K IR/TR [link](https://github.com/dandelin/ViLT/releases/download/200k/vilt_irtr_f30k.ckpt)

## Out-of-the-box MLM + Visualization Demo
<p align="center">
<img align="middle" src="./assets/mlm.png" alt="MLM + Visualization"/>
</p>

```bash
pip install gradio==1.6.4
python demo.py with num_gpus=<0 if you have no gpus else 1> load_path="<YOUR_WEIGHT_ROOT>/vilt_200k_mlm_itm.ckpt"
Expand All @@ -31,6 +35,10 @@ python demo.py with num_gpus=0 load_path="weights/vilt_200k_mlm_itm.ckpt"
```
## Out-of-the-box VQA Demo
<p align="center">
<img align="middle" src="./assets/vqa.png" alt="VQA"/>
</p>
```bash
pip install gradio==1.6.4
python demo_vqa.py with num_gpus=<0 if you have no gpus else 1> load_path="<YOUR_WEIGHT_ROOT>/vilt_vqa.ckpt" test_only=True
Expand Down
Binary file added assets/mlm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/vqa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86d633b

Please sign in to comment.