Code Monkey home page Code Monkey logo

Comments (6)

kvttt avatar kvttt commented on June 12, 2024 1

I tried setting the threshold to 1e-1 and it is now working perfectly. Thank you for the insights and thanks for making such an amazing model available!

from atlas-gan.

neel-dey avatar neel-dey commented on June 12, 2024

Hi @kvttt, thanks for reaching out! Yup, setting clip_bckgnd=True (which just zeroes out the voxels outside of some intensity threshold of the linear average input in training) should resolve this issue.

For context, those atlas voxels aren't being moved there by some deformation as they're being synthesized by the template generator. Surprisingly, almost all of the ablations and baselines tested in the paper can do weird things in the empty background (I've speculated that this is because the LNCC registration loss is scale-invariant and something like LNCC + 0.1*L1 might do better), although it is definitely worse when GAN training is unstable.

Just in case setting clip_bckgnd=True brings some artifacts into the foreground, try increasing losswt_gp slightly and/or decreasing d_ch.

Good luck and let me know how it goes :)

from atlas-gan.

kvttt avatar kvttt commented on June 12, 2024

Hi @neel-dey, thanks for the clear explanation. I will adjust the hyperparameters you suggested and get back to you as soon as I have a result! Thanks!

from atlas-gan.

kvttt avatar kvttt commented on June 12, 2024

Hi @neel-day, I tried setting clip_bckgnd=True. I am seeing less noise visible from a coronal view but still some decent amount of noise from a sagittal view.

Screenshot 2022-11-22 at 11 55 14 AM

At this point do you think it would be a good idea to try replacing the LNCC loss with MSE or MAE loss and start from there?

from atlas-gan.

neel-dey avatar neel-dey commented on June 12, 2024

Interesting. If you look at these lines, you'll see that it's basically just clipping atlas_inputs (which is the linear average input) with a predefined heuristic threshold of 1e-2. I would just increase the threshold to something higher that basically only keeps the brain in the mask.

But trying LNCC + MAE should be really interesting! I wouldn't do MSE/MAE only because that typically doesn't do brain registration as well. Let me know how either option goes!

from atlas-gan.

neel-dey avatar neel-dey commented on June 12, 2024

Fantastic! I'm very happy to hear that. Feel free to reach out again if you have any other questions.

from atlas-gan.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.