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

Merge branch 'dev_disable_convert_obj_model' into 'staging'

Enforce distinct ilastik object model workflows

See merge request !33
parents 41e1c95a 598e53aa
No related branches found
No related tags found
3 merge requests!37Release 2024.04.19,!34Revert "Temporary error-handling for debug...",!33Enforce distinct ilastik object model workflows
...@@ -163,22 +163,6 @@ class TestIlastikPixelClassification(unittest.TestCase): ...@@ -163,22 +163,6 @@ class TestIlastikPixelClassification(unittest.TestCase):
) )
self.assertEqual(objmap.data.max(), 2) self.assertEqual(objmap.data.max(), 2)
def test_make_seg_obj_model_from_pxmap_obj(self):
self.test_run_pixel_classifier()
fp = czifile['path']
pxmap_model = ilm.IlastikObjectClassifierFromPixelPredictionsModel(
{'project_file': ilastik_classifiers['pxmap_to_obj']}
)
seg_model = pxmap_model.make_instance_segmentation_model(px_ch=0)
objmap = seg_model.label_instance_class(self.mono_image, self.mask)
self.assertTrue(
write_accessor_data_to_file(
output_path / f'obmap_seg_from_pxmap_{fp.stem}.tif',
objmap,
)
)
self.assertEqual(objmap.data.max(), 2)
def test_run_object_classifier_from_segmentation(self): def test_run_object_classifier_from_segmentation(self):
self.test_run_pixel_classifier() self.test_run_pixel_classifier()
......
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