ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

'VAE' object has no attribute 'vae_dtype' ?

Open joshgura opened this issue 1 year ago • 6 comments

Your question

searched the internet, no top result for 'VAE' object has no attribute 'vae_dtype'

trying to use ae.safetensors (the vae) for Flux with the workflow: https://github.com/Ling-APE/ComfyUI-All-in-One-FluxDev-Workflow

Logs

Error occurred when executing VAEDecode:

'VAE' object has no attribute 'vae_dtype'

  File "/home/username/opt/ComfyUI/execution.py", line 313, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/opt/ComfyUI/execution.py", line 188, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/opt/ComfyUI/execution.py", line 165, in map_node_over_list
    process_inputs(input_dict, i)
  File "/home/username/opt/ComfyUI/execution.py", line 154, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/opt/ComfyUI/nodes.py", line 284, in decode
    return (vae.decode(samples["samples"]), )
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/username/opt/ComfyUI/comfy/sd.py", line 313, in decode
    memory_used = self.memory_used_decode(samples_in.shape, self.vae_dtype)
                                                            ^^^^^^^^^^^^^^

Other

No response

joshgura avatar Aug 16 '24 09:08 joshgura

+1

D1-3105 avatar Sep 06 '24 19:09 D1-3105

+1

ywan614 avatar Sep 10 '24 05:09 ywan614

+1

TheConanRider avatar Sep 26 '24 21:09 TheConanRider

+1

akshtray avatar Oct 07 '24 15:10 akshtray

+1

0002kgHg avatar Oct 08 '24 04:10 0002kgHg

This issue generally occurs when an incorrect model is loaded through the VAE Loader. Check the model file.

ltdrdata avatar Oct 08 '24 06:10 ltdrdata

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Feb 23 '25 11:02 github-actions[bot]