Closed lucasmccabe closed 10 months ago
Note: this is resolved by explicitly passing data_format="channels_first"
when calling NougatProcessor
, although it's not clear to me why this is the case, since this is ostensibly the default anyway.
Hello, thanks for reporting, this was fixed in #26608
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
transformers
version: 4.34.0Who can help?
@amyeroberts @ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I am running the example code from the Nougat documentation here in a Jupyter notebook:
Expected behavior
Expected Output
The documentation indicates the above should return the following string:
'\n\n# Nougat: Neural Optical Understanding for Academic Documents\n\n Lukas Blecher\n\nCorrespondence to: lblecher@'
Observed Output
Running the following as a code block raises the following: