Closed KarimPedemonte closed 2 years ago
@darioguidotti should this be addressed in pynever?
@sdemarch Yes, but I think it is legitimate to expect the root parameter to require the string to be formatted in this way. Given that it is not a blocking problem we can discuss it in the next meeting.
If the "Checkpoints root" parameter is set to a directory not ending with / (or \ in Windows), as in the first image below, the .pth.tar file containing the checkpoint is saved in the parent directory, with the name of the intended directory prepended to the file name. As shown in the second image, the file has its name preceded by "Desktop", and is saved in the /home/k directory instead of /home/k/Desktop. If the directory set in "Checkpoints root" ends with / (or \ in Windows), the program behaves as expected.