Spaces:
Sleeping
Sleeping
chawin.chen commited on
Commit ·
fc040db
1
Parent(s): e96b38f
nit
Browse files- .gitignore +65 -6
- requirements.txt +1 -1
- start_local.sh +11 -1
.gitignore
CHANGED
|
@@ -1,7 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
__pycache__/
|
| 2 |
-
|
| 3 |
-
.
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
HELP.md
|
| 2 |
+
target/
|
| 3 |
+
output/
|
| 4 |
+
!.mvn/wrapper/maven-wrapper.jar
|
| 5 |
+
!**/src/main/**/target/
|
| 6 |
+
!**/src/test/**/target/
|
| 7 |
+
|
| 8 |
+
.flattened-pom.xml
|
| 9 |
+
|
| 10 |
+
### STS ###
|
| 11 |
+
.apt_generated
|
| 12 |
+
.classpath
|
| 13 |
+
.factorypath
|
| 14 |
+
.project
|
| 15 |
+
.settings
|
| 16 |
+
.springBeans
|
| 17 |
+
.sts4-cache
|
| 18 |
+
|
| 19 |
+
### IntelliJ IDEA ###
|
| 20 |
+
.idea
|
| 21 |
+
*.iws
|
| 22 |
+
*.iml
|
| 23 |
+
*.ipr
|
| 24 |
+
|
| 25 |
+
### NetBeans ###
|
| 26 |
+
/nbproject/private/
|
| 27 |
+
/nbbuild/
|
| 28 |
+
/dist/
|
| 29 |
+
/nbdist/
|
| 30 |
+
/.nb-gradle/
|
| 31 |
+
build/
|
| 32 |
+
!**/src/main/**/build/
|
| 33 |
+
!**/src/test/**/build/
|
| 34 |
+
|
| 35 |
+
### VS Code ###
|
| 36 |
+
.vscode/
|
| 37 |
+
|
| 38 |
+
### LOG ###
|
| 39 |
+
logs/
|
| 40 |
+
|
| 41 |
+
*.class
|
| 42 |
+
|
| 43 |
+
**/node_modules/
|
| 44 |
+
/*.log
|
| 45 |
+
/output/
|
| 46 |
+
/faiss/
|
| 47 |
+
/web/facelist-web/
|
| 48 |
+
**/._*
|
| 49 |
__pycache__/
|
| 50 |
+
.DS_Store
|
| 51 |
+
*.pth
|
| 52 |
+
/data/celebrity_faces/ds_model_arcface_detector_retinaface_aligned_normalization_base_expand_0.pkl
|
| 53 |
+
/data/celebrity_faces/jpeg_6c06eca6.jpeg
|
| 54 |
+
/data/celebrity_faces/jpeg_51e1394b.jpeg
|
| 55 |
+
/data/celebrity_faces/jpeg_66fee390.jpeg
|
| 56 |
+
/data/celebrity_faces/jpeg_70b86102.jpeg
|
| 57 |
+
/data/celebrity_faces/jpeg_406b961a.jpeg
|
| 58 |
+
/data/celebrity_faces/jpeg_1321f87f.jpeg
|
| 59 |
+
/data/celebrity_faces/jpeg_b56ae384.jpeg
|
| 60 |
+
/data/celebrity_faces/jpeg_c07cdb46.jpeg
|
| 61 |
+
/data/celebrity_faces/jpeg_c7353005.jpeg
|
| 62 |
+
/data/celebrity_faces/jpeg_d4cb0602.jpeg
|
| 63 |
+
/data/celebrity_faces/jpeg_dbb64030.jpeg
|
| 64 |
+
/data/celebrity_faces/jpeg_fc652ad4.jpeg
|
| 65 |
+
/data/celebrity_faces/jpeg_fd6b0869.jpeg
|
| 66 |
+
/data/celebrity_embeddings.db
|
requirements.txt
CHANGED
|
@@ -2,7 +2,7 @@ numpy>=1.24.0,<2.0.0
|
|
| 2 |
fastapi>=0.104.0
|
| 3 |
uvicorn[standard]>=0.24.0
|
| 4 |
python-multipart>=0.0.6
|
| 5 |
-
setuptools>=68.0.0
|
| 6 |
opencv-python>=4.8.0
|
| 7 |
Pillow>=10.0.0
|
| 8 |
torch>=2.0.0,<2.9.0
|
|
|
|
| 2 |
fastapi>=0.104.0
|
| 3 |
uvicorn[standard]>=0.24.0
|
| 4 |
python-multipart>=0.0.6
|
| 5 |
+
setuptools>=68.0.0,<81
|
| 6 |
opencv-python>=4.8.0
|
| 7 |
Pillow>=10.0.0
|
| 8 |
torch>=2.0.0,<2.9.0
|
start_local.sh
CHANGED
|
@@ -19,4 +19,14 @@ export ENABLE_ANIME_PRELOAD="${ENABLE_ANIME_PRELOAD:-true}"
|
|
| 19 |
export IMAGES_DIR="${IMAGES_DIR:-/opt/data/images}"
|
| 20 |
export MODELS_PATH="${MODELS_PATH:-/opt/data/models}"
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
export IMAGES_DIR="${IMAGES_DIR:-/opt/data/images}"
|
| 20 |
export MODELS_PATH="${MODELS_PATH:-/opt/data/models}"
|
| 21 |
|
| 22 |
+
PYTHON_BIN="${PYTHON_BIN:-python}"
|
| 23 |
+
|
| 24 |
+
if ! "$PYTHON_BIN" - <<'PY' >/dev/null 2>&1
|
| 25 |
+
import pkg_resources
|
| 26 |
+
PY
|
| 27 |
+
then
|
| 28 |
+
echo "pkg_resources not found; installing setuptools into current Python environment..."
|
| 29 |
+
"$PYTHON_BIN" -m pip install -U "setuptools>=68.0.0,<81"
|
| 30 |
+
fi
|
| 31 |
+
|
| 32 |
+
"$PYTHON_BIN" -m uvicorn app:app --host "${HOST:-0.0.0.0}" --port "${PORT:-7861}"
|