Skip to content

ModelCheckpoint wipes out current directory #394

@neggert

Description

@neggert

@williamFalcon I think this is what you were seeing in #389. If we let the Trainer create the default ModelCheckpoint callback and don't use TestTubeLogger, the prefix ends up being set to the current directory. Then, when ModelCheckpoint tries to clean up previous checkpoints, it wipes out everything in the current directory.

Relevant bits of code:

The most obvious fix is to provide a better default checkpoint prefix, but there would still be a lurking footgun for a user who sets default_save_path incorrectly. Should we maybe insist that the checkpoint directory not exist before training starts, or that it be empty?

Metadata

Metadata

Assignees

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