transformers/examples/research_projects/visual_bert
Arthur 651408a077
[`Styling`] stylify using ruff (#27144)
* try to stylify using ruff

* might need to remove these changes?

* use ruf format andruff check

* use isinstance instead of type comparision

* use # fmt: skip

* use # fmt: skip

* nits

* soem styling changes

* update ci job

* nits isinstance

* more files update

* nits

* more nits

* small nits

* check and format

* revert wrong changes

* actually use formatter instead of checker

* nits

* well docbuilder is overwriting this commit

* revert notebook changes

* try to nuke docbuilder

* style

* fix feature exrtaction test

* remve `indent-width = 4`

* fixup

* more nits

* update the ruff version that we use

* style

* nuke docbuilder styling

* leve the print for detected changes

* nits

* Remove file I/O

Co-authored-by: charliermarsh
 <charlie.r.marsh@gmail.com>

* style

* nits

* revert notebook changes

* Add # fmt skip when possible

* Add # fmt skip when possible

* Fix

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* More `  # fmt: skip` usage

* NIts

* more fixes

* fix tapas

* Another way to skip

* Recommended way

* Fix two more fiels

* Remove asynch
Remove asynch

---------

Co-authored-by: charliermarsh <charlie.r.marsh@gmail.com>
2023-11-16 17:43:19 +01:00
..
README.md Updates the default branch from master to main (#16326) 2022-03-23 03:46:59 -04: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 [`Styling`] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
processing_image.py Clean up deprecation warnings (#19654) 2022-10-18 13:34:47 -04:00
requirements.txt Bump urllib3 from 1.26.17 to 1.26.18 in /examples/research_projects/visual_bert (#26890) 2023-10-18 04:30:50 -07:00
utils.py Set `usedforsecurity=False` in hashlib methods (FIPS compliance) (#27483) 2023-11-16 14:29:53 +00:00
visualizing_image.py Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00

README.md

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