Learn two-stage, one-stage, anchor free algorithm