Title: Error when segmenting · Issue #36 · transformify-plugins/segmentify · GitHub
Open Graph Title: Error when segmenting · Issue #36 · transformify-plugins/segmentify
X Title: Error when segmenting · Issue #36 · transformify-plugins/segmentify
Description: 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 Open Graph Description: 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-pac...
X Description: 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/sit...
Opengraph URL: https://github.com/transformify-plugins/segmentify/issues/36
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when segmenting","articleBody":"Hi, first use resulted in errors.\r\nCan anyone point me to a fix?\r\n\r\n\r\n```\r\nSegmenting...\r\nERROR:root:Unhandled exception:\r\nTraceback (most recent call last):\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/magicgui/core.py\", line 199, in \u003clambda\u003e\r\n self.call_button.clicked.connect(lambda checked: self.__call__())\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/magicgui/core.py\", line 532, in __call__\r\n value = self.func(**_kwargs)\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/gui.py\", line 29, in segmentation\r\n clf, features = fit(data, initial_labels.data, featurizer=featurizer.value)\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/semantic/main.py\", line 129, in fit\r\n padded_features = unet_featurize(padded_image, featurizer)\r\n 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\r\n features = model(image)\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py\", line 722, in _call_impl\r\n result = self.forward(*input, **kwargs)\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/segmentify-0.1.1-py3.8.egg/segmentify/model/unet.py\", line 57, in forward\r\n x = self.decode_4(x, skip_4)\r\n File \"/home/jmamede/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py\", line 722, in _call_impl\r\n result = self.forward(*input, **kwargs)\r\n 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\r\n output += skip\r\nRuntimeError: The size of tensor a (254) must match the size of tensor b (255) at non-singleton dimension 2\r\n\r\n```\r\n\r\n\r\nThese were the labels I made before:\r\n\r\n\r\nSame error example:\r\n\r\n\r\n\r\n\r\nI started things with:\r\n\r\n```\r\n import napari \r\n from segmentify import segmentation \r\n\r\n with napari.gui_qt(): \r\n viewer = napari.Viewer() \r\n \r\n # instantiate the segmentify widget \r\n gui = segmentation.Gui() \r\n\r\n # add the new widget to the napari viewer \r\n viewer.window.add_dock_widget(gui) \r\n \r\n # keep the dropdown menus in the gui in sync with the layer model \r\n viewer.layers.events.changed.connect(lambda x: gui.refresh_choices() )\r\n```\r\n `","author":{"url":"https://github.com/joaomamede","@type":"Person","name":"joaomamede"},"datePublished":"2020-09-13T04:02:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/36/segmentify/issues/36"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:440ae28b-e1f1-a0d6-14ea-37ebec4fec3b current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id A96E:1271AC:4B3555:6551A9:698E3208 html-safe-nonce fcb7b84452b33dae507997e1b5535e455f1ae991aca897b48b9c9fcd902ed465 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZFOjEyNzFBQzo0QjM1NTU6NjU1MUE5OjY5OEUzMjA4IiwidmlzaXRvcl9pZCI6IjY4NDQwNzI0MDEzMTcwMTYwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 91f8d75d3fc082085c88d31d71434ec32ee98c260c6ab1c60cac6000fa77f141 hovercard-subject-tag issue:700483756 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/transformify-plugins/segmentify/36/issue_layout twitter:image https://opengraph.githubassets.com/543e3b4ac016289adbdfabc6ae68917b4f56812e18b2889b0af5604b124fee69/transformify-plugins/segmentify/issues/36 twitter:card summary_large_image og:image https://opengraph.githubassets.com/543e3b4ac016289adbdfabc6ae68917b4f56812e18b2889b0af5604b124fee69/transformify-plugins/segmentify/issues/36 og:image:alt 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-pac... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username joaomamede hostname github.com expected-hostname github.com None a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 turbo-cache-control no-preview go-import github.com/transformify-plugins/segmentify git https://github.com/transformify-plugins/segmentify.git octolytics-dimension-user_id 51755733 octolytics-dimension-user_login transformify-plugins octolytics-dimension-repository_id 189932552 octolytics-dimension-repository_nwo transformify-plugins/segmentify octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 189932552 octolytics-dimension-repository_network_root_nwo transformify-plugins/segmentify turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release df1885ca022c7c5634d3a31e5a91e6a35990d0b7 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.