AdarshDRC commited on
Commit
f79242c
·
1 Parent(s): 7c8c165

fix: clean requiremetns.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +16 -107
requirements.txt CHANGED
@@ -1,134 +1,43 @@
1
- fastapi
2
- uvicorn
3
- python-multipart
4
- python-dotenv
5
- cloudinary
6
- pinecone
7
- pillow
8
- numpy
9
- torch
10
- torchvision
11
- transformers==4.48.0
12
- sentencepiece
13
- protobuf
14
- ultralytics
15
- inflect
16
- deepface
17
- ultralytics
18
- tf-keras
19
- opencv-python-headless
20
- aiohttp
21
- loguru
22
- # Enterprise Lens V3 — requirements.txt
23
- # Face Lane: InsightFace (replaces DeepFace + RetinaFace + GhostFaceNet)
24
-
25
- # ── Core API ──────────────────────────────────────────────────────
26
- fastapi
27
- uvicorn[standard]
28
- python-multipart
29
- aiohttp
30
- loguru
31
-
32
- # ── AI / ML ───────────────────────────────────────────────────────
33
- torch
34
- torchvision
35
- transformers
36
- ultralytics
37
-
38
- # ── V3 Face Engine (replaces deepface) ───────────────────────────
39
- insightface
40
- onnxruntime # CPU inference for InsightFace
41
- opencv-python-headless
42
-
43
- # ── Vector DB ────────────────────────────────────────────────────
44
- pinecone
45
-
46
- # ── Image / Cloud ────────────────────────────────────────────────
47
- cloudinary
48
- Pillow
49
- numpy
50
- inflect
51
-
52
-
53
-
54
- # Enterprise Lens V3 — requirements.txt
55
-
56
- # ── Core API ─────────────────────────────────────────────────────
57
- fastapi
58
- uvicorn[standard]
59
- python-multipart
60
- aiohttp
61
- loguru
62
-
63
- # ── AI / ML ──────────────────────────────────────────────────────
64
- torch
65
- torchvision
66
- transformers
67
- ultralytics
68
-
69
- # ── InsightFace — install wheel deps first ───────────────────────
70
- # numpy<2.0 must be installed BEFORE insightface (see Dockerfile)
71
- numpy<2.0
72
- cython
73
- # onnxruntime — required by insightface
74
- onnxruntime>=1.16.0
75
- # insightface — must be >=0.7.3 for buffalo_sc model support
76
- insightface>=0.7.3
77
-
78
-
79
  # requirements.txt — Enterprise Lens V4
80
- # ════════════════════════════════════════════════════════════════
81
- # Face Lane : insightface (SCRFD-10GF + ArcFace-R100)
82
- # + AdaFace IR-50 (custom PyTorch backbone)
83
- # + huggingface_hub (AdaFace weight download)
84
- # Object Lane: transformers (SigLIP + DINOv2) + ultralytics (YOLO)
85
- # API : fastapi + uvicorn + python-multipart
86
- # Storage : pinecone + cloudinary
87
- # Utilities : loguru + inflect + aiohttp + python-dotenv
88
- # ════════════════════════════════════════════════════════════════
89
 
90
  # ── Web framework ────────────────────────────────────────────────
91
  fastapi==0.115.6
92
  uvicorn[standard]==0.32.1
93
  python-multipart==0.0.20
94
 
95
- # ── AI / ML core ────────────────────────────────────────────────
96
- # CPU-only torch — swap index URL for CUDA build on GPU spaces
97
  torch==2.4.1+cpu
98
  torchvision==0.19.1+cpu
99
- --extra-index-url https://download.pytorch.org/whl/cpu
100
 
101
- # ── HuggingFace SigLIP, DINOv2, AdaFace weight download ───────
102
- transformers==4.46.3
103
- huggingface_hub==0.26.2
104
- safetensors==0.4.5
105
- tokenizers==0.20.3
106
- accelerate==1.1.1
107
 
108
- # ── InsightFace — SCRFD detection + ArcFace-R100 encoding ────────
109
  insightface==0.7.3
110
- onnxruntime==1.19.2 # CPU ONNX runtime for InsightFace models
111
 
112
- # ── YOLO — object segmentation crops ────────────────────────────
113
  ultralytics==8.3.27
114
 
115
- # ── Computer vision utilities ────────────────────────────────────
116
  opencv-python-headless==4.10.0.84
117
  Pillow==11.0.0
118
  numpy==1.26.4
119
 
120
- # ── Vector database ──────────────────────────────────────────────
121
  pinecone==5.4.1
122
-
123
- # ── Image CDN ────────────────────────────────────────────────────
124
  cloudinary==1.41.0
125
 
126
- # ── Async HTTP (Supabase logging) ────────────────────────────────
127
  aiohttp==3.11.9
128
 
129
- # ── Logging + text utils ─────────────────────────────────────────
130
  loguru==0.7.2
131
  inflect==7.4.0
132
-
133
- # ── Config ───────────────────────────────────────────────────────
134
  python-dotenv==1.0.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # requirements.txt — Enterprise Lens V4
2
+
3
+ --extra-index-url https://download.pytorch.org/whl/cpu
 
 
 
 
 
 
 
4
 
5
  # ── Web framework ────────────────────────────────────────────────
6
  fastapi==0.115.6
7
  uvicorn[standard]==0.32.1
8
  python-multipart==0.0.20
9
 
10
+ # ── PyTorch CPU-only ─────────────────────────────────────────────
 
11
  torch==2.4.1+cpu
12
  torchvision==0.19.1+cpu
 
13
 
14
+ # ── HuggingFace stack ─────────────────────────────────────────────
15
+ transformers
16
+ huggingface_hub>=0.26.0
17
+ safetensors>=0.4.0
18
+ tokenizers>=0.20.0
19
+ accelerate>=1.1.0
20
 
21
+ # ── InsightFace — SCRFD + ArcFace-R100 ───────────────────────────
22
  insightface==0.7.3
23
+ onnxruntime==1.19.2
24
 
25
+ # ── YOLO — object segmentation ───────────────────────────────────
26
  ultralytics==8.3.27
27
 
28
+ # ── Computer vision ───────────────────────────────────────────────
29
  opencv-python-headless==4.10.0.84
30
  Pillow==11.0.0
31
  numpy==1.26.4
32
 
33
+ # ── Vector DB + CDN ──────────────────────────────────────────────
34
  pinecone==5.4.1
 
 
35
  cloudinary==1.41.0
36
 
37
+ # ── Async HTTP ───────────────────────────────────────────────────
38
  aiohttp==3.11.9
39
 
40
+ # ── Utilities ────────────────────────────────────────────────────
41
  loguru==0.7.2
42
  inflect==7.4.0
 
 
43
  python-dotenv==1.0.1