init checking frame offsets
init
finish training_models