Skip to content

How to train the interaction head individually #50

Answered by fredzzhang
xiaoxiaoczw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xiaoxiaoczw,

The detector weights are in fact frozen already. We fine-tuned the object detector as a first stage and only train the interaction head next. The corresponding code is here.

    for p in upt.detector.parameters():
        p.requires_grad = False
    param_dicts = [{
        "params": [p for n, p in upt.named_parameters()
        if "interaction_head" in n and p.requires_grad]
    }]

Fred.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by fredzzhang
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@fredzzhang
Comment options

@xiaoxiaoczw
Comment options

@fredzzhang
Comment options

@xiaoxiaoczw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #49 on July 16, 2022 14:13.