Update requirements.txt
Browse files- requirements.txt +17 -45
requirements.txt
CHANGED
|
@@ -24,23 +24,17 @@ python-multipart>=0.0.6,<1.0
|
|
| 24 |
# ============================================================================
|
| 25 |
# DEEP LEARNING & AI MODELS (Python 3.10 + CUDA 12.1)
|
| 26 |
# ============================================================================
|
| 27 |
-
# Latest stable PyTorch for best performance
|
| 28 |
torch==2.5.1
|
| 29 |
torchvision==0.20.1
|
| 30 |
torchaudio==2.5.1
|
| 31 |
-
|
| 32 |
-
# Hugging Face ecosystem - Latest stable for SAM2 support
|
| 33 |
transformers>=4.45.0,<5.0
|
| 34 |
huggingface_hub>=0.25.0,<1.0
|
| 35 |
accelerate>=0.20.3,<1.0
|
| 36 |
safetensors==0.4.3
|
| 37 |
tokenizers>=0.19.0,<1.0
|
| 38 |
datasets>=2.14.0,<3.0
|
| 39 |
-
|
| 40 |
-
# Model utilities
|
| 41 |
einops==0.8.0
|
| 42 |
timm>=0.9.16,<1.0
|
| 43 |
-
# Loosened to allow a version compatible with torch 2.5.1
|
| 44 |
xformers>=0.0.28,<0.1.0
|
| 45 |
|
| 46 |
# ============================================================================
|
|
@@ -48,17 +42,13 @@ xformers>=0.0.28,<0.1.0
|
|
| 48 |
# ============================================================================
|
| 49 |
opencv-python-headless==4.10.0.84
|
| 50 |
opencv-contrib-python-headless==4.10.0.84
|
| 51 |
-
|
| 52 |
-
# Video processing
|
| 53 |
moviepy>=1.0.3,<2.0
|
| 54 |
-
#
|
| 55 |
-
imageio>=2.
|
| 56 |
imageio-ffmpeg>=0.4.9,<1.0
|
| 57 |
ffmpeg-python>=0.2.0,<1.0
|
| 58 |
-
av>=11.0.0,<12.0
|
| 59 |
-
|
| 60 |
-
# Image processing
|
| 61 |
-
scikit-image>=0.22.0,<1.0
|
| 62 |
albumentations>=1.3.1,<2.0
|
| 63 |
|
| 64 |
# ============================================================================
|
|
@@ -84,19 +74,19 @@ typer>=0.9.0,<1.0
|
|
| 84 |
# ============================================================================
|
| 85 |
# PERFORMANCE & OPTIMIZATION
|
| 86 |
# ============================================================================
|
| 87 |
-
numba>=0.58.0,<1.0
|
| 88 |
-
joblib>=1.3.2,<2.0
|
| 89 |
diskcache>=5.6.3,<6.0
|
| 90 |
psutil>=5.9.5,<6.0
|
| 91 |
-
gputil>=1.4.0,<2.0
|
| 92 |
-
pynvml>=11.5.0,<12.0
|
| 93 |
|
| 94 |
# ============================================================================
|
| 95 |
# LOGGING & MONITORING
|
| 96 |
# ============================================================================
|
| 97 |
loguru>=0.7.2,<1.0
|
| 98 |
tensorboard>=2.15.0,<3.0
|
| 99 |
-
wandb>=0.16.0,<1.0
|
| 100 |
prometheus-client>=0.19.0,<1.0
|
| 101 |
|
| 102 |
# ============================================================================
|
|
@@ -107,16 +97,10 @@ marshmallow>=3.20.0,<4.0
|
|
| 107 |
cerberus>=1.3.5,<2.0
|
| 108 |
|
| 109 |
# ============================================================================
|
| 110 |
-
# MATANYONE
|
| 111 |
# ============================================================================
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
hickle>=5.0.2
|
| 115 |
-
cchardet>=2.1.7
|
| 116 |
-
gitpython>=3.1.40,<4.0
|
| 117 |
-
netifaces>=0.11.0
|
| 118 |
-
pycocotools>=2.0.7
|
| 119 |
-
protobuf>=3.20.3,<4.0 # Specific range for compatibility
|
| 120 |
|
| 121 |
# ============================================================================
|
| 122 |
# API & ASYNC SUPPORT
|
|
@@ -125,11 +109,11 @@ aiohttp>=3.9.0,<4.0
|
|
| 125 |
aiofiles>=23.2.0,<24.0
|
| 126 |
httpx>=0.25.0,<1.0
|
| 127 |
websockets>=12.0,<13.0
|
| 128 |
-
redis>=5.0.0,<6.0
|
| 129 |
-
celery>=5.3.0,<6.0
|
| 130 |
|
| 131 |
# ============================================================================
|
| 132 |
-
# TESTING
|
| 133 |
# ============================================================================
|
| 134 |
pytest>=7.4.3,<8.0
|
| 135 |
pytest-cov>=4.1.0,<5.0
|
|
@@ -137,10 +121,10 @@ pytest-asyncio>=0.21.1,<1.0
|
|
| 137 |
pytest-benchmark>=4.0.0,<5.0
|
| 138 |
|
| 139 |
# ============================================================================
|
| 140 |
-
# CODE QUALITY
|
| 141 |
# ============================================================================
|
| 142 |
black>=23.11.0,<24.0
|
| 143 |
-
ruff>=0.1.6,<1.0
|
| 144 |
mypy>=1.7.0,<2.0
|
| 145 |
pre-commit>=3.5.0,<4.0
|
| 146 |
|
|
@@ -150,15 +134,3 @@ pre-commit>=3.5.0,<4.0
|
|
| 150 |
gunicorn>=21.2.0,<22.0
|
| 151 |
supervisor>=4.2.5,<5.0
|
| 152 |
python-crontab>=3.0.0,<4.0
|
| 153 |
-
|
| 154 |
-
# ============================================================================
|
| 155 |
-
# GIT DEPENDENCIES (Model Repositories)
|
| 156 |
-
# ============================================================================
|
| 157 |
-
# SAM2 - Latest stable
|
| 158 |
-
git+https://github.com/facebookresearch/segment-anything-2.git
|
| 159 |
-
|
| 160 |
-
# MatAnyone - Specific stable commit
|
| 161 |
-
git+https://github.com/pq-yang/MatAnyone.git@2234ce5cdc487749515518bd035b5e18bccea3da
|
| 162 |
-
|
| 163 |
-
# Thin Plate Spline (if needed for MatAnyone)
|
| 164 |
-
# git+https://github.com/cheind/py-thin-plate-spline
|
|
|
|
| 24 |
# ============================================================================
|
| 25 |
# DEEP LEARNING & AI MODELS (Python 3.10 + CUDA 12.1)
|
| 26 |
# ============================================================================
|
|
|
|
| 27 |
torch==2.5.1
|
| 28 |
torchvision==0.20.1
|
| 29 |
torchaudio==2.5.1
|
|
|
|
|
|
|
| 30 |
transformers>=4.45.0,<5.0
|
| 31 |
huggingface_hub>=0.25.0,<1.0
|
| 32 |
accelerate>=0.20.3,<1.0
|
| 33 |
safetensors==0.4.3
|
| 34 |
tokenizers>=0.19.0,<1.0
|
| 35 |
datasets>=2.14.0,<3.0
|
|
|
|
|
|
|
| 36 |
einops==0.8.0
|
| 37 |
timm>=0.9.16,<1.0
|
|
|
|
| 38 |
xformers>=0.0.28,<0.1.0
|
| 39 |
|
| 40 |
# ============================================================================
|
|
|
|
| 42 |
# ============================================================================
|
| 43 |
opencv-python-headless==4.10.0.84
|
| 44 |
opencv-contrib-python-headless==4.10.0.84
|
|
|
|
|
|
|
| 45 |
moviepy>=1.0.3,<2.0
|
| 46 |
+
# imageio must satisfy scikit-image:
|
| 47 |
+
imageio>=2.33.0,<2.35.0
|
| 48 |
imageio-ffmpeg>=0.4.9,<1.0
|
| 49 |
ffmpeg-python>=0.2.0,<1.0
|
| 50 |
+
av>=11.0.0,<12.0
|
| 51 |
+
scikit-image>=0.33.0,<1.0
|
|
|
|
|
|
|
| 52 |
albumentations>=1.3.1,<2.0
|
| 53 |
|
| 54 |
# ============================================================================
|
|
|
|
| 74 |
# ============================================================================
|
| 75 |
# PERFORMANCE & OPTIMIZATION
|
| 76 |
# ============================================================================
|
| 77 |
+
numba>=0.58.0,<1.0
|
| 78 |
+
joblib>=1.3.2,<2.0
|
| 79 |
diskcache>=5.6.3,<6.0
|
| 80 |
psutil>=5.9.5,<6.0
|
| 81 |
+
gputil>=1.4.0,<2.0
|
| 82 |
+
pynvml>=11.5.0,<12.0
|
| 83 |
|
| 84 |
# ============================================================================
|
| 85 |
# LOGGING & MONITORING
|
| 86 |
# ============================================================================
|
| 87 |
loguru>=0.7.2,<1.0
|
| 88 |
tensorboard>=2.15.0,<3.0
|
| 89 |
+
wandb>=0.16.0,<1.0
|
| 90 |
prometheus-client>=0.19.0,<1.0
|
| 91 |
|
| 92 |
# ============================================================================
|
|
|
|
| 97 |
cerberus>=1.3.5,<2.0
|
| 98 |
|
| 99 |
# ============================================================================
|
| 100 |
+
# MATANYONE (install separately, no-deps)
|
| 101 |
# ============================================================================
|
| 102 |
+
# We'll install MatAnyone without dependencies so it doesn’t pull imageio==2.25.0.
|
| 103 |
+
# See Dockerfile step below.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
# ============================================================================
|
| 106 |
# API & ASYNC SUPPORT
|
|
|
|
| 109 |
aiofiles>=23.2.0,<24.0
|
| 110 |
httpx>=0.25.0,<1.0
|
| 111 |
websockets>=12.0,<13.0
|
| 112 |
+
redis>=5.0.0,<6.0
|
| 113 |
+
celery>=5.3.0,<6.0
|
| 114 |
|
| 115 |
# ============================================================================
|
| 116 |
+
# TESTING
|
| 117 |
# ============================================================================
|
| 118 |
pytest>=7.4.3,<8.0
|
| 119 |
pytest-cov>=4.1.0,<5.0
|
|
|
|
| 121 |
pytest-benchmark>=4.0.0,<5.0
|
| 122 |
|
| 123 |
# ============================================================================
|
| 124 |
+
# CODE QUALITY
|
| 125 |
# ============================================================================
|
| 126 |
black>=23.11.0,<24.0
|
| 127 |
+
ruff>=0.1.6,<1.0
|
| 128 |
mypy>=1.7.0,<2.0
|
| 129 |
pre-commit>=3.5.0,<4.0
|
| 130 |
|
|
|
|
| 134 |
gunicorn>=21.2.0,<22.0
|
| 135 |
supervisor>=4.2.5,<5.0
|
| 136 |
python-crontab>=3.0.0,<4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|