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

Help : Cant run comfyui #6343

Closed
ChaChrist25 opened this issue Jan 4, 2025 · 11 comments
Closed

Help : Cant run comfyui #6343

ChaChrist25 opened this issue Jan 4, 2025 · 11 comments
Labels
User Support A user needs help with something, probably not a bug.

Comments

@ChaChrist25
Copy link

Your question

I can't use comfyui to run flux 1.D
As a newbie, I can't solve this problem.

I have the following log:

F:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
Adding extra search path checkpoints path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path vae path/to/stable-diffusion-webui/models/VAE
Adding extra search path loras path/to/stable-diffusion-webui/models/Lora
Adding extra search path loras path/to/stable-diffusion-webui/models/LyCORIS
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/ESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/RealESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/SwinIR
Adding extra search path embeddings path/to/stable-diffusion-webui/embeddings
Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks
Adding extra search path controlnet path/to/stable-diffusion-webui/models/ControlNet
[START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-01-04 15:06:42.283092
** Platform: Windows
** Python version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
** Python executable: F:\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: F:\ComfyUI_windows_portable\ComfyUI
** Log path: F:\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
7.8 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6140 MB, total RAM 32488 MB
pytorch version: 2.5.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4050 Laptop GPU : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: F:\ComfyUI_windows_portable\ComfyUI\web
Web extensions folder found at F:\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals
[ComfyUI-Easy-Use] server: v1.2.6 Loaded
[ComfyUI-Easy-Use] web root: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded

Loading: ComfyUI-Impact-Pack (V8.1.6)

jjk_util loding

Loading: ComfyUI-Manager (V2.55.5)

ComfyUI Version: v0.3.7-42-gf4cdede | Released on '2024-12-17'

[SD Prompt Reader] Node version: 1.3.4
[SD Prompt Reader] Core version: 1.3.5
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ReActor] - STATUS - Running v0.5.2-a2 in ComfyUI
Torch version: 2.5.1+cu124
F:\ComfyUI_windows_portable
############################################
F:\ComfyUI_windows_portable\custom_nodes\ComfyUI-Universal-Styler\CSV
############################################
[]
############################################
(pysssss:WD14Tagger) [DEBUG] Available ORT providers: AzureExecutionProvider, CPUExecutionProvider
(pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider

Comfyroll Studio v1.76 : 175 Nodes Loaded

** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki

[comfy_mtb] | INFO -> loaded 94 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

Initializing ControlAltAI Nodes

[rgthree-comfy] Loaded 42 fantastic nodes. 🎉

WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: ffmpeg_bin_path is not set in F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 220 nodes successfully.

    "The secret to getting ahead is getting started." - Mark Twain

Import times for custom nodes:
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\example_node.py
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Embedding_Picker
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Image-Saver
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Jjk-Nodes
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ControlAltAI-Nodes
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-prompt-reader-node
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.1 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
0.2 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
0.5 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
1.1 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
1.1 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui
1.4 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
1.5 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
1.8 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb

Starting server

To see the GUI go to: http://127.0.0.1:8188
[Impact Pack] Wildcards loading done.
FETCH DATA from: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
BilboX LUTs path set to: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui\luts
BilboX LUTs path set to: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui\luts
[comfy_mtb] | INFO -> Found multiple match, we will pick the last path/to/stable-diffusion-webui/models/SwinIR
['F:\ComfyUI_windows_portable\ComfyUI\models\upscale_models', 'path/to/stable-diffusion-webui/models/ESRGAN', 'path/to/stable-diffusion-webui/models/RealESRGAN', 'path/to/stable-diffusion-webui/models/SwinIR']
[comfy_mtb] | WARNING -> Face restoration models not found.
got prompt
Using pytorch attention in VAE
Using pytorch attention in VAE

F:\ComfyUI_windows_portable>pause
Press any key to continue . . .

Screenshot 2025-01-04 144148

Logs

No response

Other

No response

@ChaChrist25 ChaChrist25 added the User Support A user needs help with something, probably not a bug. label Jan 4, 2025
@LukeG89
Copy link

LukeG89 commented Jan 4, 2025

6GB+32GB for Flux Dev is pretty low, maybe you can try setting weight dtype to fp8 in Load Diffusion Model.

If it's not enough, I think you have to use GGUF models: ComfyUI-GGUF

@ChaChrist25
Copy link
Author

ChaChrist25 commented Jan 4, 2025

6GB+32GB for Flux Dev is pretty low, maybe you can try setting weight dtype to fp8 in Load Diffusion Model.

If it's not enough, I think you have to use GGUF models: ComfyUI-GGUF

I'm not sure, But I can used Flux Dev + Ultimate SD Upscale on this spec before.
And now when I re-install comfyui after last time used (on Oct 2023), I cant generate flux.

@LukeG89
Copy link

LukeG89 commented Jan 4, 2025

You could try starting ComfyUI with --lowvram command argument

@LukeG89
Copy link

LukeG89 commented Jan 4, 2025

You could try starting ComfyUI with --lowvram command argument

@ChaChrist25 If you don't know how to do it, you just have to edit run_nvidia_gpu.bat file with notepad and add --lowvram

image

@ChaChrist25
Copy link
Author

You could try starting ComfyUI with --lowvram command argument

Still doesn't work for me.

F:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --lowvram --windows-standalone-build
Adding extra search path checkpoints path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path vae path/to/stable-diffusion-webui/models/VAE
Adding extra search path loras path/to/stable-diffusion-webui/models/Lora
Adding extra search path loras path/to/stable-diffusion-webui/models/LyCORIS
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/ESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/RealESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/SwinIR
Adding extra search path embeddings path/to/stable-diffusion-webui/embeddings
Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks
Adding extra search path controlnet path/to/stable-diffusion-webui/models/ControlNet
[START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-01-04 16:26:33.408633
** Platform: Windows
** Python version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
** Python executable: F:\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: F:\ComfyUI_windows_portable\ComfyUI
** Log path: F:\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
8.1 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6140 MB, total RAM 32488 MB
pytorch version: 2.5.1+cu124
Set vram state to: LOW_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4050 Laptop GPU : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: F:\ComfyUI_windows_portable\ComfyUI\web
Web extensions folder found at F:\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals
[ComfyUI-Easy-Use] server: v1.2.6 Loaded
[ComfyUI-Easy-Use] web root: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded

Loading: ComfyUI-Impact-Pack (V8.1.6)

jjk_util loding

Loading: ComfyUI-Manager (V2.55.5)

ComfyUI Version: v0.3.7-42-gf4cdede | Released on '2024-12-17'

[SD Prompt Reader] Node version: 1.3.4
[SD Prompt Reader] Core version: 1.3.5
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ReActor] - STATUS - Running v0.5.2-a2 in ComfyUI
Torch version: 2.5.1+cu124
F:\ComfyUI_windows_portable
############################################
F:\ComfyUI_windows_portable\custom_nodes\ComfyUI-Universal-Styler\CSV
############################################
[]
############################################
(pysssss:WD14Tagger) [DEBUG] Available ORT providers: AzureExecutionProvider, CPUExecutionProvider
(pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider

Comfyroll Studio v1.76 : 175 Nodes Loaded

** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki

[comfy_mtb] | INFO -> loaded 94 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

Initializing ControlAltAI Nodes

[rgthree-comfy] Loaded 42 exciting nodes. 🎉

WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: ffmpeg_bin_path is not set in F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 220 nodes successfully.

    "The future belongs to those who believe in the beauty of their dreams." - Eleanor Roosevelt

Import times for custom nodes:
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\example_node.py
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Embedding_Picker
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Image-Saver
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Jjk-Nodes
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ControlAltAI-Nodes
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-prompt-reader-node
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
0.1 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
0.4 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
0.8 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
0.9 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
1.0 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
1.2 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui
1.3 seconds: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

To see the GUI go to: http://127.0.0.1:8188
[Impact Pack] Wildcards loading done.
FETCH DATA from: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
BilboX LUTs path set to: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui\luts
BilboX LUTs path set to: F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui\luts
[comfy_mtb] | INFO -> Found multiple match, we will pick the last path/to/stable-diffusion-webui/models/SwinIR
['F:\ComfyUI_windows_portable\ComfyUI\models\upscale_models', 'path/to/stable-diffusion-webui/models/ESRGAN', 'path/to/stable-diffusion-webui/models/RealESRGAN', 'path/to/stable-diffusion-webui/models/SwinIR']
[comfy_mtb] | WARNING -> Face restoration models not found.
got prompt
Using pytorch attention in VAE
Using pytorch attention in VAE

F:\ComfyUI_windows_portable>pause
Press any key to continue . . .

@LukeG89
Copy link

LukeG89 commented Jan 4, 2025

I would try both --lowvram and --disable-smart-memory

Disable smart memory should "aggressively" offload on RAM, let's see if it solves the crashing issue.

@liaosu0755
Copy link

I would try both --lowvram and --disable-smart-memory

Disable smart memory should "aggressively" offload on RAM, let's see if it solves the crashing issue.

I'm having the same problem, even the “flux1-schnell” model that worked before doesn't work anymore.I have 12G VRAM+32G DRAM

@liaosu0755
Copy link

I would try both --lowvram and --disable-smart-memory

Disable smart memory should "aggressively" offload on RAM, let's see if it solves the crashing issue.

I found the answer in anotherissues.#6282.

@LukeG89
Copy link

LukeG89 commented Jan 5, 2025

Ah, I just remembered that another possible reason for this issue could be the paging file: #6188 (comment)

@ChaChrist25
Copy link
Author

I would try both --lowvram and --disable-smart-memory
Disable smart memory should "aggressively" offload on RAM, let's see if it solves the crashing issue.

I found the answer in anotherissues.#6282.

✅ Increased the page file size in
✅ Increased the page file size more (Page file increase was not needed in the past)
✅ Updated ComfyUI Portable via the update scripts
✅ Updated ComfyUI Portable via ComfyUI manager
✅ Tried different workflows
✅ Updated Nvidia drivers to newest one
✅ Downgraded Nvidia drivers to the suggested lower version in these forums
✅ Upgraded to the Nvidia Studio drivers
✅ Turned it off and then on again several time (No really, just the IT Crowd)
✅ Tried a NEW Install of ComfyUI (Same Error)
✅ Updated ALL Nodes in workflow after ComfyUI update (Right click, repair node, so that it recreates)

It's doesn't work for me.

@ChaChrist25
Copy link
Author

Ah, I just remembered that another possible reason for this issue could be the paging file: #6188 (comment)

It's Working. Thank bro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support A user needs help with something, probably not a bug.
Projects
None yet
Development

No branches or pull requests

3 participants