Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +14 -18
requirements.txt
CHANGED
|
@@ -1,27 +1,23 @@
|
|
| 1 |
-
#
|
| 2 |
-
#
|
| 3 |
|
| 4 |
-
#
|
|
|
|
|
|
|
|
|
|
| 5 |
gradio>=4.0.0
|
| 6 |
torch>=1.12.0
|
| 7 |
torchvision>=0.13.0
|
| 8 |
Pillow>=9.0.0
|
| 9 |
numpy>=1.21.0
|
| 10 |
requests>=2.25.0
|
| 11 |
-
opencv-python>=4.5.0
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
#
|
| 18 |
-
# Option 1 (Best Quality): BEN2
|
| 19 |
-
# git+https://github.com/PramaLLC/BEN2.git
|
| 20 |
-
#
|
| 21 |
-
# Option 2 (Good Fallback): rembg
|
| 22 |
-
# rembg
|
| 23 |
-
#
|
| 24 |
-
# Option 3 (Basic): Built-in OpenCV method (no extra install needed)
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
#
|
|
|
|
|
|
|
|
|
| 1 |
+
# Official InsPyReNet Requirements
|
| 2 |
+
# This will install the official implementation from the ACCV 2022 paper authors
|
| 3 |
|
| 4 |
+
# Official InsPyReNet package (contains the full model)
|
| 5 |
+
transparent-background
|
| 6 |
+
|
| 7 |
+
# Core dependencies
|
| 8 |
gradio>=4.0.0
|
| 9 |
torch>=1.12.0
|
| 10 |
torchvision>=0.13.0
|
| 11 |
Pillow>=9.0.0
|
| 12 |
numpy>=1.21.0
|
| 13 |
requests>=2.25.0
|
|
|
|
| 14 |
|
| 15 |
+
# Additional dependencies for the official model
|
| 16 |
+
opencv-python>=4.5.0
|
| 17 |
+
scipy>=1.7.0
|
| 18 |
+
matplotlib>=3.5.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
# For CUDA support (optional, will use CPU if not available)
|
| 21 |
+
# Uncomment the appropriate line based on your CUDA version:
|
| 22 |
+
# torch==2.1.0+cu118 torchvision==0.16.0+cu118 --index-url https://download.pytorch.org/whl/cu118
|
| 23 |
+
# torch==2.1.0+cu121 torchvision==0.16.0+cu121 --index-url https://download.pytorch.org/whl/cu121
|