Spaces:
Runtime error
Runtime error
Commit
·
d77ae53
1
Parent(s):
71f2e51
Update with linux pkl files
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ if plt == 'linux': pathlib.WindowsPath = pathlib.PosixPath
|
|
12 |
def name_to_hrs (r): return float(round(float(os.path.basename(r)[0:-4].split("_")[1][1:])*(minutes/60)+5,2))
|
13 |
def validation_split (r): return os.path.basename(r)[0:-4].split("_")[3] == "R0003" or os.path.basename(r)[0:-4].split("_")[3] == "R0006"
|
14 |
def get_label_filename(name): return path/'labels'/f'{name.stem}_annotationLabels.tif'
|
15 |
-
zebrafish_age_predictor = load_learner('
|
16 |
-
zebrafish_classifier = load_learner('
|
17 |
examples = ["5hr.tif", "12hr.tif", "24hr.tif"]
|
18 |
def process_zebrafish_image(img):
|
19 |
|
|
|
12 |
def name_to_hrs (r): return float(round(float(os.path.basename(r)[0:-4].split("_")[1][1:])*(minutes/60)+5,2))
|
13 |
def validation_split (r): return os.path.basename(r)[0:-4].split("_")[3] == "R0003" or os.path.basename(r)[0:-4].split("_")[3] == "R0006"
|
14 |
def get_label_filename(name): return path/'labels'/f'{name.stem}_annotationLabels.tif'
|
15 |
+
zebrafish_age_predictor = load_learner('zebrafish_age_20220726.pkl')
|
16 |
+
zebrafish_classifier = load_learner('fish_yolk_segmentation_20220726.pkl')
|
17 |
examples = ["5hr.tif", "12hr.tif", "24hr.tif"]
|
18 |
def process_zebrafish_image(img):
|
19 |
|