Skip to content

3D images #33

@jiequanz

Description

@jiequanz

Hi, I am trying to modify this repo to make it fit on 3D images (64 by 64 by 64)

I have a couple questions.

1, Why did you only take the first Conv2d layer here?
image

2, I noticed that if I reset "backprop = Backprop(model)", and call "backprop.visualize" again, the "_record_gradients(module, grad_in, grad_out)" will be called twice. If I repeat again, the " _record_gradients(module, grad_in, grad_out)" will be called 3 times. This continue to grow each time I reset "backprop = Backprop(model)". Do you know why? This is shown below.
-------------------------------------------------------------------------------
image
-------------------------------------------------------------------------------
image
-------------------------------------------------------------------------------
image
-------------------------------------------------------------------------------
image
-------------------------------------------------------------------------------

3, I had to remove the line self.model.eval() in the initiation of Backprop to get values for gradients; otherwise the gradient is going to be zero everywhere.

Thanks! Please let me know if you know what happened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions