Skip to content

How to fix the stages of the backbone when I finetune a model? #650

Answered by ZJU-lishuang
ZJU-lishuang asked this question in Q&A
Discussion options

You must be logged in to vote

shell
bash tools/dist_train.sh configs/recognition/tsm/tsm_r50_1x1x8_50e_realviolent_rgb.py 2 --work-dir work_dirs/tsm_r50_1x1x8_50e_realviolent_lr0025_k400_freeze --validate --seed 0 --deterministic
config

tsm_r50_1x1x8_50e_realviolent_rgb.txt

And using find_unused_parameters = True solves the problem.
Thanks.

Replies: 7 comments

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
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #646 on February 25, 2021 07:18.