transformers/examples/research_projects/visual_bert
Xiaoli Wang 239ace152b
Fix TypeError: Object of type int64 is not JSON serializable (#24340)
* Fix TypeError: Object of type int64 is not JSON serializable

* Convert numpy.float64 and numpy.int64 to float and int for json serialization

* Black reformatted examples/pytorch/token-classification/run_ner_no_trainer.py

* * make style
2023-06-27 12:15:49 +01:00
..
demo.ipynb 🐛 Properly raise RepoNotFoundError when not authenticated (#17651) 2022-06-10 15:41:53 +02:00
extracting_data.py Apply ruff flake8-comprehensions (#21694) 2023-02-22 09:14:54 +01:00
modeling_frcnn.py Fix TypeError: Object of type int64 is not JSON serializable (#24340) 2023-06-27 12:15:49 +01:00
processing_image.py Clean up deprecation warnings (#19654) 2022-10-18 13:34:47 -04:00
README.md Updates the default branch from master to main (#16326) 2022-03-23 03:46:59 -04:00
requirements.txt Bump tornado from 6.0.4 to 6.3.2 in /examples/research_projects/visual_bert (#23767) 2023-05-25 16:16:12 -04:00
utils.py Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
visualizing_image.py Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00

VisualBERT Demo

This demo shows usage of VisualBERT VQA model and is adapted from LXMERT demo present here.

  1. make a virtualenv: virtualenv venv and activate source venv/bin/activate
  2. install reqs: pip install -r ./requirements.txt
  3. usage is as shown in demo.ipynb