-
Notifications
You must be signed in to change notification settings - Fork 31
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
One mode ellipsoid fix #1162
One mode ellipsoid fix #1162
Conversation
…pecohortgen description
Should I change the use case optimize params to the studio default? |
Well, it's an important point for people to see what's going on: Here are roughly the parameters from the python file, with the exception of the In any case, notice how during the optimization iterations, the sampling goes bad: ellipsoid.mp4If you drop the relative weighting from 15 to 1, it's much improved, but as far as I can tell, the real thing ruining this is the use of normals. I'm guessing this wouldn't be the case if the surface was smoother. @sheryjoe , what do you think? |
Here is the result with normals off: Much better. My guess is that since these ellipsoids are not smooth, the correspondence of the normals is basically trying to match the bumps (noise) between shapes, and this is causing problems. @sheryjoe , what do you think? |
My conclusion here is that this data is not properly groomed (smoothed enough) to use normals. Do we want to change the grooming or just disable normals and move on? @sheryjoe ? |
@akenmorris That makes sense. I discussed with Shireen and she agreed we shouldn't use normals. Decreasing the relative weighting makes sense too for this simple example. So we need to update those parameters for all ellipsoid use cases, update the shape models on the portal, and update the documentation. |
@jadie1 , are you already working on this or should I take care of it? |
I did not get to it today, you are welcome to take care of it or I can do it in the morning. |
Ok, I updated the params, particles in the zip file and on the portal. |
getting-started-with-grooming-segmentations.ipynb crashes for me here:
Exception Type: EXC_BAD_ACCESS (SIGSEGV) VM Regions Near 0x3: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread |
For me it is crashing at:
|
This is disturbing, since I presume we're up to date with the most recent release_v6.0c branch, and the error is suspiciously close to |
@iyerkrithika21 , I just barely merged in changes from release_6.0c to this branch. This might fix your issue. It didn't fix mine. |
After the merge, the notebook ran without errors on Linux. |
getting-started-with-grooming-segmentations.ipynb worked on windows for me, so maybe my mac has an out of date conda dependency or something. |
getting-started-with-shape-cohort-generation.ipynb didn't work for me on windows. It couldn't find the shapeworks library. The other notebooks can. |
getting-started-with-grooming-segmentations.ipynb is crashing for me here:
TemplateTypeError: itk.ExtractImageFilter is not wrapped for input type meanShape_vtk is not 'None' though... |
All of the other notebooks ran fine for me on Linux. |
…tion.ipynb with the newer code.
I fixed the path stuff for windows and now I get "ERROR: ShapeCohortGen library failed to import". I just re-installed it using pip commands from conda_installs.bat, but still no luck. I don't see anything on the terminal to indicate what the error is. Ok, importing from the command line, it seems I'm missing trimesh. Back to conda_installs again. Update: well, conda_installs can't find it:
Any suggestions? So for conda_installs.sh, we are just asking for "trimesh" and conda_installs.bat we ask for trimesh=3.8.15 I noticed in the windows conda_installs.sh from GH actions that it's getting 3.9.9. I asked for just 'trimesh' on windows and it gave me 3.9.8. |
This PR changes all ellipsoid examples to use new ellipsoid data generated via the shape cohort generator which only varies along the x radius. Addresses issue #1133
Testing required:
The new data on the portal (ellipsoid_1mode and ellipsoid_1mode_aligned) should have the expected output from all use cases.