Skip to content
Snippets Groups Projects
Commit 3d4f5715 authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Manon Blanco
Browse files

Use line image extractor from PyPi instead of submodule

parent 554ed98a
No related branches found
No related tags found
1 merge request!277Use line image extractor from PyPi instead of submodule
[submodule "line_image_extractor"]
path = teklia_line_image_extractor
url = ../line_image_extractor.git
......@@ -9,6 +9,5 @@ WORKDIR /src
# Install DAN as a package
COPY dan dan
COPY teklia_line_image_extractor teklia_line_image_extractor
COPY requirements.txt *-requirements.txt setup.py VERSION README.md ./
RUN pip install . --no-cache-dir
......@@ -2,26 +2,6 @@
[![Python >= 3.10](https://img.shields.io/badge/Python-%3E%3D3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
## Documentation
To use DAN in your own environment, you need to first clone with its submodules via:
```shell
git clone --recurse-submodules git@gitlab.teklia.com:atr/dan.git
```
If you forgot the `--recurse-submodules`, you can initialize the submodule using:
```shell
git submodule update --init
```
Then you can install it via pip:
```shell
pip install -e .
```
For more details about this package, make sure to see the documentation available at <https://atr.pages.teklia.com/dan/>.
## Development
......@@ -76,7 +56,7 @@ To apply DAN to an image, one needs to first add a few imports and to load an im
```python
import cv2
from dan.ocr.predict import DAN
from dan.ocr.predict.prediction import DAN
image = cv2.cvtColor(cv2.imread(IMAGE_PATH), cv2.COLOR_BGR2RGB)
```
......@@ -110,10 +90,6 @@ See the [dedicated section](https://atr.pages.teklia.com/dan/get_started/trainin
See the [dedicated section](https://atr.pages.teklia.com/dan/usage/datasets/extract/) on the official DAN documentation.
### Dataset formatting
See the [dedicated section](https://atr.pages.teklia.com/dan/usage/datasets/format/) on the official DAN documentation.
### Model training
See the [dedicated section](https://atr.pages.teklia.com/dan/usage/train/) on the official DAN documentation.
......
-e ./teklia_line_image_extractor
albumentations==1.3.1
arkindex-export==0.1.7
boto3==1.26.124
......@@ -10,6 +9,7 @@ numpy==1.24.3
prettytable==3.8.0
PyYAML==6.0
scipy==1.10.1
teklia-line-image-extractor==0.2.8rc4
tenacity==8.2.3
tensorboard==2.12.2
torch==2.0.0
......
Subproject commit 3c0ed7cfca9d16110bb44620fecf5e4e71e218a2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment