def get_callbacks(model_name='model', root_dir='logs/fit/', monitor='val_categorical_accuracy', mode='max', save_freq='epoch', save_best_only=True):
    log_dir = os.path.join(root_dir, model_name)
    tensorboard = TensorBoardFix(log_dir=log_dir, histogram_freq=1, update_freq=50)
    save_model = ModelCheckpoint(filepath=os.path.join(log_dir, 'model.h5'), save_weights_only=False, monitor=monitor, mode=mode, save_best_only=save_best_only, save_freq=save_freq)
    return [tensorboard, save_model]
def get_callbacks(model_name='model', root_dir='logs/fit/', monitor='val_categorical_accuracy', mode='max', save_freq='epoch', save_best_only=True):
    log_dir = os.path.join(root_dir, model_name)
    tensorboard = TensorBoardFix(log_dir=log_dir, histogram_freq=1, update_freq=50)
    save_model = ModelCheckpoint(filepath=os.path.join(log_dir, 'model.h5'), save_weights_only=False, monitor=monitor, mode=mode, save_best_only=save_best_only, save_freq=save_freq)
    return [tensorboard, save_model]