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

Added preprocess and reshape image dataset function #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Thirunayan22
Copy link

The StyleGAN2 model requires all images in the dataset to be of uniform size , currently this pre-processing stage has to be done manually , I have developed a helper function which can reshape all images in a given source directory to be of the shape that can be specified and save it in another specified directory.In addition I have also updated the Readme.md to include this change and show how the command should be executed in the terminal.

The Pillow(PIL) library is used for reshaping the images and tqdm is used for visualizing the progress.
style_gan2
style_gan2_completed

@Thirunayan22
Copy link
Author

@tkarras , Can you please kindly review my pull request here. Eagerly awaiting your reply.

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

Successfully merging this pull request may close these issues.

1 participant