d-ailin / GDN

Implementation code for the paper "Graph Neural Network-Based Anomaly Detection in Multivariate Time Series" (AAAI 2021)
MIT License
490 stars 142 forks source link

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

Open mhy139 opened 1 year ago

mhy139 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.