Skip to content
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

OSError: [Errno 22] Invalid argument: './pretrained//best_04|18-23:10:14.pt' #67

Open
mhy139 opened this issue Apr 18, 2023 · 3 comments

Comments

@mhy139
Copy link

mhy139 commented Apr 18, 2023

I used the data under the "Others" TAB in your readme.md file.The above error occurred after the run finished.Why is that?

@zhl5621
Copy link

zhl5621 commented Apr 19, 2023

I also encountered the same problem. I suspected it was a problem with the time format, so I changed %m.%d-%H:%M:%S to %m-%d-%H_%M_%S, and there was no error when saving the model. Of course, you can use other name as long as you change self.datestr = now.strftime('%m.%d-%H:%M:%S') in the main.py to something else.

@mhy139
Copy link
Author

mhy139 commented Apr 19, 2023

Thank you very much for your advice on this problem.The problem was successfully solved according to your method.If it is convenient, could you explain why?

@zhl5621
Copy link

zhl5621 commented Apr 19, 2023

The reason may be simple, WIN11 file names cannot contain any of the following characters: \/:*?"<>|.
It is obvious that there are significant issues with %m.%d-%H:%M:%S. However, it seems that the period (.) is also not allowed, which I am not quite sure about.

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

No branches or pull requests

2 participants