Comments (4)
Hi,
this seems to be an issue with the timm
package. Just now I've closed PR #31, which allows to use the newest version.
Please update the package
pip install -U timm
and make sure you are using the new version of this repository.
If the error persists please let me know.
from latex-ocr.
thanks, the program is running now, but the output result is wrong.
I tested with the image
and the output is
c^{2}\nabla\times B={\frac{\frac{\underline{3}}}{2}{5}}{5}{5}{5}{5}{6}{\delta+{\delta u}}}\sin^{\left(-16}c^{\right.\frac{\lambda}}c^{\left(\right.\right.\right.\left(\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.\right.
https://katex.org/?data=%7B%22displayMode%22%3Atrue%2C%22leqno%22%3Afalse%2C%22fleqn%22%3Afalse%2C%22throwOnError%22%3Atrue%2C%22errorColor%22%3A%22%23cc0000%22%2C%22strict%22%3A%22warn%22%2C%22output%22%3A%22htmlAndMathml%22%2C%22trust%22%3Afalse%2C%22code%22%3A%22c%5E%7B2%7D%5C%5Cnabla%5C%5Ctimes%20B%3D%7B%5C%5Cfrac%7B%5C%5Cfrac%7B%5C%5Cunderline%7B3%7D%7D%7D%7B2%7D%7B5%7D%7D%7B5%7D%7B5%7D%7B5%7D%7B5%7D%7B6%7D%7B%5C%5Cdelta%2B%7B%5C%5Cdelta%20u%7D%7D%7D%5C%5Csin%5E%7B%5C%5Cleft%28-16%7Dc%5E%7B%5C%5Cright.%5C%5Cfrac%7B%5C%5Clambda%7D%7Dc%5E%7B%5C%5Cleft%28%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cleft%28%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%5C%5Cright.%22%7D
katex cannot parse, so I think the result is not right.
from latex-ocr.
Ok, so the main issue is resolved.
Regarding the prediction: When I feed the exact same picture to the model I get
c^{2}\nabla\times B={\frac{j}{\varepsilon_{0}}}+{\frac{\partial E}{\partial t}}c^{2}
link to katex. The result is not perfect, the vectors are not bold but other than that it is correct.
Note, the output is not deterministic. You can try to predict the image again or to change a couple of parameters, e.g. the temperature
.
In case that you did not download the image_resizer.pth
, I'd suggest you try it again. It can improve performance greatly, especially for quite large images.
from latex-ocr.
Might be related to #33
Please downgrade x-tranformers to 0.15.0
pip install -U x-transformers==0.15.0
Thanks
from latex-ocr.
Related Issues (20)
- 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
- Can similar methods be used to generate TikZ code from images?
- pdfs to latex HOT 1
- Issue with Qt6 on macOS: am I missing something?
- Error in batchsize.
- Convert model Latex-OCR to ONNX sucessfully !
- latexocr snip window opaque Ubuntu 23.10 HOT 2
- latexocr sagment error regarding qt HOT 1
- Training with limited memory HOT 1
- logging error
- Models trained on 110 million large-scale datasets
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.