facebookresearch / nougat

Implementation of Nougat Neural Optical Understanding for Academic Documents
https://facebookresearch.github.io/nougat/
MIT License
8.98k stars 567 forks source link

Add setup instructions for this repo #55

Closed ggaabe closed 1 year ago

ggaabe commented 1 year ago

I'm trying to run and modify this source code to be able to feed images directly into the model. The setup fails for me every time (a bunch of errors like:

python3.10/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 37, in __init__
    raise InvalidRequirement(str(e)) from e
pkg_resources.extern.packaging.requirements.InvalidRequirement: .* suffix can only be used with `==` or `!=` operators
    torch (>=1.9.*)

when running setup.py install.

With the HuggingFace repo I can install all the requirements and get the app running. I figured it might be helpful to add to the repo which tooling is used for getting the model running within this source code.

I also know it was recommended to use LaTeX-OCR for my purposes in here but I've had poor performance with it (might be OS related) and wanted to see how this could do.

lukas-blecher commented 1 year ago

What HF repo do you mean? How did you install nougat? Does it work with pip install -e . in project root?