From 9d49942a778f1cad6f3a67825f39ad695998468a Mon Sep 17 00:00:00 2001 From: Christopher Rhodes <christopher.rhodes@embl.de> Date: Mon, 16 Oct 2023 17:44:32 +0200 Subject: [PATCH] Started accuracy quantification part --- .../transfer_labels_to_ilastik_object_classifier.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/chaeo/examples/transfer_labels_to_ilastik_object_classifier.py b/extensions/chaeo/examples/transfer_labels_to_ilastik_object_classifier.py index 07142048..9433552e 100644 --- a/extensions/chaeo/examples/transfer_labels_to_ilastik_object_classifier.py +++ b/extensions/chaeo/examples/transfer_labels_to_ilastik_object_classifier.py @@ -168,4 +168,11 @@ if __name__ == '__main__': result_acc, _ = mod.infer(train_zstack_raw, train_zstack_mask) write_accessor_data_to_file(where_patch_stack / 'result.tif', result_acc) - print(where_patch_stack / 'result.tif') \ No newline at end of file + print(where_patch_stack / 'result.tif') + + # write comparison + train_labels = generate_file_accessor(where_patch_stack / 'zstack_train_label.tif') + write_accessor_data_to_file( + where_patch_stack / 'comp.tif', + InMemoryDataAccessor(result_acc.data == train_labels.data) + ) \ No newline at end of file -- GitLab