Skip to content

Commit

Permalink
fix: πŸ› automatically disable tiling if seamless is on
Browse files Browse the repository at this point in the history
Artifacts shows up again when using both on the VAE Decode
  • Loading branch information
melMass committed Oct 9, 2023
1 parent 8f90986 commit 4605f74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nodes/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import torch

from ..log import log


class VaeDecode_:
"""Wrapper for the 2 core decoders but also adding the sd seamless hack, taken from: FlyingFireCo/tiled_ksampler"""
Expand Down Expand Up @@ -30,6 +32,11 @@ def decode(
self, vae, samples, seamless_model, use_tiling_decoder=True, tile_size=512
):
if seamless_model:
if use_tiling_decoder:
log.error(
"You cannot use seamless mode with tiling decoder together, skipping tiling."
)
use_tiling_decoder = False
for layer in [
layer
for layer in vae.first_stage_model.modules()
Expand Down

0 comments on commit 4605f74

Please sign in to comment.