Automatically annotate dijkprofiles in qDAMEdit format
Project description
Version: 0.1.2
dijkprofile-annotator description
Automatically annotate drijkprofile is qDAMEdit format
Author: Jonathan Gerbscheid
Email: j.gerbscheid@hetwaterschapshuis.nl
Online Tool
An web version of this tool is available at:
https://huggingface.co/spaces/jgerbscheid/dpa-example
The availability of this tool is not currently guaranteed and it's location might change in the future to a different adress.
Install
Warning
This package will install pytorch to run the neural network for prediction. If you wish to use your own pytorch installation or modify the code in any way I recommend cloning the repository and installing locally:
https://gitlab.com/hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator/-/tree/master/
I recommended installing the package in a fresh conda environment to avoid conflicts with already other installed packages.
Install directly from PiPI with pip
pip install dijkprofile-annotator
Installing locally:
git clone git@gitlab.com:hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator.git
cd dijkprofile-annotator
pip install -e .
Usage
basic
After installation you can use the command line interface to annotate a single file, call the annotator with the to be labeled file and desired output file:
dijkprofile_annotator -i inputfile -o target_outputfile
It also possible to use the web interface, the following command will start a gradio app that can be accessed in a browser:
dijkprofile_annotator-gui
You can also import the module in a python script and call it from there:
import dijkprofile_annotator
input_filepath = "/home/documents/surfacelines.csv"
target_filepath = "/home/documents/predicted_characteristpoints.csv"
dijkprofile_annotator.annotate(input_filepath,
target_filepath)
Detailed Exampes
See the example notebooks at:
https://gitlab.com/hetwaterschapshuis/kenniscentrum/tooling/dijkprofile-annotator/-/tree/master/notebooks
for examples on how to use the package.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dijkprofile_annotator-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8569a0253186e2585b8a490957e415f56820325a773892608b852e2c4c59b35 |
|
MD5 | 6b783b088179a2fa69ef6a67eeb5dae0 |
|
BLAKE2b-256 | 8829bf0122ede7553e884d9c2e841e96b5366be7a62751dcf67e5cc44792be42 |
Hashes for dijkprofile_annotator-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb928f60a361b2b6360a22075e46a5cbcbd7dbde75f77f0b5c1d77a4fa0f76f4 |
|
MD5 | fcd4a4ea11f699cf985c42440794f99a |
|
BLAKE2b-256 | a03544929f839a48f61ef74e615e12f1027a122c0f37ceb8c32d26d0309382aa |