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

[Feature Request] Inference from code #142

Open logan-markewich opened 1 year ago

logan-markewich commented 1 year ago

Right now, the only way to use this package in your code is to call subprocess.

It would be nice if there was an actually import that I could call inference in my code :)

Vidminas commented 1 year ago

The code in https://github.com/facebookresearch/nougat/issues/108 might provide a starting point, you might just need to adapt it a little to your use case / framework