Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with loading models and vae #29

Open
sanjay-uzu opened this issue Nov 27, 2023 · 3 comments
Open

Problem with loading models and vae #29

sanjay-uzu opened this issue Nov 27, 2023 · 3 comments

Comments

@sanjay-uzu
Copy link

sanjay-uzu commented Nov 27, 2023

image
Global Models Cache:
Ckpt:
[1] taureal (ids: None)
Vae:
[1] vae-ft-mse-840000-ema-pruned.vae (ids: None)
Traceback (most recent call last):
File "E:\ComfyUI\workflow_api.py", line 166, in
main()
File "E:\ComfyUI\workflow_api.py", line 137, in main
ksampler_efficient_48 = ksampler_efficient.sample(
File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 693, in sample
globals_cleanup(prompt)
File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\tsc_utils.py", line 209, in globals_cleanup
id_array = [id for id in tup[-1] if str(id) in prompt.keys()]
File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\tsc_utils.py", line 209, in
id_array = [id for id in tup[-1] if str(id) in prompt.keys()]
AttributeError: 'NoneType' object has no attribute 'keys'

OS: Windows

@pydn
Copy link
Owner

pydn commented Nov 27, 2023

This is hard to troubleshoot without the workflow_api.py file and knowledge of the custom node

@zjcong
Copy link

zjcong commented Mar 6, 2024

I discovered the problem being that the generate model name doesnt correct parse ''. Check if your model name (path) contains backlash. For example if you see

 checkpointloadersimple_1 = checkpointloadersimple.load_checkpoint(
            ckpt_name="SDXL\something.safetensors"
        )

change it to

 checkpointloadersimple_1 = checkpointloadersimple.load_checkpoint(
            ckpt_name="SDXL\\something.safetensors"
        )

see if such solves your problem

@atmaranto
Copy link

If that's the issue, I did fix that bug on my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants