Updated requirements and README
Browse files- README.md +20 -0
- requirements.txt +112 -17
README.md
CHANGED
|
@@ -17,6 +17,26 @@ Official PyTorch Implementation of the <a href="https://github.com/CASIA-IVA-Lab
|
|
| 17 |
The **Fast Segment Anything Model(FastSAM)** is a CNN Segment Anything Model trained by only 2% of the SA-1B dataset published by SAM authors. The FastSAM achieve a comparable performance with
|
| 18 |
the SAM method at **50× higher run-time speed**.
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## License
|
| 22 |
|
|
|
|
| 17 |
The **Fast Segment Anything Model(FastSAM)** is a CNN Segment Anything Model trained by only 2% of the SA-1B dataset published by SAM authors. The FastSAM achieve a comparable performance with
|
| 18 |
the SAM method at **50× higher run-time speed**.
|
| 19 |
|
| 20 |
+
## Local Setup (Anaconda Environment Recommended)
|
| 21 |
+
|
| 22 |
+
* Create a new conda environment
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
conda create -n fastsam python=3.11
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
* Install PyTorch 2.5.0 with CUDA 12.4
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
conda install pytorch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 pytorch-cuda=12.4 -c pytorch -c nvidia
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
* Install rest of the requirements
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
pip install -r requirements.txt
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
|
| 41 |
## License
|
| 42 |
|
requirements.txt
CHANGED
|
@@ -1,20 +1,115 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
git+https://github.com/openai/CLIP.git
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
ultralytics==8.0.121
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
|
|
|
| 1 |
+
aiofiles==23.2.1
|
| 2 |
+
aiohappyeyeballs==2.4.3
|
| 3 |
+
aiohttp==3.10.10
|
| 4 |
+
aiosignal==1.3.1
|
| 5 |
+
altair==5.4.1
|
| 6 |
+
annotated-types==0.7.0
|
| 7 |
+
anyio==4.6.2.post1
|
| 8 |
+
async-timeout==4.0.3
|
| 9 |
+
attrs==24.2.0
|
| 10 |
+
Authlib==1.3.2
|
| 11 |
+
certifi==2024.8.30
|
| 12 |
+
cffi==1.17.1
|
| 13 |
+
charset-normalizer==3.4.0
|
| 14 |
+
click==8.0.4
|
| 15 |
git+https://github.com/openai/CLIP.git
|
| 16 |
+
cryptography==43.0.3
|
| 17 |
+
cycler==0.12.1
|
| 18 |
+
datasets==3.0.2
|
| 19 |
+
dill==0.3.8
|
| 20 |
+
exceptiongroup==1.2.2
|
| 21 |
+
fastapi==0.112.4
|
| 22 |
+
ffmpy==0.4.0
|
| 23 |
+
filelock==3.16.1
|
| 24 |
+
frozenlist==1.5.0
|
| 25 |
+
fsspec==2024.9.0
|
| 26 |
+
ftfy==6.3.0
|
| 27 |
+
gradio==4.36.1
|
| 28 |
+
gradio_client==1.0.1
|
| 29 |
+
h11==0.14.0
|
| 30 |
+
hf_transfer==0.1.8
|
| 31 |
+
httpcore==1.0.6
|
| 32 |
+
httpx==0.27.2
|
| 33 |
+
huggingface-hub==0.26.1
|
| 34 |
+
idna==3.10
|
| 35 |
+
importlib_resources==6.4.5
|
| 36 |
+
itsdangerous==2.2.0
|
| 37 |
+
Jinja2==3.1.4
|
| 38 |
+
jsonschema==4.23.0
|
| 39 |
+
jsonschema-specifications==2024.10.1
|
| 40 |
+
kiwisolver==1.4.7
|
| 41 |
+
markdown-it-py==3.0.0
|
| 42 |
+
MarkupSafe==2.1.5
|
| 43 |
+
matplotlib==3.2.2
|
| 44 |
+
mdurl==0.1.2
|
| 45 |
+
mpmath==1.3.0
|
| 46 |
+
multidict==6.1.0
|
| 47 |
+
multiprocess==0.70.16
|
| 48 |
+
narwhals==1.10.0
|
| 49 |
+
networkx==3.4.2
|
| 50 |
+
numpy==2.1.2
|
| 51 |
+
nvidia-cublas-cu12==12.4.5.8
|
| 52 |
+
nvidia-cuda-cupti-cu12==12.4.127
|
| 53 |
+
nvidia-cuda-nvrtc-cu12==12.4.127
|
| 54 |
+
nvidia-cuda-runtime-cu12==12.4.127
|
| 55 |
+
nvidia-cudnn-cu12==9.1.0.70
|
| 56 |
+
nvidia-cufft-cu12==11.2.1.3
|
| 57 |
+
nvidia-curand-cu12==10.3.5.147
|
| 58 |
+
nvidia-cusolver-cu12==11.6.1.9
|
| 59 |
+
nvidia-cusparse-cu12==12.3.1.170
|
| 60 |
+
nvidia-nccl-cu12==2.21.5
|
| 61 |
+
nvidia-nvjitlink-cu12==12.4.127
|
| 62 |
+
nvidia-nvtx-cu12==12.4.127
|
| 63 |
+
opencv-python==4.10.0.84
|
| 64 |
+
orjson==3.10.10
|
| 65 |
+
packaging==24.1
|
| 66 |
+
pandas==2.2.3
|
| 67 |
+
pillow==10.4.0
|
| 68 |
+
pip==22.3.1
|
| 69 |
+
propcache==0.2.0
|
| 70 |
+
protobuf==3.20.3
|
| 71 |
+
psutil==5.9.8
|
| 72 |
+
pyarrow==17.0.0
|
| 73 |
+
pycparser==2.22
|
| 74 |
+
pydantic==2.9.2
|
| 75 |
+
pydantic_core==2.23.4
|
| 76 |
+
pydub==0.25.1
|
| 77 |
+
Pygments==2.18.0
|
| 78 |
+
pyparsing==3.2.0
|
| 79 |
+
python-dateutil==2.9.0.post0
|
| 80 |
+
python-multipart==0.0.12
|
| 81 |
+
pytz==2024.2
|
| 82 |
+
PyYAML==6.0.2
|
| 83 |
+
referencing==0.35.1
|
| 84 |
+
regex==2024.9.11
|
| 85 |
+
requests==2.32.3
|
| 86 |
+
rich==13.9.3
|
| 87 |
+
rpds-py==0.20.0
|
| 88 |
+
ruff==0.7.0
|
| 89 |
+
scipy==1.14.1
|
| 90 |
+
seaborn==0.12.2
|
| 91 |
+
semantic-version==2.10.0
|
| 92 |
+
setuptools==65.5.1
|
| 93 |
+
shellingham==1.5.4
|
| 94 |
+
six==1.16.0
|
| 95 |
+
sniffio==1.3.1
|
| 96 |
+
spaces==0.30.4
|
| 97 |
+
starlette==0.38.6
|
| 98 |
+
sympy==1.13.1
|
| 99 |
+
tomlkit==0.12.0
|
| 100 |
+
torch==2.5.0
|
| 101 |
+
torchvision==0.20.0
|
| 102 |
+
tqdm==4.66.5
|
| 103 |
+
triton==3.1.0
|
| 104 |
+
typer==0.12.5
|
| 105 |
+
typing_extensions==4.12.2
|
| 106 |
+
tzdata==2024.2
|
| 107 |
ultralytics==8.0.121
|
| 108 |
+
urllib3==2.2.3
|
| 109 |
+
uvicorn==0.32.0
|
| 110 |
+
wcwidth==0.2.13
|
| 111 |
+
websockets==11.0.3
|
| 112 |
+
wheel==0.44.0
|
| 113 |
+
xxhash==3.5.0
|
| 114 |
+
yarl==1.16.0
|
| 115 |
|