mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-14 13:17:32 +00:00
Free memory before doing tiled decode.
This commit is contained in:
parent
b49616f951
commit
2865f913f7
@ -362,7 +362,8 @@ class VAE:
|
|||||||
return pixel_samples
|
return pixel_samples
|
||||||
|
|
||||||
def decode_tiled(self, samples, tile_x=None, tile_y=None, overlap=None):
|
def decode_tiled(self, samples, tile_x=None, tile_y=None, overlap=None):
|
||||||
model_management.load_model_gpu(self.patcher)
|
memory_used = self.memory_used_decode(samples.shape, self.vae_dtype) #TODO: calculate mem required for tile
|
||||||
|
model_management.load_models_gpu([self.patcher], memory_required=memory_used)
|
||||||
dims = samples.ndim - 2
|
dims = samples.ndim - 2
|
||||||
args = {}
|
args = {}
|
||||||
if tile_x is not None:
|
if tile_x is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user