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 handling of multiple age inputs from user #68

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

Conversation

RazaProdigy
Copy link

In this pull request, I have made improvements to the age input handling in the Age Progression AI code. The original code had a fixed set of target ages or accepted a single target age as a string. I've expanded the functionality to allow for the processing of multiple age inputs provided as a comma-separated list.

  1. Handling Multiple Age Inputs: Instead of only accepting a single target age as a string, the code now accepts a comma-separated list of target ages. For example, you can provide "10,20,30" as the target_age input.

  2. Dynamically Generating Age Transformers: With the ability to provide multiple target ages, the code dynamically generates AgeTransformer instances for each specified age. This allows for the processing of multiple age transformations in a single run.

  3. Improved Output File Handling: The output file format is now determined based on whether a single age transformation or multiple transformations are requested. If only one transformation is requested, the output is saved as a PNG image. If multiple transformations or the "default" target age set is provided, the output is saved as a GIF animation.

Please review and merge this pull request to benefit from these improvements in age input handling. Thank you!

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