-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModelCheckpoint does not create full path #3001
Comments
I do not think that the trailing slash is the root problem. We also want that "my/path" should be interpreted as a path to a folder. |
how about having two parameters, |
I don't think we can make it required, because we have |
@awaelchli I mean trailing slash isn't the problem, discarding the last trailing slash is the problem. |
yeah it can be optional, no problem |
but @ydcjeff it should work with both 'my/path/' and 'my/path'. |
I think what jeff wants to say is that
vs.
in the former, filename = "c", and in the latter filename = "" |
yes, it's that. |
I think separate parameters |
Anyone can send a PR? |
let's discuss it on #3583. The approach suggested there will solve this issue. |
🐛 Bug
To Reproduce
Run
checkpoint_callback = ModelCheckpoint('my/path/')
Only
my
folder is created.I think this line discard the last trailing slash. So the directories are not created as intended when the paths are getting split.
Expected behavior
Path should be fully created.
The text was updated successfully, but these errors were encountered: