Installation
It is highly recomended to create and use a new environment to install the plugin and its dependencies.
You can use mamba or conda to manage you environments but it's not necessary and you can use python venv as well.
Setup
We provided install.sh for Linux & Mac OS users, and install.bat for Windows users.
First you need to clone the repo:
Step by Step
-
Create a new environment:
-
Activate the environment:
-
Install
This will install the appropriate PyTorch binaries without user intervention by automatically identifying compatible CUDA versions from the local setup.torchandtorchvision:
You can follow the instruction from here. But we can also uselight-the-torchpackage: -
Installing all other dependencies:
This will install all dependencies includingnapari,segment-anythingandsam-2. -
Finally, install the plugin:
Requirements
python>=3.10numpy<2.2pytorch>=2.5.1torchvision>=0.20.1timmsegment-anythingsam-2opencv-pythonscikit-learnscikit-imagescipymatplotlibpyqtmagicguiqtpynaparih5pypynrrdpooch
There is also a pypi package available that you can install FF using pip:
Note
Before install featureforest using pip you need to install segment-anything and sam-2 manually.
For detailed napari installation see here.