Hello JimXu,
Providing that all the markers have at least two projections on the aligned images, the following code will apply the coordinate information to reference and scale the model:
chunk = Metashape.app.document
for marker in chunk.markers:
marker.reference.enabled = True
chunk.updateTransform()