renamed model_name to frame_model in generator