Comments (2)
What is the issue exactly?
Your code only works for batch size = 1
from nougat.
for page_num,page_as_tensor in tqdm(enumerate(dataloader)):
model_output = model.inference(image_tensors=page_as_tensor[0])
If i don't mention the index 0 in page_as_tensor ,an error pops because page_as_tensor is a list.May be because i am doing it for just one paper .but in the predict.py and app.py files ,they didn't mention the index.So is it issue too when using multiple pdfs?
from nougat.
Related Issues (20)
- nougat misses the double column pdfs
- Pretraining Objectives? HOT 6
- token by token generation with probability?
- Extract Table failed.... HOT 2
- Why does metadata exist?
- can not run this app with warning torch.meshgrid HOT 2
- TypeError: BARTDecoder.prepare_inputs_for_inference() got an unexpected keyword argument 'cache_position' HOT 7
- No output generated for a pdf, get this error
- No output generated for a pdf, get degrees of freedom error. HOT 2
- TypeError: BARTDecoder.prepare_inputs_for_inference() got an unexpected keyword argument 'cache_position' HOT 1
- How to set the train_nougat.yaml to finetune the nougat base model ?
- Please add Rocm support HOT 1
- Cannot close object, library is destroyed. HOT 1
- Having issue on -> Cannot close object, library is destroyed. This may cause a memory leak! HOT 9
- Recompute option in nougat_api HOT 1
- Have anybody trained a Chinese version?
- Why citations come out like this?
- Why can't I run nougat-ocr on pdfs?
- What does this issue mean?
- TypeError: BARTDecoder.prepare_inputs_for_inference() got an unexpected keyword argument 'cache_position' HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nougat.