Skip to content

Fix the bug of checkpoint saving induced by path formatting. - #10

Open
Leixinjonaschang wants to merge 1 commit into
mshoe:mainfrom
Leixinjonaschang:fix/ckpt_saving
Open

Fix the bug of checkpoint saving induced by path formatting.#10
Leixinjonaschang wants to merge 1 commit into
mshoe:mainfrom
Leixinjonaschang:fix/ckpt_saving

Conversation

@Leixinjonaschang

Copy link
Copy Markdown
Contributor

Description
When saving the checkpoint, encountered error message: TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'.
Here, the checkpoint dir is a pathlib.Path object (PosixPath on Linux). The Path object does not support direct concatenation of strings using the plus sign +.

Change
Updated checkpoint saving line in PARC/diffusion/mdm.py

Impact
The checkpoint can be saved successfully after the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant