Added remaining files
Browse files- README.md +12 -2
- area_measurement.py +1 -1
- bin/init-local.sh +4 -2
- model/majority_roi_production.keras +3 -0
- utils.py +1 -1
README.md
CHANGED
|
@@ -1,2 +1,12 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# COC Area Measurement
|
| 2 |
+
|
| 3 |
+
UI showing how to measure the area of the Cumulus Oocyte Complex.
|
| 4 |
+
|
| 5 |
+
## Local installation
|
| 6 |
+
|
| 7 |
+
1. Clone the [cumulus_expansion repo from the IIIA gitlab](https://gitlab.iiia.csic.es/eurova/cumulus_expansion)
|
| 8 |
+
2. Clone this repo and change directory into it.
|
| 9 |
+
3. `source bin/init-local.sh`
|
| 10 |
+
4. `streamlit run area_measurement.py`
|
| 11 |
+
|
| 12 |
+
|
area_measurement.py
CHANGED
|
@@ -15,7 +15,7 @@ st.write("Upload the photograph of your oocyte here:")
|
|
| 15 |
if 'image_path' not in sess:
|
| 16 |
sess.image_path = None
|
| 17 |
if 'last_image_path' not in sess:
|
| 18 |
-
|
| 19 |
if 'model' not in sess:
|
| 20 |
sess.model = AreaModel()
|
| 21 |
if 'image' not in sess:
|
|
|
|
| 15 |
if 'image_path' not in sess:
|
| 16 |
sess.image_path = None
|
| 17 |
if 'last_image_path' not in sess:
|
| 18 |
+
sess.last_image_path = None
|
| 19 |
if 'model' not in sess:
|
| 20 |
sess.model = AreaModel()
|
| 21 |
if 'image' not in sess:
|
bin/init-local.sh
CHANGED
|
@@ -6,5 +6,7 @@ fi
|
|
| 6 |
source .venv/bin/activate
|
| 7 |
pip install -U pip
|
| 8 |
pip install -r requirements.txt
|
| 9 |
-
|
| 10 |
-
#
|
|
|
|
|
|
|
|
|
| 6 |
source .venv/bin/activate
|
| 7 |
pip install -U pip
|
| 8 |
pip install -r requirements.txt
|
| 9 |
+
#if [[ ! -e src ]]; then
|
| 10 |
+
# cp -r ../cumulus_expansion/src src
|
| 11 |
+
#fi
|
| 12 |
+
export PYTHONPATH=$PYTHONPATH:${PWD}/src
|
model/majority_roi_production.keras
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5a3927c1c6506550019a9845b672f6ddc63272943b1173560240bf0ca65cdb7
|
| 3 |
+
size 23444897
|
utils.py
CHANGED
|
@@ -13,7 +13,7 @@ from aix.utils import hardened_dice_coef
|
|
| 13 |
from aix.losses import dice_loss
|
| 14 |
|
| 15 |
class AreaModel:
|
| 16 |
-
def __init__(self, model_path="
|
| 17 |
self.model_path = model_path
|
| 18 |
self.model = load_model(model_path)
|
| 19 |
self.IMG_SIZE = (192, 240)
|
|
|
|
| 13 |
from aix.losses import dice_loss
|
| 14 |
|
| 15 |
class AreaModel:
|
| 16 |
+
def __init__(self, model_path="model/majority_roi_production.keras"):
|
| 17 |
self.model_path = model_path
|
| 18 |
self.model = load_model(model_path)
|
| 19 |
self.IMG_SIZE = (192, 240)
|