Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Merge requests
!147
Update doc to mentions development setup
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update doc to mentions development setup
add-development-infos
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Yoann Schneider
requested to merge
add-development-infos
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#75 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
dbc029b5
1 commit,
1 year ago
1 file
+
32
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.md
+
32
−
4
Options
@@ -2,16 +2,44 @@
## Documentation
For more details about this package, make sure to see the documentation available at https://teklia.gitlab.io/atr/dan/.
## Installation
To use DAN in your own scripts, install it using pip:
```
console
pip install -e .
```
For more details about this package, make sure to see the documentation available at https://teklia.gitlab.io/atr/dan/.
## Development
For development and tests purpose it may be useful to install the project as a editable package with pip.
*
Use a virtualenv (e.g. with virtualenvwrapper
`mkvirtualenv -a . dan`
)
*
Install
`dan`
as a package (e.g.
`pip install -e .`
)
### Linter
Code syntax is analyzed before submitting the code.
\
To run the linter tools suite you may use pre-commit.
```
shell
pip
install
pre-commit
pre-commit run
-a
```
### Run tests
Tests are executed with
`tox`
using
[
pytest
](
https://pytest.org
)
.
To install
`tox`
,
```
shell
pip
install
tox
tox
```
To reload the test virtual environment you can use
`tox -r`
Run a single test module:
`tox -- <test_path>`
Run a single test:
`tox -- <test_path>::<test_function>`
The tests use a large file stored via
[
Git-LFS
](
https://docs.gitlab.com/ee/topics/git/lfs/
)
. Make sure to run
`git-lfs pull`
before running them.
## Inference
To apply DAN to an image, one needs to first add a few imports and to load an image. Note that the image should be in RGB.
Loading