Spaces:
Sleeping
Sleeping
deploy to huggingface spaces
Browse files
README.md
CHANGED
|
@@ -1,13 +1,35 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Bulgarian, Japanese and Indian patterns recognizer
|
| 2 |
+
|
| 3 |
+
## Setup Conda
|
| 4 |
+
```bash
|
| 5 |
+
conda create -n SIMVerify python=3.11
|
| 6 |
+
conda activate SIMVerify
|
| 7 |
+
```
|
| 8 |
+
## Installation
|
| 9 |
+
|
| 10 |
+
```bash
|
| 11 |
+
set HTTP_PROXY=http://proxy-us-austin.gemalto.com:8080
|
| 12 |
+
set HTTPS_PROXY=http://proxy-us-austin.gemalto.com:8080
|
| 13 |
+
pip install fastai fastbook scikit-image
|
| 14 |
+
pip install gradio==3.50
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Get Images
|
| 18 |
+
```bash
|
| 19 |
+
python get_data.py <target path> <images count> <one or more pattern kinds>
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
## Train the neural network
|
| 23 |
+
```bash
|
| 24 |
+
python train.py <images path> <epochs count>
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Predicting in colsole
|
| 28 |
+
```bash
|
| 29 |
+
python predict.py <image path>
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Running the UI on http://localhost
|
| 33 |
+
```bash
|
| 34 |
+
python app.py
|
| 35 |
+
```
|