Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-blecher authored Sep 16, 2023
1 parent a1c92a9 commit 1781514
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you don't have PyTorch installed. Follow their instructions [here](https://py
Install the package `pix2tex`:

```
pip install pix2tex[gui]
pip install "pix2tex[gui]"
```

Model checkpoints will be downloaded automatically.
Expand All @@ -30,7 +30,7 @@ There are three ways to get a prediction from an image.

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).

3. You can use an API. This has additional dependencies. Install via `pip install -U pix2tex[api]` and run
3. You can use an API. This has additional dependencies. Install via `pip install -U "pix2tex[api]"` and run
```bash
python -m pix2tex.api.run
```
Expand Down Expand Up @@ -69,7 +69,7 @@ Visit here: https://pix2tex.readthedocs.io/

## Training the model [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lukas-blecher/LaTeX-OCR/blob/main/notebooks/LaTeX_OCR_training.ipynb)

Install a couple of dependencies `pip install pix2tex[train]`.
Install a couple of dependencies `pip install "pix2tex[train]"`.
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

```
Expand Down

0 comments on commit 1781514

Please sign in to comment.