facebookresearch / nougat

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

Don't look for GPU when --help is present #194

Open soegaard opened 8 months ago

soegaard commented 8 months ago

The command

nougat --help

is very slow on machines without GPU.

The output is:

nougat-test % nougat --help  
WARNING:root:No GPU found. Conversion on CPU is very slow.
usage: ...

So it seems that time is spent looking for a GPU.

Note: The output is from an Intel mac.