A two-stage learning framework with a beam image dataset for automatic laser resonator alignment | Synapse