In-situ optimization of thermoset composite additive manufacturing via deep learning and computer vision