-
Notifications
You must be signed in to change notification settings - Fork 8
Example code only works for square image [bug] #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you wanted to work on a fix for this @hungyiwu I'd be happy to review and merge! It likely involves some of the padding code |
I looked into the models and the issue is not strictly square vs. non-square images, but images of shape 512x512 vs. otherwise, as this following didn't work either
I realized the original model was trained using 512x512 images and likely only support predictions of this input shape. So perhaps not really a bug but we can add documentation to remind users this pre-trained model supports this shape, and if they want something else they can train their own model for that. Any thoughts? @sofroniewn |
Ah, makes sense! That sounds like a good addition to the docs. Thanks!! |
Expected behavior
segmentify
should work for non-square images (width != length, ex. 512x512 is square, 511x512 is not square)Potentially relevant issues/PR
#11 #13
How to reproduce the bug
Below is a slightly modified version of https://github.com/transformify-plugins/segmentify/blob/master/examples/launch.py
execute
button, confirm workingnapari.gui_qt
; run the code, popping the napari window, clickexecute
button, and confirm it crashesFull error message
Environment, version, and other information
python 3.8.2
napari 0.3.5
napari-plugin-engine 0.1.6
napari-svg 0.1.3
segmentify 0.1.1 (installed by cloning this repo and
python setup.py install
themaster
branch)Ubuntu 20.04
python venv
pip freeze >
requirements.txtThe text was updated successfully, but these errors were encountered: