I tried loading my saved .h5 model and predicting with that model, i'm getting error list index out of range
Try these:

import everything from tensorflow keras API.
tf.keras.models.load_model(&quot;./saved_models/our_model.h5&quot;, compile=False) (make sure you have model and weights both in the file)