torchlm icon indicating copy to clipboard operation
torchlm copied to clipboard

Will PipNet allow gradients to flow through?

Open mdda opened this issue 3 years ago • 0 comments

I will just freeze the weights in the PipNet model itself, but I'd like to get gradients (to adjust aspects of the input image) from a loss created by the Landmarks vs some target Landmarks.

It looks like the code 'flows through' from input image to Landmark predictions - does this sound right? Or is there some strange discretisation step that would make the gradients nonsense?

mdda avatar Oct 09 '22 18:10 mdda