MogensR commited on
Commit
4176db7
·
1 Parent(s): e6a1f2d

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +24 -35
requirements.txt CHANGED
@@ -9,52 +9,41 @@ imageio==2.25.0
9
  imageio-ffmpeg==0.4.8
10
  ffmpeg-python==0.2.0
11
  moviepy==1.0.3
 
12
 
13
- # Build tools - Kommenteret ud, HF Spaces håndterer dette
14
- # hatchling>=1.18.0
15
- # build>=0.10.0
16
- # wheel>=0.40.0
17
- # setuptools>=68.0.0
18
 
19
- # Additional dependencies
20
- # hydra-core>=1.3.2 # Ikke brugt i BackgroundFX
21
- # hickle>=5.0 # Ikke brugt i BackgroundFX
22
- # gdown>=4.7.1 # Ikke brugt i BackgroundFX
23
- easydict
24
- av>=0.5.2
25
- # cython>=0.29 # Kan give build fejl
26
- # gitpython>=3.1 # Ikke brugt i BackgroundFX
27
 
28
  # Image Processing & Utilities
29
  scipy>=1.7.0
30
  scikit-image>=0.19.0
31
  matplotlib>=3.5.0
32
  tqdm>=4.64.0
33
- psutil>=5.9.0
34
-
35
- # PyTorch with CUDA support
36
- --extra-index-url https://download.pytorch.org/whl/cu118
37
- torch==2.1.0+cu118
38
- torchvision==0.16.0+cu118
39
- # torchaudio==2.1.0+cu118 # Moviepy håndterer audio
40
 
41
- # Background Removal - OPDATERET til GPU version
42
- rembg[gpu]==2.0.50 # Specificeret GPU version
43
- onnxruntime-gpu==1.16.3 # TILFØJET for GPU support
44
- pymatting==1.1.8 # TILFØJET for bedre kant-kvalitet
45
 
46
- # API & Networking
47
  requests>=2.31.0
48
- # aiohttp>=3.8.0 # Requests er nok
49
-
50
- # Performance monitoring
51
- # py-cpuinfo>=9.0.0 # psutil dækker dette
52
- # GPUtil>=1.4.0 # nvidia-ml-py3 dækker dette
53
- nvidia-ml-py3>=7.352.0
54
 
55
- # Git packages
56
  git+https://github.com/pq-yang/MatAnyone.git
57
- # thinplate @ git+https://github.com/cheind/py-thin-plate-spline # Kan fejle ved build
58
 
59
- # Optional: SAM2 for advanced segmentation
60
- # git+https://github.com/facebookresearch/segment-anything-2.git
 
 
9
  imageio-ffmpeg==0.4.8
10
  ffmpeg-python==0.2.0
11
  moviepy==1.0.3
12
+ av>=0.5.2
13
 
14
+ # KRITISK: PyTorch med CUDA 11.8 for L4 GPU
15
+ # VIGTIGT: Denne rækkefølge SKAL overholdes!
16
+ --extra-index-url https://download.pytorch.org/whl/cu118
17
+ torch==2.1.0+cu118
18
+ torchvision==0.16.0+cu118
19
 
20
+ # KRITISK: ONNX Runtime GPU - SKAL være GPU version!
21
+ onnxruntime-gpu==1.16.3
22
+
23
+ # KRITISK: Rembg med GPU support - SKAL have [gpu] tag!
24
+ rembg[gpu]==2.0.50
25
+
26
+ # Advanced matting for bedre kvalitet
27
+ pymatting==1.1.8
28
 
29
  # Image Processing & Utilities
30
  scipy>=1.7.0
31
  scikit-image>=0.19.0
32
  matplotlib>=3.5.0
33
  tqdm>=4.64.0
34
+ easydict
 
 
 
 
 
 
35
 
36
+ # System monitoring - VIGTIGT for GPU monitoring
37
+ psutil>=5.9.0
38
+ nvidia-ml-py3>=7.352.0
39
+ pynvml>=11.5.0 # TILFØJET for bedre GPU monitoring
40
 
41
+ # Networking
42
  requests>=2.31.0
 
 
 
 
 
 
43
 
44
+ # Git packages for MatAnyone
45
  git+https://github.com/pq-yang/MatAnyone.git
 
46
 
47
+ # TILFØJET: GPU acceleration helpers
48
+ accelerate>=0.24.0 # For bedre GPU memory management
49
+ xformers>=0.0.22 # For optimeret attention på GPU (optional men anbefalet)