Modelo de carga de Keras com objetos personalizados
model = load_model(path,custom_objects={"weighted_loss":weighted_loss})
Selfish Sable
model = load_model(path,custom_objects={"weighted_loss":weighted_loss})