AI and other plugins for phenopype
Project description
phenopype-plugins
AI-plugins for phenopype - still under early development.
Currently, plugins for three libraries are available:
ultralytics
- predict_yolo_det (object detection): https://docs.ultralytics.com/tasks/detect/ (fine tuned models only)
- predict_yolo_seg (segmentation): https://docs.ultralytics.com/tasks/segment/ (fine tuned models, and the SAM-family [SAM, SAM2, mobileSAM, FastSAM])
pytorch
- predict_torch_seg (Torchvision segmentation models: https://pytorch.org/vision/main/models.html)
keras
- predict_keras (Keras segmentation models https://keras.io/examples/vision/oxford_pets_image_segmentation/)
Installation
Prior to using the functions with phenopype you need to install the respective dependencies:
1. Install phenopype (see https://www.phenopype.org/docs/installation/phenopype/ for more details):
pip install phenopype
2. Install the plugins module:
pip install phenopype-plugins
3. Install the dependencies
Dependencies
If you have a GPU and the appropriate drivers install, make sure you install a fitting CUDA version first - e.g., v12.1:
mamba install -c nvidia cuda-toolkit==12.1
torch
1. With GPU support:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
2. Without GPU support:
pip install torch torchvision
keras
1. With GPU support:
pip install keras-gpu
-
Without GPU support:
pip install keras-gpu
ultralytics
1. Install Ultralytics BEFORE phenopype due to conflicting opencv-python (ultralytics) and opencv-contrib-python (phenopype) versions (see step 2 for alternatives):
pip install torch torchvision ## needed
pip install ultralytics
2. If you have already installed phenopype and can't or don't want to uninstall it, you can do the following:
pip install ultralytics
## force reinstall opencv-contrib-python
pip install opencv-contrib-python --force-reinstall
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phenopype_plugins-0.2.0.tar.gz.
File metadata
- Download URL: phenopype_plugins-0.2.0.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2a2f1d154761e9da3ccbbbf3ba287566e6fc7f5fb83d3f4b4fe8bbab122b99a
|
|
| MD5 |
0bc34e469d5bef04832bcaa8c782cf06
|
|
| BLAKE2b-256 |
975a0fff7f10952bf1624bc7e555a137336f46a0f06dd0fda3471b95d14b43ab
|
File details
Details for the file phenopype_plugins-0.2.0-py3-none-any.whl.
File metadata
- Download URL: phenopype_plugins-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e6efd0be6318d5087305ae0c716b88c64c0024506b6108b2486a2c7fe1c8fb
|
|
| MD5 |
22425f66d55f4d112fd1aba7ce1b4578
|
|
| BLAKE2b-256 |
3d3fa811dfd1e3b00fd9828dd1d2e761388fdf4cec10940a7a24b5a94ed5dc2d
|