Spaces:
Runtime error
Runtime error
Adding test data and info
Browse files
.idea/bone-age-estimation.iml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<module type="PYTHON_MODULE" version="4">
|
3 |
<component name="NewModuleRootManager">
|
4 |
<content url="file://$MODULE_DIR$" />
|
5 |
-
<orderEntry type="
|
6 |
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
</component>
|
8 |
</module>
|
|
|
2 |
<module type="PYTHON_MODULE" version="4">
|
3 |
<component name="NewModuleRootManager">
|
4 |
<content url="file://$MODULE_DIR$" />
|
5 |
+
<orderEntry type="inheritedJdk" />
|
6 |
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
</component>
|
8 |
</module>
|
.idea/misc.xml
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
-
<component name="
|
|
|
|
|
|
|
4 |
</project>
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
+
<component name="Black">
|
4 |
+
<option name="sdkName" value="Python 3.12 (bae)" />
|
5 |
+
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (bae)" project-jdk-type="Python SDK" />
|
7 |
</project>
|
predict.py
CHANGED
@@ -64,7 +64,7 @@ def run():
|
|
64 |
output = gr.outputs.Textbox(label="Predicted Age")
|
65 |
min_range = gr.outputs.Textbox(label="Minimum Predicted Age")
|
66 |
max_range = gr.outputs.Textbox(label="Maximum Predicted Age")
|
67 |
-
info = "# Usage Warning! \nThis application is built for <span style='color:red'>research purpose only</span>. It is not intended for clinical use.\nDo not use this application in any <span style='color:red'>commercial or medical setting.</span> \n\n For any information about the project contact: vyawaharest@gmail.com"
|
68 |
|
69 |
BAE = gr.Interface(
|
70 |
fn=predict,
|
|
|
64 |
output = gr.outputs.Textbox(label="Predicted Age")
|
65 |
min_range = gr.outputs.Textbox(label="Minimum Predicted Age")
|
66 |
max_range = gr.outputs.Textbox(label="Maximum Predicted Age")
|
67 |
+
info = "# Usage Warning! \nThis application is built for <span style='color:red'>research purpose only</span>. It is not intended for clinical use.\nDo not use this application in any <span style='color:red'>commercial or medical setting.</span> \n\n For any information about the project contact: vyawaharest@gmail.com \n\n Test data is available [here](https://huggingface.co/spaces/JackRio/bone-age-estimation/tree/main)"
|
68 |
|
69 |
BAE = gr.Interface(
|
70 |
fn=predict,
|
Female_144.png β test_data/Female_144.png
RENAMED
File without changes
|
Female_60.png β test_data/Female_60.png
RENAMED
File without changes
|
Male_204.png β test_data/Male_204.png
RENAMED
File without changes
|
Male_36.png β test_data/Male_36.png
RENAMED
File without changes
|
test_data/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Info on test images
|
2 |
+
|
3 |
+
The model takes two inputs:
|
4 |
+
- Image
|
5 |
+
- Gender
|
6 |
+
Each image is renamed with respective gender followed by bone age estimated by an radiologist.
|
7 |
+
|
8 |
+
## Use
|
9 |
+
|
10 |
+
Restart the space if needed.
|
11 |
+
Download the image and upload it.
|
12 |
+
Tick the box if the image is of Female or else leave it unchecked.
|
13 |
+
The predicted age along with max/min prediction from ensemble will be displayed in right panel.
|