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

Data root structure #2

Open
ZhouCX117 opened this issue Aug 29, 2023 · 4 comments
Open

Data root structure #2

ZhouCX117 opened this issue Aug 29, 2023 · 4 comments

Comments

@ZhouCX117
Copy link

Hi, thanks for your interesting work! What's your data root structure? I meet some mistakes when reading the datasets.

@Suimingzhe
Copy link

Hi, thanks for your interesting work! What's your data root structure? I meet some mistakes when reading the datasets.

I think there may be some problems in this codes when reading the datasets due to some carelessness. I reconstructed "samples_with_embeddings_folder_dataset.py", as long as the image and its embedding are corresponding. You can try it.

@ZhouCX117
Copy link
Author

@Suimingzhe Could you provide the related code? Thanks! I haven't use ffhq dataset before, and my data root structure is as follows. I revise the load_img_paths function in the extract_face_embeddings_from_dir.py.def load_img_paths(datadir): """load num_imgs many FFHQ images""" dir_files = sorted(os.listdir(datadir)) image_list=[] for f_name in dir_files: for img_file in os.listdir(os.path.join(datadir, f_name)): if img_file.endswith(".jpg") or img_file.endswith(".png"): image_list.append(os.path.join(datadir, f_name,img_file)) return image_list
image
image

@panigrahidileep
Copy link

panigrahidileep commented Feb 13, 2024

i'm also facing some issues with "samples_with_embeddings_folder_dataset.py", it was throwing the error. @Suimingzhe if you have updated script could you please provide. @fdbtrs @ZhouCX117
image

@LiuXiYing
Copy link

Even in the new version of the code, I encountered the same issue. Has anyone solved it?

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

4 participants