Skip to content

ModelCheckpoint does not save checkpoints #381

@Menion93

Description

@Menion93

This same code worked in the past version, but now it doesn't save the checkpoints anymore.

I tried with
MODEL_OUTPUT = 'example/hello'
MODEL_OUTPUT = 'example/hello/'
MODEL_OUTPUT = 'example/hello/weights'

with 'example/hello/' as an existing folder

checkpoint_callback = ModelCheckpoint(
        filepath='%s/' % MODEL_OUTPUT,
        save_best_only=True,
        verbose=True,
        monitor='val_loss',
        mode='min'
    )

    early_stop_callback = EarlyStopping(monitor='val_loss', patience=5)

    tt_logger = CMLLogger(LOG_DIR)

    trainer = Trainer(logger=tt_logger,
                      row_log_interval=2,
                      checkpoint_callback=checkpoint_callback,
                      early_stop_callback=early_stop_callback,
                      gradient_clip_val=0.5,
                      gpus=gpus,
                      check_val_every_n_epoch=1,
                      max_nb_epochs=99999,
                      train_percent_check=train_frac,
                      log_save_interval=5,
                     )

Desktop (please complete the following information):

  • OS:linux/mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions