transformers/examples/research_projects/lxmert
Mario Šaško f5eec0d8e9
Replace legacy tensor.Tensor with torch.tensor/torch.empty (#12027)
* Replace legacy torch.Tensor constructor with torch.{tensor, empty}

* Remove torch.Tensor in examples
2021-06-08 13:58:38 +01:00
..
demo.ipynb Put back LXMert example (#9401) 2021-01-04 09:59:07 -05:00
extracting_data.py Put back LXMert example (#9401) 2021-01-04 09:59:07 -05:00
modeling_frcnn.py Replace legacy tensor.Tensor with torch.tensor/torch.empty (#12027) 2021-06-08 13:58:38 +01:00
processing_image.py Put back LXMert example (#9401) 2021-01-04 09:59:07 -05:00
README.md Put back LXMert example (#9401) 2021-01-04 09:59:07 -05:00
requirements.txt Bump urllib3 from 1.25.8 to 1.26.5 in /examples/research_projects/lxmert (#11983) 2021-06-02 03:40:20 -04:00
utils.py Replace legacy tensor.Tensor with torch.tensor/torch.empty (#12027) 2021-06-08 13:58:38 +01:00
visualizing_image.py Put back LXMert example (#9401) 2021-01-04 09:59:07 -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