Skip to content
Snippets Groups Projects
Commit faa943d9 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

No longer need cleanup script, getting correct results

parent 06f36622
No related merge requests found
......@@ -98,7 +98,7 @@ def generate_ilastik_object_classifier(
# delete existing classification weights
if (k := f'ObjectExtraction/RegionFeatures/{lane:04d}') in h5.keys():
del h5[k]
if (k := 'ObjectClassification/ClassificationForests') in h5.keys():
if (k := 'ObjectClassification/ClassifierForests') in h5.keys():
del h5[k]
return new_ilp
......@@ -156,9 +156,7 @@ if __name__ == '__main__':
label_names,
)
from extensions.chaeo.examples.test_modify_object_classifier import modify_ilastik_object_classifier
auto_ilp = modify_ilastik_object_classifier(new_ilp)
# auto_ilp = new_ilp
auto_ilp = new_ilp
def infer_and_compare(ilp, prefix, raw, mask, labels):
mod = PatchStackObjectClassifier({'project_file': root / ilp})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment