Skip to content

Confusion about the forward function of the modified ResNet class #1

Description

@quchanhub

Hi,

In the forward function of the ResNet class in ./mmdetection_variable/mmdet/models/backbones/resnet.py why do you use this:

nips_img.data = new_imgs
nips_bpp.data = bpg_bpps

This breaks the gradient backpropagation path and gradients coming from later layers will not propagate back through the image_compressor/pre_processor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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