Windows
Requirement:
Tutorial:
Install Miniconda
(tested on python 3.9,
Windows
Requirement:
Tutorial:
Install Miniconda
(tested on python 3.9, version 23.1.0, Miniconda3-py39_23.1.0-1-Windows-x86_64.exe)
https://docs.conda.io/en/latest/miniconda.html
Archive of miniconda releases: https://repo.anaconda.com/miniconda/
If you have an admin account, you can install Python for all users, otherwise it is possible to install Python only for the current user.
With Admin rights:
Example of the installation directory: D:\Python\Miniconda39\
Optional note:
If installation was done for All Users, change permission of Miniconda's envs directory (e.g. d:\Python\Miniconda39\envs\) or the whole Miniconda39 directory to be accessible for all users.
This makes things a bit more organized, otherwise the python environment will be created in C:\Users\[USERNAME]\.conda\envs\
Without admin rights:
Example of the installation directory: C:\Users\[USERNAME]\AppData\Local\miniconda39\
Download segment-anything-model from:
- forked distibution tested with MIB
Unzip "segment-anything-main.zip", for example to d:\Python\Examples\segment-anything\
PyTorch Build: Stable (2.4.1)
Your OS: Windows
Package: Pip
Language: Python
Compute Platform: CUDA 11.8
Linux
Requirements:
Linux
Requirements:
Tutorial:
>> wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-2-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
>> bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
>> rm -rf ~/miniconda3/miniconda.sh
note:SAM requires python>=3.8, as well as pytorch>=1.7 and torchvision>=0.8;
SAM installation was tested with Pytorch 1.10.0 and CUDA version 11.1, the newer version may not be compatible.
The list of Pytorch installation option is available from https://pytorch.org/get-started/locally
(sam4mib)>> pip3 install opencv-python matplotlib onnxruntime onnx
(sam4mib)>> pip3 install pycocotools
Note:
Segment-anything will be installed to "~/miniconda3/envs/sam4mib/lib/python3.9/site-packages"
MIB configuration steps are similar to the SAM installation under Windows with the only difference in paths.
You can optionally test installation of SAM and sam4mib environment.
If you do not need mib4sam environment, you can follow the following steps to uninstall it from your system.
Mac
Requirements:
Mac
Requirements:
Tutorial:
>> wget https://repo.anaconda.com/miniconda/”corresponding link”
>> bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
>> rm -rf ~/miniconda3/miniconda.sh
Note:
Segment-anything will be installed to "miniconda3/envs/sam4mib/lib/python3.9/site-packages"
PyTorch Build: Stable (2.4.1)
Your OS: Mac
Package: Pip
Language: Python
Compute Platform: Default
Applications/miniconda3/envs/sam4mib/bin/python3
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.