title: ModelCheckpoint doesn't save the model
body: <p>I am trying to build a speech recognition model following this tutorial
  <a href="https://www.analyticsvidhya.com/blog/2019/07/learn-build-first-speech-to-text-model-python/" rel="nofollow noreferrer">https://www.analyticsvidhya.com/blog/2019/07/learn-build-first-speech-to-text-model-python/</a>
  there is 2 part, the first is a training model which output is the input of the second part ( testing model)</p>
  
  <p>at the end of the training model, there is this part which should save the result of the training</p>
  
  <pre><code>model = Model(inputs, outputs)
  model.summary()
  
  model.compile(loss='categorical_crossentropy',optimizer='adam',metrics=['acc'])
  
  es = EarlyStopping(monitor='val_loss', mode='min', verbose=1, patience=10, min_delta=0.0001) 
  mc = ModelCheckpoint('best_model.hdf5', monitor='val_acc', verbose=1, save_best_only=True, mode='max')
  </code></pre>
  
  <p>so the result should be saved in this file "best_model.hdf5"
  this model run without any error but I didn't found any file created 
  when I tried to load the model in testing model, I got an error message that this file wasn't found</p>
  
  <p>any help please ?</p>
  
  <p>keras version installed: 2.3.1</p>
  
  <p>update 1:
  I tried to know the location at which your code is running using:</p>
  
  <p><code>print(os.getcwd())</code></p>
  
  <p>I got the same direction of model file, I tried to put this location in the code to save in it and to load from it but still there is no file created and I got the same error message</p>
  
  <p>update 2:
  I add
  <code>print(os.listdi())</code>
  after ModelCheckpoint function and also I didn't find it</p>