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: [WinError 123] The filename, directory name, or volume label syntax is incorrect: #30

Open
jtSouless opened this issue Jan 3, 2022 · 0 comments

Comments

@jtSouless
Copy link

jtSouless commented Jan 3, 2022

Hi everyone, I've been tinkering with stylegan2 for the past week or 2 and have stumbled across this page to be able to train portrait versions of pictures.

I have thus stumbled across an issue when trying to train the data I have prepared.

python run_training.py --num-gpus=1 --use-raw=false --data-dir=D:\Training_Data\FP_Project\Resize_Images --config=config-f --dataset=D:\Training_Data\FP_Project\Dest_Images --mirror-augment=true --metric=none --total-kimg=20000 --min-h=10 --min-w=6 --res-log2=7 --result-dir='D:\Training_Data\FP_Project\Results'

Upon running the above code I encountered the error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\Training_Data\\FP_Project\\Results\\00000-stylegan2-D:'

I have tried various fixes on stackoverflow such as encapsulating the --result-dir in double quotes("") or single quotes('') and even adding double back slashes(\) in between the file directories. But to no avail.
I have even tried placing a 'r' in front of the file path to try designating the filepath as a raw string, but it resulted in this error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'rD:'

I went as far as to edit the default value of '--result-dir' and running 'run_training.py' without --result-dir as part of the argument. All attempts resulted in the same error.

If anyone could provide any solutions as to how I should go about fixing this issue it would be very much appreciated.

Thanks in advance!!!

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

1 participant