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

Add WebP output with infotext stored in exif and options for quality #233

Merged

Conversation

zappityzap
Copy link
Collaborator

Add WebP output with options for lossless and quality.

  • Quality and lossless settings are found in the Automatic1111 settings under the AnimateDiff section.
  • Quality defaults to 95%. Lossless defaults to Off.
  • When saving lossless, quality adjusts compression and increases CPU usage.
  • Infotext is included and works with the PNG Info tab.

Based on #87

@continue-revolution continue-revolution changed the base branch from master to jared October 20, 2023 03:31
@continue-revolution continue-revolution merged commit 15dcc49 into continue-revolution:jared Oct 20, 2023
continue-revolution added a commit that referenced this pull request Oct 20, 2023
* QOL features and settings, backend cleanup for ease of maintenance, minor bug fixes (#87)

* QOL update

-Set mm_sd_v14 as the default instead of v15, as most end users tend to prefer it
-Load actual motion modules from the model folder instead of hardcoding v14 and v15 in the dropdown
-Add support for webp and apng file formats
-Add quality sliders and lossless options for webp and apng
-Add ability to format the file names
-Add ability to output to a custom folder, along with named subdirectories similar to the feature set for images

* Parity update, UX polish

-Brought injection code up to parity with Kosinkadink's ComfyUI's implementation
-Updated motion_module
-Updated groupnorm hack
-Removed apng option, it just doesn't work well in imageio's implementation, may return in future
-Add option to always save videos
-Add infotext to video generations
-Set UI parameters from infotext when pasting/restoring from params.txt
-Separated settings into separate py file
-Updated info for options
-made some function names more descriptive and moved some code around for readbility
-Make it so the infotext shown underneath the video after a generation reflects the actual video, not just main prompt

* Restore Timestep after video generation

-Fixes an issue that would occur when trying to generate images after generating video. No longer asserts.

* Unet script cleanup

* Groupnorm hack setting polish, fix video duration

-Don't hack groupnorm when not using a v1 module
-Enforce original groupnorm when not requested to be hacked. this avoid getting into a bad state when the groupnorm hack setting is changed mid-generation.
-Fix video duration
-Adjust spacing in unet_injection script

* Update README.md

* init

* don't change anything. Features will be added in future commits

* don't change anything. Features will be added in future commits

* don't change anything. Features will be added in future commits

* readme

* Add WebP output with infotext stored in exif and options for quality and lossless (#233)

Co-authored-by: zappityzap <you@example.com>

* Bug, pass -overwrite_original to exiftool (#234)

* fix (#227)

* pass -overwrite_original to exiftool

---------

Co-authored-by: Chengsong Zhang <continuerevolution@gmail.com>
Co-authored-by: zappityzap <you@example.com>

* Update README.md

* Update README.md

* Update animatediff_ui.py

* date

---------

Co-authored-by: JaredTherriault <noirjt@live.com>
Co-authored-by: zappityzap <128872140+zappityzap@users.noreply.github.com>
Co-authored-by: zappityzap <you@example.com>
@zappityzap zappityzap deleted the feature-webp branch October 20, 2023 13:39
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.

None yet

2 participants