Skip to content

Smart border inpainting mode #176

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

Closed
wants to merge 21 commits into from
Closed

Conversation

kabachuha
Copy link
Member

Addresses the issue of border stripes, fixes #120

Rewrite of #74 while also getting warp masks directly from depth warping code

@kabachuha kabachuha marked this pull request as draft December 27, 2022 20:37
@kabachuha
Copy link
Member Author

Uhh, freezes again 😩

@kabachuha
Copy link
Member Author

Now I'll use #78 as an inspiration to help fix these issues

finally fixed not diffusing

Co-Authored-By: Funofabot <[email protected]>
@kabachuha kabachuha marked this pull request as ready for review December 27, 2022 23:10
@kabachuha
Copy link
Member Author

now it's a mess in 3D mode instead 😞

@kabachuha kabachuha marked this pull request as draft December 27, 2022 23:13
@Funofabot
Copy link
Contributor

Funofabot commented Dec 28, 2022

I will review this, did you happen to look at the branch I made to make this, I found stuff in reset pipeline in my last run on this. Ill do a full review tonight. I want this change.

I want the reset pipeline in its own file. reset_webui_pipeline.py to remove it from generate.py. But we can address that when I do the review.

I had thoughts on cadence as well because this wont cover cadence and we need to address it. Ill test your iteration to see.

@Funofabot
Copy link
Contributor

Funofabot commented Dec 28, 2022

I cannot get to this tonight. If you have time, make the changes I replied in DM in discord. I want the larger functionality moved to individual files. So that the code base is more maintainable. I will have time tomorrow and if you do not make the changes I will undoubtedly have changes I want made. Read your DMs from me. But what I am trying to accomplish is that when we split functionality we need to add a new file to encapsulate that functionality so that when we maintain that, its a easy deal.

Thank you my friend. You are a wonderful person.

N.B. This time we will be able to push this.

Copy link
Contributor

@Funofabot Funofabot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not working, it still makes stripes.

I will make something that will enlighten this. I want to save the edits to deforum, args, and settings to not have to rewrite those parts as they are a pain.

I don't think that you need to check for too small of an area, perhaps just check extrema when the mask is generated if its all 1's or white, then set the mask to None. It will get ignored in generate.py

In my version I used a white image as the basis for the warp with zeros as the warp border mode. Then I inverted it to send it as a mask that works in webui pipeline. The reasoning is because grid_sample provides zeros and not ones as a border mode. Otherwise we would start with a black image and fill the border with ones and not need to invert.

The issue with cadence still shows up where it stretches the border or zeros without the extra inpaint steps.

Color correction does not happen to the newly inpainted borders. And that results in in consistency when the strength schedule is high.

I need more time to think about it. Keep this open and it is bound to happen.

@kabachuha kabachuha added the help wanted Extra attention is needed label Jan 28, 2023
@hithereai
Copy link
Contributor

@Funofabot status? anything? 👯

@kabachuha kabachuha marked this pull request as ready for review February 12, 2023 15:40
@hithereai
Copy link
Contributor

Just merged with main and tested, and it's not good. I don't think we should move on with this at its current stage.

With the "fix":

20230217075548.mp4

Without/ from our main version:

20230217075744.mp4

@kabachuha
Copy link
Member Author

Okay, time to scrap it and stop wasting energy on this approach

@kabachuha kabachuha closed this Feb 20, 2023
stride-srl pushed a commit to stride-srl/sd-webui-deforum that referenced this pull request Jun 26, 2023
Closes #148 
Closes #172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D enhancement New feature or request help wanted Extra attention is needed UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Inpainting for Consistency on Single Prompt Animations
3 participants