Skip to content

Added preprocess and reshape image dataset function#15

Open
Thirunayan22 wants to merge 1 commit into
NVlabs:masterfrom
Thirunayan22:image_resizing_feature
Open

Added preprocess and reshape image dataset function#15
Thirunayan22 wants to merge 1 commit into
NVlabs:masterfrom
Thirunayan22:image_resizing_feature

Conversation

@Thirunayan22
Copy link
Copy Markdown

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
Copy Markdown
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