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

Support tiling #106

Open
gartia opened this issue Dec 7, 2023 · 0 comments
Open

Support tiling #106

gartia opened this issue Dec 7, 2023 · 0 comments

Comments

@gartia
Copy link

gartia commented Dec 7, 2023

I made a pr to ggml to add circular padding, would SD need anything else for this?

It seems like pytorch SD implementation you just replace the 0 padding with a circular method.

    def apply_circular(self, enable):
        if self.circular_enabled == enable:
            return

        self.circular_enabled = enable

        for layer in [layer for layer in self.layers if type(layer) == torch.nn.Conv2d]:
            layer.padding_mode = 'circular' if enable else 'zeros'

Is 0 padding already implemented in SD cpp? if so would it also just be this easy

There is also more advanced methods such as torus wrapping the tensor, but i would like to just test this before something like that

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

No branches or pull requests

1 participant