guiwitz / napari-sediment

https://guiwitz.github.io/napari-sediment/napari_sediment.html
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

ML masking error: 'NoneType' object is not callable #79

Closed Epta13 closed 1 month ago

Epta13 commented 1 month ago

When running the ML masking in the newest version of napari-sediment, installed from napari, this error appears:

TypeError Traceback (most recent call last) TypeError: 'NoneType' object is not callable

The result is that it doesn't save the output of the first plugin correctly, and thus, the HyperAnalysis plugin is not able to open the imcube, nor RGB. It opens only an empty mask. Further, when the exported files from Sediment plugin are reopened in the Sediment plugin, the mask is shifted comapred to the RGB and imcube.

Epta13 commented 1 month ago

If I don't use ML masking, this error does not appear.

Epta13 commented 1 month ago

This error appears during the ML training. The training will finish, and the segmentation will finish and give good results, but when I want to then combine masks or export the project, it won't let me and this error appears from the training on. Even if I just hover over the ML panel with coursor, over the pixel classifier panel, this error appear instantly.

guiwitz commented 1 month ago

This was a bug in napari-convpaint. It has been fixed now in https://github.com/guiwitz/napari-convpaint/commit/da1d2e5acc6f0e13402a47b4042d7a9264ec3379. Making sure that napari-convpaint 0.5.2 is installed should solve the problem.