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

Feature/ssim interpolation #42

Merged
merged 5 commits into from
Nov 15, 2023
Merged

Conversation

Madrawn
Copy link

@Madrawn Madrawn commented Nov 14, 2023

Copies the ssim algorithm from the "shift-attention" plugin for the linear fixed process. If enabled it tries to keep the difference between successive frames below a certain difference threshold. This is different from just raising the number of frames per stage, as it adds more frames when the image changes faster from step to step and less when it changes slow.
Without ssim:

travel-00177.mp4

With ssim (threshold 0.5) enabled:

travel-00176.mov
  • Also fixes deprecated "script_args" parameter by just getting the possible parameters by looking with "inspect"

Daniel Dengler added 5 commits November 14, 2023 10:14
image for dev tests

The `scribble_debug` function has been added to draw text on an image
for checking in development. This function is used to write debug text
on an image and is useful for debugging and verifying the code during
development. The function creates a PIL ImageDraw object and uses it to
draw text on the given image.
prompt_travel.py

- Add a new SSIM blur slider to the script's prompt menu.
- The slider helps with images featuring many small changing details.
- The value of the slider ranges from 0 to 100 with a step of 1.
- Update the script's configuration list and arguments with the new
slider.
- Apply the GaussianBlur filter to the images based on the slider value.
- Use the blurred images for calculating distance in the script's main
loop.
- Enhance the script's functionality by considering the SSIM blur when
checking distances between images.
@Kahsolt
Copy link
Owner

Kahsolt commented Nov 15, 2023

Nice dude, I love this! Great thanks for your efforts!

@Kahsolt Kahsolt merged commit f6cf701 into Kahsolt:main Nov 15, 2023
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.

2 participants