transformers/examples/research_projects/lxmert
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 Put back LXMert example (#9401) 2021-01-04 09:59:07 -05:00
requirements.txt Bump tornado from 6.0.4 to 6.3.2 in /examples/research_projects/lxmert (#23766) 2023-05-25 16:16:01 -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

LXMERT DEMO

  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