Skip to content

Commit

Permalink
Update arg links with new path
Browse files Browse the repository at this point in the history
  • Loading branch information
ankandrew committed Apr 12, 2024
1 parent 766f4ff commit e3ba3e1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The idea is to use this after a plate object detector, since the OCR expects the

### Available Models

| Model Name | Time b=1<br/> (ms)<sup>[1]</sup> | Throughput <br/> (plates/second)<sup>[1]</sup> | Dataset | Accuracy<sup>[2]</sup> | Dataset |
|:----------------------------:|:--------------------------------:|:----------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------:|:----------------------:|:---------------------------------:|
| argentinian-plates-cnn-model | 2.0964 | 477 | [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_dataset.zip) | 94.05% | Non-synthetic, plates up to 2020. |
| Model Name | Time b=1<br/> (ms)<sup>[1]</sup> | Throughput <br/> (plates/second)<sup>[1]</sup> | Dataset | Accuracy<sup>[2]</sup> | Dataset |
|:----------------------------:|:--------------------------------:|:----------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------:|:----------------------:|:---------------------------------:|
| argentinian-plates-cnn-model | 2.0964 | 477 | [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_dataset.zip) | 94.05% | Non-synthetic, plates up to 2020. |

_<sup>[1]</sup> Inference on Mac M1 chip using CPUExecutionProvider. Utilizing CoreMLExecutionProvider accelerates speed
by 5x._
Expand Down Expand Up @@ -62,9 +62,9 @@ _<sup>[2]</sup> Accuracy is what we refer as plate_acc. See metrics section._

```shell
pip install fast-plate-ocr[train]
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_cnn_ocr_config.yaml
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_cnn_ocr.keras
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_benchmark.zip
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_cnn_ocr_config.yaml
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_cnn_ocr.keras
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_benchmark.zip
unzip arg_plate_benchmark.zip
fast_plate_ocr valid \
-m arg_cnn_ocr.keras \
Expand Down Expand Up @@ -157,7 +157,7 @@ To train the model you will need:
img_width: 140
```
2. A labeled dataset,
see [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_dataset.zip)
see [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_dataset.zip)
for the expected data format.
3. Run train script:
```shell
Expand Down
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ The idea is to use this after a plate object detector, since the OCR expects the

We currently have the following available models:

| Model Name | Time b=1<br/> (ms)<sup>[1]</sup> | Throughput <br/> (plates/second)<sup>[1]</sup> | Dataset | Accuracy<sup>[2]</sup> | Dataset |
|:------------------------------:|:--------------------------------:|:----------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------:|:----------------------:|:---------------------------------:|
| `argentinian-plates-cnn-model` | 2.0964 | 477 | [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_dataset.zip) | 94.05% | Non-synthetic, plates up to 2020. |
| Model Name | Time b=1<br/> (ms)<sup>[1]</sup> | Throughput <br/> (plates/second)<sup>[1]</sup> | Dataset | Accuracy<sup>[2]</sup> | Dataset |
|:------------------------------:|:--------------------------------:|:----------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------:|:----------------------:|:---------------------------------:|
| `argentinian-plates-cnn-model` | 2.0964 | 477 | [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_dataset.zip) | 94.05% | Non-synthetic, plates up to 2020. |

_<sup>[1]</sup> Inference on Mac M1 chip using CPUExecutionProvider. Utilizing CoreMLExecutionProvider accelerates speed
by 5x._
Expand Down Expand Up @@ -51,9 +51,9 @@ Calculate Model accuracy:

```shell
pip install fast-plate-ocr[train]
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_cnn_ocr_config.yaml
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_cnn_ocr.keras
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_benchmark.zip
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_cnn_ocr_config.yaml
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_cnn_ocr.keras
curl -LO https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_benchmark.zip
unzip arg_plate_benchmark.zip
fast_plate_ocr valid \
-m arg_cnn_ocr.keras \
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To train the model you will need:
img_width: 140
```
2. A labeled dataset,
see [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/v1.0/arg_plate_dataset.zip)
see [arg_plate_dataset.zip](https://github.com/ankandrew/fast-plate-ocr/releases/download/arg-plates/arg_plate_dataset.zip)
for the expected data format.
3. Run train script:
```shell
Expand Down
4 changes: 2 additions & 2 deletions fast_plate_ocr/inference/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

AVAILABLE_ONNX_MODELS: dict[str, tuple[str, str]] = {
"argentinian-plates-cnn-model": (
f"{BASE_URL}/v1.0/arg_cnn_ocr.onnx",
f"{BASE_URL}/v1.0/arg_cnn_ocr_config.yaml",
f"{BASE_URL}/arg-plates/arg_cnn_ocr.onnx",
f"{BASE_URL}/arg-plates/arg_cnn_ocr_config.yaml",
)
}
"""Available ONNX models for doing inference."""
Expand Down

0 comments on commit e3ba3e1

Please sign in to comment.