Skip to content

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: #30

@jtSouless

Description

@jtSouless

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions