Spaces:
Sleeping
Sleeping
Julien Ajdenbaum
commited on
Commit
·
d99c180
1
Parent(s):
58f4771
cleaned code, updated paths
Browse files- .idea/.gitignore +8 -0
- .idea/BaldnessDetector.iml +13 -0
- .idea/inspectionProfiles/Project_Default.xml +7 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +7 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- __pycache__/predict.cpython-38.pyc +0 -0
- app.py +0 -4
- predict.py +2 -2
- requirements.txt +5 -20
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# Editor-based HTTP Client requests
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
.idea/BaldnessDetector.iml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$">
|
5 |
+
<excludeFolder url="file://$MODULE_DIR$/venv/venv" />
|
6 |
+
</content>
|
7 |
+
<orderEntry type="jdk" jdkName="$USER_HOME$/anaconda3" jdkType="Python SDK" />
|
8 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
9 |
+
</component>
|
10 |
+
<component name="PackageRequirementsSettings">
|
11 |
+
<option name="removeUnused" value="true" />
|
12 |
+
</component>
|
13 |
+
</module>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<profile version="1.0">
|
3 |
+
<option name="myName" value="Project Default" />
|
4 |
+
<inspection_tool class="GrazieInspection" enabled="false" level="GRAMMAR_ERROR" enabled_by_default="false" />
|
5 |
+
<inspection_tool class="LanguageDetectionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
6 |
+
</profile>
|
7 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<settings>
|
3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
+
<version value="1.0" />
|
5 |
+
</settings>
|
6 |
+
</component>
|
.idea/misc.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="Black">
|
4 |
+
<option name="sdkName" value="Python 3.8 (BaldnessDetector)" />
|
5 |
+
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="$USER_HOME$/anaconda3" project-jdk-type="Python SDK" />
|
7 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/BaldnessDetector.iml" filepath="$PROJECT_DIR$/.idea/BaldnessDetector.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/vcs.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="" vcs="Git" />
|
5 |
+
</component>
|
6 |
+
</project>
|
__pycache__/predict.cpython-38.pyc
ADDED
Binary file (820 Bytes). View file
|
|
app.py
CHANGED
@@ -4,10 +4,6 @@ import math
|
|
4 |
import numpy as np
|
5 |
import os
|
6 |
import mediapipe as mp
|
7 |
-
|
8 |
-
import sys
|
9 |
-
sys.path.append('/home/julien/Documents/bald_classification')
|
10 |
-
|
11 |
import predict
|
12 |
|
13 |
from mediapipe.tasks import python
|
|
|
4 |
import numpy as np
|
5 |
import os
|
6 |
import mediapipe as mp
|
|
|
|
|
|
|
|
|
7 |
import predict
|
8 |
|
9 |
from mediapipe.tasks import python
|
predict.py
CHANGED
@@ -5,8 +5,8 @@ import os
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import time
|
7 |
|
8 |
-
bald_path = "/home/julien/Downloads/archive (1)/Dataset/Test/Bald"
|
9 |
-
notbald_path = "/home/julien/Downloads/archive (1)/Dataset/Test/NotBald"
|
10 |
|
11 |
def predict(im):
|
12 |
# im_names = os.listdirpath)
|
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import time
|
7 |
|
8 |
+
# bald_path = "/home/julien/Downloads/archive (1)/Dataset/Test/Bald"
|
9 |
+
# notbald_path = "/home/julien/Downloads/archive (1)/Dataset/Test/NotBald"
|
10 |
|
11 |
def predict(im):
|
12 |
# im_names = os.listdirpath)
|
requirements.txt
CHANGED
@@ -1,21 +1,6 @@
|
|
1 |
gradio==3.41.0
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
flatbuffers
|
8 |
-
fonttools
|
9 |
-
kiwisolver
|
10 |
-
matplotlib
|
11 |
-
mediapipe
|
12 |
-
numpy
|
13 |
-
opencv-contrib-python
|
14 |
-
opencv-python
|
15 |
-
pillow
|
16 |
-
protobuf
|
17 |
-
pycparser
|
18 |
-
pyparsing
|
19 |
-
sounddevice
|
20 |
-
tensorflow
|
21 |
-
keras
|
|
|
1 |
gradio==3.41.0
|
2 |
+
matplotlib~=3.3.4
|
3 |
+
mediapipe~=0.10.7
|
4 |
+
numpy~=1.20.1
|
5 |
+
opencv-python~=4.8.1.78
|
6 |
+
keras~=2.10.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|