You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first use resulted in errors.
Can anyone point me to a fix?
Segmenting...
ERROR:root:Unhandled exception:
Traceback (most recent call last):
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/magicgui/core.py", line 199, in <lambda>
self.call_button.clicked.connect(lambda checked: self.__call__())
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/magicgui/core.py", line 532, in __call__
value = self.func(**_kwargs)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/gui.py", line 29, in segmentation
clf, features = fit(data, initial_labels.data, featurizer=featurizer.value)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/semantic/main.py", line 129, in fit
padded_features = unet_featurize(padded_image, featurizer)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/semantic/main.py", line 59, in unet_featurize
features = model(image)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/model/unet.py", line 57, in forward
x = self.decode_4(x, skip_4)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/model/layers/unet_layers.py", line 63, in forward
output += skip
RuntimeError: The size of tensor a (254) must match the size of tensor b (255) at non-singleton dimension 2
These were the labels I made before:
Same error example:
I started things with:
import napari
from segmentify import segmentation
with napari.gui_qt():
viewer = napari.Viewer()
# instantiate the segmentify widget
gui = segmentation.Gui()
# add the new widget to the napari viewer
viewer.window.add_dock_widget(gui)
# keep the dropdown menus in the gui in sync with the layer model
viewer.layers.events.changed.connect(lambda x: gui.refresh_choices() )
`
The text was updated successfully, but these errors were encountered:
Hi @joaomamede, sorry I'm just seeing this now, yes - the original model might only have worked on square images, see #34 (comment). I'm not sure how easy that would be to fix, but if you were interested in working on a PR I'd happily review! I can look into it a bit too, but it's been a while since i've looked at this repo
Uh oh!
There was an error while loading. Please reload this page.
Hi, first use resulted in errors.
Can anyone point me to a fix?
These were the labels I made before:

Same error example:

I started things with:
The text was updated successfully, but these errors were encountered: