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

Don't assume YXCZ stack when creating accessor

parent 8765f83e
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,7 @@ class IlastikObjectClassifierFromPixelPredictionsModel(IlastikModel, ImageToImag
norm_mask = 1.0 * mask.data
else:
norm_mask = mask.data / np.iinfo(mask.dtype).max
norm_mask_acc = mask._derived_accessor()(norm_mask.astype('float32'))
norm_mask_acc = mask._derived_accessor(norm_mask.astype('float32'))
return super().label_instance_class(img, norm_mask_acc, pixel_classification_channel=px_ch)
return _Mod(params={'project_file': self.project_file})
......
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