You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my question: How to save vit-base- model? when I train by beit_beit-base**-p16_8xb256-amp-coslr-300e_in1k.py ,I got a pth include the weight of backbone ,targetgennerator and head part。How to save the weight of backbone only?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://github.com/open-mmlab/mmpretrain/tree/main/configs/beit
Train/Test Command
Prepare your dataset according to the docs.
Train:
python tools/train.py configs/beit/beit_beit-base-p16_8xb256-amp-coslr-300e_in1k.py
Test:
python tools/test.py configs/beit/benchmarks/beit-base-p16_8xb128-coslr-100e_in1k.py https://download.openmmlab.com/mmselfsup/1.x/beit/beit_vit-base-p16_8xb256-amp-coslr-300e_in1k/vit-base-p16_ft-8xb128-coslr-100e_in1k/**vit-base-p16**_ft-8xb128-coslr-100e_in1k_20221128-0ca393e9.pth
This is my question:
How to save vit-base- model? when I train by beit_beit-base**-p16_8xb256-amp-coslr-300e_in1k.py ,I got a pth include the weight of backbone ,targetgennerator and head part。How to save the weight of backbone only?
Beta Was this translation helpful? Give feedback.
All reactions