How to fix the stages of the backbone when I finetune a model? #650
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
You can reference mmaction2/mmaction/models/backbones/x3d.py Line 458 in 0149a0e |
Beta Was this translation helpful? Give feedback.
-
I try to modify the config. single gpu is ok. |
Beta Was this translation helpful? Give feedback.
-
@ZJU-lishuang Which backbone are you using? The backbone codes may need to be modified too. @congee524 could offer some help if more details are provided. |
Beta Was this translation helpful? Give feedback.
-
Try to set |
Beta Was this translation helpful? Give feedback.
-
shell tsm_r50_1x1x8_50e_realviolent_rgb.txt And using |
Beta Was this translation helpful? Give feedback.
-
@innerlee @congee524 How about adding some docs for all |
Beta Was this translation helpful? Give feedback.
-
Add it to FAQ |
Beta Was this translation helpful? Give feedback.
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.