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

can not run this app with warning torch.meshgrid #212

Open Batapha opened 8 months ago

Batapha commented 8 months ago

appear this warning:

UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument.

Batapha commented 8 months ago

/usr/local/lib/python3.11/site-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/native/TensorShape.cpp:3550.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]

gaoshaojie0708 commented 8 months ago

you can try return _VF.meshgrid(tensors, **kwargs,indexing = 'ij') # type: ignore[attr-defined]