ComfyUI: VAE issue #1554

Closed
opened 2025-11-11 14:47:22 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Derjyn on GitHub (Jul 18, 2024).

It currently isn't possible to use ComfyUI unless a model has a VAE baked in. There isn't anywhere in the UI to select a VAE, there isn't a default set in code (that I could find), and you can't start ComfyUI with an argument specifying a VAE.

Traceback (most recent call last):
  File "...\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\ComfyUI\ComfyUI\nodes.py", line 268, in decode
    return (vae.decode(samples["samples"]), )
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\ComfyUI\ComfyUI\comfy\sd.py", line 300, in decode
    memory_used = self.memory_used_decode(samples_in.shape, self.vae_dtype)
                                                            ^^^^^^^^^^^^^^
AttributeError: 'VAE' object has no attribute 'vae_dtype'
Originally created by @Derjyn on GitHub (Jul 18, 2024). It currently isn't possible to use ComfyUI unless a model has a VAE baked in. There isn't anywhere in the UI to select a VAE, there isn't a default set in code (that I could find), and you can't start ComfyUI with an argument specifying a VAE. ```!!! Exception during processing!!! 'VAE' object has no attribute 'vae_dtype' Traceback (most recent call last): File "...\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\ComfyUI\ComfyUI\nodes.py", line 268, in decode return (vae.decode(samples["samples"]), ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...\ComfyUI\ComfyUI\comfy\sd.py", line 300, in decode memory_used = self.memory_used_decode(samples_in.shape, self.vae_dtype) ^^^^^^^^^^^^^^ AttributeError: 'VAE' object has no attribute 'vae_dtype' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1554