-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error generating samples mid 10-epoch changes #26
Comments
I have seen these runtime errors (system errors) occur when it doesn't like the output filename, or it can't find the file... The filename looks a bit suspicious:
It seems garbled, is this working when you use the script yourself? When you say it happens when saving every 10 epochs, are you saving more often than that (say every 5) and it just occurs on epochs that are multiples of 10? |
@guicattani Hi, did you get anywhere with this? |
@relativeflux Hi, I'm sorry to bother you but I run into the same problem when I'm trying to generate samples. I've already checked the code and I believe it is because of the differences in the python version. My version is 3.8 btw. Following are my explanation of this issue. In generate.py, at around line 134, there're two lines of code that are used to generate the full output file path:
Unfortunately, these two lines of code fail to work properly. The generated file path looks like something like the following if the given output path is D:\test which is definitely not a file path.
If I change those two lines into something like the following (basically manually assigning a file path to the program), everything works fine.
|
@Naming-isDifficult Thank you for bringing this to my attention, I shall fix. |
@Naming-isDifficult Looks like the actual culprit is this line:
which hardcodes a posix path. It's meant to pull off the epoch number from the checkpoint, but due to the hardcoded forward slash this is ineffective on Windows. @Naming-isDifficult I don't currently have access to a Windows machine, would you mind quickly testing it with the forward slash removed from that line? So just:
Many thanks! |
@relativeflux |
Much obliged, thank you for taking the time to pick this issue up and quickly test it. I shall push the fix shortly. |
My pleasure :) |
Thank you, same to you (although from the UK!). |
Hi everyone!
I'm having a trouble generating the samples each 10 epochs. The error I get is this:
Anaconda is current work directory is the project's root. I assume that this something of an error when creating the samples, but it works fine when I use the generate.py script
Generated and logdir currently look like this:
Any help is greatly appreciated, thanks!!!
The text was updated successfully, but these errors were encountered: