Zeeshan13 commited on
Commit
01443ee
·
verified ·
1 Parent(s): 1fd5e8d

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -18
requirements.txt CHANGED
@@ -1,27 +1,23 @@
1
- # BEN2 Background Removal - Base Requirements
2
- # Install these first, then use the app to install BEN2 or rembg
3
 
4
- # Core dependencies - INSTALL THESE FIRST
 
 
 
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
- # Basic ML dependencies
14
- transformers>=4.21.0
15
-
16
- # The app will install ONE of these via the UI buttons:
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
- # Optional: CUDA support for faster processing
27
- # torch==2.1.0+cu118 torchvision==0.16.0+cu118 --index-url https://download.pytorch.org/whl/cu118
 
 
 
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