René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com


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![image](https://user-images.githubusercontent.com/46799914/93009915-faf60180-f54b-11ea-9e81-0a2ed5f812fe.png)\r\n\r\nSame error example:\r\n![image](https://user-images.githubusercontent.com/46799914/93165045-a041de80-f6e0-11ea-891d-046d17e4c032.png)\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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:440ae28b-e1f1-a0d6-14ea-37ebec4fec3b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA96E:1271AC:4B3555:6551A9:698E3208
html-safe-noncefcb7b84452b33dae507997e1b5535e455f1ae991aca897b48b9c9fcd902ed465
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZFOjEyNzFBQzo0QjM1NTU6NjU1MUE5OjY5OEUzMjA4IiwidmlzaXRvcl9pZCI6IjY4NDQwNzI0MDEzMTcwMTYwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac91f8d75d3fc082085c88d31d71434ec32ee98c260c6ab1c60cac6000fa77f141
hovercard-subject-tagissue:700483756
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/transformify-plugins/segmentify/36/issue_layout
twitter:imagehttps://opengraph.githubassets.com/543e3b4ac016289adbdfabc6ae68917b4f56812e18b2889b0af5604b124fee69/transformify-plugins/segmentify/issues/36
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/543e3b4ac016289adbdfabc6ae68917b4f56812e18b2889b0af5604b124fee69/transformify-plugins/segmentify/issues/36
og:image:altHi, 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoaomamede
hostnamegithub.com
expected-hostnamegithub.com
Nonea5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082
turbo-cache-controlno-preview
go-importgithub.com/transformify-plugins/segmentify git https://github.com/transformify-plugins/segmentify.git
octolytics-dimension-user_id51755733
octolytics-dimension-user_logintransformify-plugins
octolytics-dimension-repository_id189932552
octolytics-dimension-repository_nwotransformify-plugins/segmentify
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id189932552
octolytics-dimension-repository_network_root_nwotransformify-plugins/segmentify
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedf1885ca022c7c5634d3a31e5a91e6a35990d0b7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/36#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftransformify-plugins%2Fsegmentify%2Fissues%2F36
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftransformify-plugins%2Fsegmentify%2Fissues%2F36
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=transformify-plugins%2Fsegmentify
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/36
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/36
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/36
transformify-plugins https://patch-diff.githubusercontent.com/transformify-plugins
segmentifyhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Star 31 https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Code https://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Issues 10 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues
Pull requests 2 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulls
Actions https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/actions
Projects 0 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/projects
Security 0 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/security
Insights https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulse
Code https://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Issues https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues
Pull requests https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulls
Actions https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/actions
Projects https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/projects
Security https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/security
Insights https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/transformify-plugins/segmentify/issues/36
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/transformify-plugins/segmentify/issues/36
Error when segmentinghttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/36#top
https://github.com/joaomamede
https://github.com/joaomamede
joaomamedehttps://github.com/joaomamede
on Sep 13, 2020https://github.com/transformify-plugins/segmentify/issues/36#issue-700483756
https://user-images.githubusercontent.com/46799914/93009915-faf60180-f54b-11ea-9e81-0a2ed5f812fe.png
https://user-images.githubusercontent.com/46799914/93165045-a041de80-f6e0-11ea-891d-046d17e4c032.png
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.