cerquide commited on
Commit
347a369
·
1 Parent(s): 64ea7b2

Added remaining files

Browse files
README.md CHANGED
@@ -1,2 +1,12 @@
1
- # coc_ui
2
- UI for the cumulus expansion computer
 
 
 
 
 
 
 
 
 
 
 
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
- sess.last_image_path = None
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
- export PYTHONPATH=$PYTHONPATH:${PWD}/src:${PWD}/../cumulus_expansion/src
10
- #export LD_LIBRARY_PATH=/home/arcos/miniconda3/envs/aix/lib/
 
 
 
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="../cumulus_expansion/models/majority_roi_production/majority_roi_production.keras"):
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)