Applications of ML-Based Surrogates in Bayesian Approaches to Inverse Problems