morphism:

‘RoIAlignFunctionBackward’ object has no attribute ‘aligned_height’


The thing to know here is that the first argument, which more commonly is called ctx in PyTorch examples because it is NOT a self object is of type RoIAlignFunctionBackward. The code tries to access self.aligned_width but never assigned it.
Best regards
Thomas