You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If you don't have PyTorch installed. Follow their instructions [here](https://py
14
14
Install the package `pix2tex`:
15
15
16
16
```
17
-
pip install pix2tex[gui]
17
+
pip install "pix2tex[gui]"
18
18
```
19
19
20
20
Model checkpoints will be downloaded automatically.
@@ -30,7 +30,7 @@ There are three ways to get a prediction from an image.
30
30
31
31
If the model is unsure about the what's in the image it might output a different prediction every time you click "Retry". With the `temperature` parameter you can control this behavior (low temperature will produce the same result).
32
32
33
-
3. You can use an API. This has additional dependencies. Install via `pip install -U pix2tex[api]` and run
33
+
3. You can use an API. This has additional dependencies. Install via `pip install -U "pix2tex[api]"` and run
## Training the model [](https://colab.research.google.com/github/lukas-blecher/LaTeX-OCR/blob/main/notebooks/LaTeX_OCR_training.ipynb)
71
71
72
-
Install a couple of dependencies `pip install pix2tex[train]`.
72
+
Install a couple of dependencies `pip install "pix2tex[train]"`.
73
73
1. First we need to combine the images with their ground truth labels. I wrote a dataset class (which needs further improving) that saves the relative paths to the images with the LaTeX code they were rendered with. To generate the dataset pickle file run
0 commit comments