Comfy-Org / Comfy-Org/ComfyUI

Error occurred when executing VAEDecode:

Open
#2,431 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

When i submit my prompt everything works until it gets to the VAEDecode node (im running the default workspace right now) it stops and i get this message:

Error occurred when executing VAEDecode:

HIP out of memory. Tried to allocate 2.25 GiB. GPU 0 has a total capacty of 7.98 GiB of which 1.36 GiB is free. Of the allocated memory 6.06 GiB is allocated by PyTorch, and 190.07 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_HIP_ALLOC_CONF

File "/home/vortex1x1x1x/ComfyUI/execution.py", line 154, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/vortex1x1x1x/ComfyUI/execution.py", line 84, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/home/vortex1x1x1x/ComfyUI/execution.py", line 77, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/vortex1x1x1x/ComfyUI/nodes.py", line 267, in decode
return (vae.decode(samples["samples"]), )
File "/home/vortex1x1x1x/ComfyUI/comfy/sd.py", line 240, in decode
pixel_samples = self.decode_tiled_(samples_in)
File "/home/vortex1x1x1x/ComfyUI/comfy/sd.py", line 209, in decode_tiled_
comfy.utils.tiled_scale(samples, decode_fn, tile_x, tile_y, overlap, upscale_amount = 8, output_device=self.output_device, pbar = pbar))
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/comfy/utils.py", line 418, in tiled_scale
ps = function(s_in).to(output_device)
File "/home/vortex1x1x1x/ComfyUI/comfy/sd.py", line 205, in
decode_fn = lambda a: (self.first_stage_model.decode(a.to(self.vae_dtype).to(self.device)) + 1.0).float()
File "/home/vortex1x1x1x/ComfyUI/comfy/ldm/models/autoencoder.py", line 202, in decode
dec = self.decoder(dec, **decoder_kwargs)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 639, in forward
h = self.up[i_level].upsample(h)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 72, in forward
x = self.conv(x)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/comfy/ops.py", line 43, in forward
return super().forward(*args, **kwargs)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 460, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/vortex1x1x1x/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 456, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,

i have an rx 7600 which has 8gb of vrram and i have 16gb of ram

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.