Plugins for phenopype
Project description
phenopype-plugins
AI-plugins for phenopype - currently under development.
Currently, three plugin functions are available - all of them do image segmentation using pre-trained models:
- predict_fastSAM (Fast Segment Anything: https://docs.ultralytics.com/models/fast-sam/) - needs
ultralytics
- predict_torch (Torchvision segmentation models: https://pytorch.org/vision/main/models.html) - needs
torch
- predict_keras (Keras segmentation models https://keras.io/examples/vision/oxford_pets_image_segmentation/) - needs
keras
Installation
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:
pip 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==4.5.2.54 --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
File details
Details for the file phenopype_plugins-0.1.3.tar.gz
.
File metadata
- Download URL: phenopype_plugins-0.1.3.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9a2f5db998612b0ac67193b7cdcd38ce4b7fac9b029917bd8a429835fa6c9d |
|
MD5 | f0a9deef55c3e33925b4bedd22ff281c |
|
BLAKE2b-256 | 84af9b035ac06c73a48f7b110533d3a7143e8bacf3a196769396d57557ee59b3 |
File details
Details for the file phenopype_plugins-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: phenopype_plugins-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 200536677517d9b96d23a09c61c967867747bb905e801022f5ed1e6d287cdd30 |
|
MD5 | 252acddb753b1313ef497d63e69733ff |
|
BLAKE2b-256 | 2bf16ae467bf1fbd2bdd346cb11299d1efddb57195894a6a38319d2d1d47e670 |