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

Convert custom images to TFRecord failed | invalid syntax #97

Open
wangzizhe opened this issue Jun 15, 2021 · 0 comments
Open

Convert custom images to TFRecord failed | invalid syntax #97

wangzizhe opened this issue Jun 15, 2021 · 0 comments

Comments

@wangzizhe
Copy link

Hi,
I'm facing an issue while convert my custom image dataset to TFRecord. The error is as follows:


image


Under stylegan2-ada folder I created a folder called datasets and I put the folder of my custom images (name: wsi) under folder datasets. So it's like

stylegan2-ada
│   dataset_tool.py   
└───datasets
│   └───wsi
│       │   xxx1.png
│       │   xxx2.png
│       │   ...

Then I modified the codes described here as this python dataset_tool.py create_from_images ./datasets/wsi ./datasets/wsi and run it:


image


Then this error comes as the first picture shows: SyntaxError: invalid syntax

I don't really understand what the different between ~/datasets/custom and ~/custom-images

What is the reason of this problem and what's the right way to convert custom images to TFRecords?

Thanks a lot 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