Comments (5)
Hi,
there is a misunderstanding. The image_resizer weights correspond to an entirely different network, which is also why the file sizes are significantly different.
If you place the image_resizer.pth
file in the same directory as weights.pth
the script will automatically initialize the classification model used for resizing. For the code see here
Lines 57 to 61 in fadb042
For very large images the resizer might still not work perfectly because I only rendered images of a set resolution range. If you find that the resizer does not help very much, consider training your own using the
train_resizer.py
script.from latex-ocr.
Thank you for the help
from latex-ocr.
By the way, would you share the resolution range that the model been trained on?
from latex-ocr.
Sure. The image sizes I trained on were at most 672x192 (wxh) and I've rendered the images randomly in between 110 and 170 dpi
Hope that answers your question.
from latex-ocr.
thank you very much 😄
from latex-ocr.
Related Issues (20)
- fails on very simple image HOT 2
- docker image HOT 1
- Request: How can I use this package with PyCall or PythonCall in Julia.
- Package this project to MacOS application
- [Windows GUI] latexocr: Hide Command Window and close to task bar
- Cant run with conda HOT 2
- Equation in many lines
- Problem with union and intersection
- How to join the contribution?
- How to join the contribution?
- How to join the contribution?
- uninstalling does not uninstall the nvidia packages HOT 1
- Running latexocr in WSL2 ubuntu
- [FR] `model(file)` copies the predicted latex to the clipboard
- Python version not mentioned as a dependency
- Where is latex code stored and how do I capture it in a variable to post process it?
- Does the formula font have an effect when inserting an image?
- Screenshot doesn't work with grim on wayland HOT 1
- [bug] - Hugging Face Running Error
- AttributeError: module 'numpy' has no attribute 'float'. HOT 2
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 latex-ocr.