说明
ccnet算法执行之后,每个图片输出三个文件
- detected_pts.txt json文件,标识了识别的标点数量和位置。
- result.tif 打上结果标点之后的,geotiff格式的原始图片。
- result.jpg 压缩之后便于web展示的图片。
run in python env
#安装本地环境 requirements.txt CCNet_3.8.env.*,
#项目中CCNet_3.8.env.* 是linux的,可能不适用于windows、macos
conda activate CCNet #或者使用本地环境
python main.py --algorithm ccnet --model-file test/ccnet/model/mouse_hole.pth --input-path test/ccnet/images/mouse --output test/ccnet/output
python main.py --algorithm yolo --model-file test/yolo/model/sheep_counting.pt --input-path test/yolo/images --output test/yolo/output
run in docker
docker run -ti --rm -v ./test:/test --entrypoint /bin/bash harbor.hzw.ruihudata.cn/cropmirror/counting_model:v0.7
conda activate CCNet
python counting/main.py --algorithm ccnet --model-file /test/ccnet/model/mouse_hole.pth --input-path /test/ccnet/images/mouse --output /test/ccnet/output
python counting/main.py --algorithm yolo --model-file /test/yolo/model/sheep_counting.pt --input-path /test/yolo/images --output /test/yolo/output
windows 10
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
conda install opencv
pip install opencv-contrib-python
pip install ultralytics
pip install scipy
#https://github.com/cgohlke/geospatial-wheels/releases/tag/v2024.2.18
Metadata
Release files for cropmirror-counting 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cropmirror_counting-0.0.3.tar.gz | 61.6 kB | Without provenance | Details for cropmirror_counting-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cropmirror_counting-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for cropmirror_counting-0.0.3-py3-none-any.whl |
Total release size: 129.5 kB
Release files / cropmirror_counting-0.0.3.tar.gz
| Download URL | cropmirror_counting-0.0.3.tar.gz |
|---|---|
| Size | 61.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71375268752214b860dd950b83e8ac00d2596112c2a4f81ecb7747d91bde4352
|
|
BLAKE2b-256 checksum How to use checksums |
ef94c488e1d8ac898dbed5823cb637451a85e4b14ed5f2ea7faaf2991ebd4290
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.7 Windows/10
|
Release files / cropmirror_counting-0.0.3-py3-none-any.whl
| Download URL | cropmirror_counting-0.0.3-py3-none-any.whl |
|---|---|
| Size | 67.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
294172c17b31768dad778f47dea550f6aaadc49cfdc0b8ac0eac621b171fc5e1
|
|
BLAKE2b-256 checksum How to use checksums |
fd5973c4cf26c5e2b729b26765f0d2e563cb94c3de91d795828f45139120a582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.7 Windows/10
|
Security for cropmirror-counting 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.