Disable xformers comfyui We would like to show you a description here but the site won’t allow us. You can add --use-pytorch-cross-attention to the ComfyUI startup parameters to disable xFormers. bat, then you're running webui without xformers enabled, but i haven't investigated how to delete the . 5、SDXL和SSD-1B等主流模型,兼容Lora和ControlNet功能。通过性能优化和灵活配置,用户可根据硬件条件选择最佳运行方式,实现更快速的AI图像生成。 The current workaround is to disable xformers with --disable-xformers when booting ComfyUI. 0. If you’re using ComfyUI and need to update the xformers package to ensure you have the latest features and improvements, follow these steps: Step 1: Locate the xformers folder. If the Cross attention optimization setting is either Automatic or xformers then xformers is used. May 22, 2024 · This is a known issue with xformers. 0で動くweb UIの高速化について解説しています。 Feb 14, 2025 · main. GIF split into multiple scenes Work around: Shorter your prompt and negative prompt Reduce resolution. - comfyanonymous/ComfyUI --disable-smart-memory One of these 3 (if not using xformers): --use-split-cross-attention --use-quad-cross-attention --use-pytorch-cross-attention Or installing xformers (it'll run by default if installed) Are all worth trying After that you would want to employ tricks within. py: error: argument --user-directory: D:\文档\ComfyUI\user is not a valid directory. The current workaround is to disable xformers by adding --disable-xformers when starting ComfyUI. If your GIF is splitting into multiple scenes, try the following: Shorten your prompt and negative prompt. whl, or what happens when if you compile it yourself. Reply reply valle_create The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. bat file: set COMMANDLINE_ARGS=--xformers Having it there doesn't force you to use xformers as the optimization, it just allows you to. Installation. 5 does not work when used with AnimateDiff. 退出Python解释器:如果您在Python解释器中使用Xformers,可以尝试退出Python解释器以关闭该库。 Jul 15, 2023 · --comfyui-disable-xformers. Disable xformers with --disable-xformers The current workaround is to disable xformers with --disable-xformers when booting ComfyUI. Aug 20, 2023 · 我们在使用webui的时候,会接触到各种启动参数,例如--autolaunch --xformers --medvram (启动完用默认浏览器打开,使用xformer,使用中度显存优化),那我们comfyui里是否也会有这些启动参数呢?答案当然是肯定的。那这些命令行分别是什么?官方没有文档。 In my case I've changed the place of using --xformers argument, and that solves my issue. This behaviour is the source of the following dependency conflicts. Jul 22, 2023 · Run ComfyUI 2) Run Ngrok in Terminal 2. py Traceback (most recent call last): File "C:\ComfyUI\main. GIF split into multiple scenes. Mar 22, 2023 · 「AUTOMATIC1111版web UIの画像生成処理をもっと速くしたい」「PyTorch 2. To use xformers, you need to have --xformers in the commandline arguments in the webui-user. --disable-cuda-malloc Apr 27, 2025 · Disable xFormers Optimization (disable-xformers) Function: Disable xFormers acceleration optimization; Simple Explanation: xFormers is like artist’s quick painting technique, disabling makes artist use traditional method; Recommendation: Keep enabled (unchecked) unless having issues; Default Hashing Function (default-hashing-function) Aug 1, 2023 · You signed in with another tab or window. bat file as suggested by many tutorials. 4. Just wondering if it's possible to turn off xformers once I have set it up on a1111 during installation? I used --xformers in the webui-user. py --listen it fails to start with this error: Dec 29, 2024 · comfyui以极高灵活度及节点化工作流,深受AI绘画者追捧,每当新的模型开源,comfyui都是最先进行适配。comfyui高度兼容性及灵活性带来丰富强大的扩展(插件)生态,同时也带来一系列插件安装的问题,插件正常运行所必须的依赖包兼容性报错! Mar 12, 2024 · What happened? SD 1. Lightning LoRa (and/or models with it) is a good start. Check Compatibility: Ensure your ComfyUI installation supports XFormers by running `conda env list` and looking for “xformers” in the listed environment. SDXL works well. The current workaround is to disable xformers with --disable-xformers when booting ComfyUI. To upgrade PyTorch run command. AnimateDiff is trained on 512x512 images so it works best with 512x512 output. ComfyUI_stable_fast是一个实验性项目,整合了stable-fast和TensorRT技术,旨在提高AI图像生成的速度和效率。该项目支持SD1. Set the id of the cuda device this instance will use. Nov 2, 2023 · xformers is the default if installed and on nvidia, if you want different you can specify the other options (it'll disable xformers) or pass in --disable-xformers and let comfy decide (it should go to pytorch, at least on nvidia. py", line 74, in import execution File "C:\ComfyUI\e --disable-xformers --comfyui-disable-xformers Use the appropriate ComfyUI arguments when configuring the extension. --auto-launch. Can I just remove --xformers from the . You signed out in another tab or window. Getting this error: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. Apr 9, 2024 · You signed in with another tab or window. Should be unnecessary except for debugging. Mar 11, 2023 · Hello, how do I disable xformers from ComfyUI? I find it inconsistent and as I don't use it with automatic1111 I wanted to be able to disable as well in ComfyUI. --disable-xformers Disable xformers. bat file for "on/off" as needed? Oct 25, 2023 · I am unable to get ComfyUI running on my GPU - it has 16GB VRAM and I am getting the following error: C:\ComfyUI>python main. bat --xformers I've used set COMMANDLINE_ARGS=--xformers Welcome to the unofficial ComfyUI subreddit. You switched accounts on another tab or window. 1. NoPreviews: 默认的预览方法。--preview-size: int: 512: 设置采样节点的最大预览大小。--front-end-root: str: None: 前端根目录的路径。--disable-auto-launch: store_true: 禁用自动启动浏览器。--cuda-device: int: None It's an xformers bug accidentally triggered by the way the original AnimateDiff CrossAttention is passed in. GIF Split into Multiple Scenes. --force-upcast-attention: Force enable attention upcasting, please report if it fixes black images. bat file or is it a more involved process? Can I just add/remove --xformers in the . 0用のxFormersは存在しないの?」このような場合には、この記事の内容が参考になります。この記事では、PyTorch 2. Jan 26, 2024 · Installing XFormers in ComfyUI: Method 1: Using Conda. 2. Thank you :) Welcome to the unofficial ComfyUI subreddit. /main. Jun 20, 2023 · Thanks for all the hard work on this great application! I started running in to the following issue on the latest when I launch with either python . 0 with cu118 and disable — xformers if you had it enabled. How to Update ComfyUI xformers. Out of curiosity I disabled xformers and used Pytorch Cross attention expecting a total collapse in performance but instead the speed turned out to be the same. 11 available, consider using a Proot-Distro like Ubuntu to run Python 3. --dont-upcast-attention: Disable all upcasting of attention. Otherwise Dec 12, 2024 · 2. 0 or python . Haven't looked into it but there should be a way to disable xformers if there's none. Speed and memory usage of xFormers and Torch vary depending on the application scenario and require specific testing. Reduce the resolution to 512x512, as AnimateDiff is trained on this Test TensorRT and pytorch run ComfyUI with --disable-xformers. Typically, it is located in \ComfyUI\python_embeded\Lib\site Oct 13, 2023 · Running ComfyUI on Google Colab. 0 and up). mp4 Steps to reproduce the problem Add a layer diffuse apply node(sd 1. SDXL result 005639__00001. If your Termux does not have python-full=3. Disable xformers with --disable-xformers Aug 18, 2024 · Hi, I did several tests with clean installation and perfectly configured env. Apr 27, 2025 · ComfyUI 服务配置说明. Xformers optimizations make the generations undeterministic, hence why I stopped using it in auto webui long ago. 1111 1467×743 149 KB rhuang February 14, 2025, 1:17am Test TensorRT and pytorch run ComfyUI with --disable-xformers. Mar 20, 2023 · In simplest terms all you have to do is upgrade your AUTOMATIC1111’s webgui to use PyTorch 2. 11. py --listen 0. 現在 Fooocus 及 ControlNet 的作者 lllyasviel 再推出 Stable Diffusion WebUI Forge,一個基於 Automatic1111 版本改良的版本,除了 Automatic1111 的基本功能外,還新增一些內置功能以及使用不同的 Backend,新 Backend 使用更少記憶體及擁有更快的速度。 Jan 30, 2024 · AnimateDiff-Evolved explicitly does not use xformers attention inside it, but SparseCtrl code does - I'll push a change in Advanced-ControlNet later today to make it not use xformers no matter what in the baby motion module that's inside SparseCtrl. 10. bat file, and will be work normally, i think is a problem between animatediff and xformers. But for many nodes, most the more heavy CN preprocessors for exemple (geowizard, depthfm etc) and many other Xformers is mandatory, without it the vram usage increase is quite big and pytorch attention seems to do nothing there. Install XFormers: If not present, activate your ComfyUI environment and install XFormers with `conda install xformers`. --cuda-device DEVICE_ID. Jul 30, 2023 · You signed in with another tab or window. instead of call webui. If you do simple t2i or i2i you don't need xformers anymore, pytorch attention is enough. Work around: Shorter your prompt and negative prompt; Reduce resolution. Feb 21, 2025 · 启用跨域资源共享(CORS),允许指定的来源(或默认的 *)访问 ComfyUI。--max-upload-size MAX_UPLOAD_SIZE 设置允许的最大上传文件大小(单位:MB)。--auto-launch 和 --disable-auto-launch 自动在默认浏览器中打开 ComfyUI 界面(默认启用)。--disable-auto-launch 用于禁用此功能。 Feb 21, 2025 · 启用跨域资源共享(CORS),允许指定的来源(或默认的 *)访问 ComfyUI。--max-upload-size MAX_UPLOAD_SIZE 设置允许的最大上传文件大小(单位:MB)。--auto-launch 和 --disable-auto-launch 自动在默认浏览器中打开 ComfyUI 界面(默认启用)。--disable-auto-launch 用于禁用此功能。 Jan 21, 2024 · The option to run ComfyUI in a Jupyter notebook seems awesome, and I hope to give that a try soon. The ngrok agent uses the authtoken to log into your account when you start a tunnel. Reload to refresh your session. Apr 3, 2023 · It's an xformers problem. 此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。 如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。 Mar 24, 2025 · 文章浏览阅读1k次,点赞11次,收藏26次。由于在comfyui便携版环境安装pynini相当困难,至今未解决,从而导致无法安装ComfyUI_NTCosyVoice节点来实现文本转语音,但使用anaconda安装pynini则十分简单,从而想尝试用Miniconda安装comfyui,并进而安装ComfyUI_NTCosyVoice节点来实现文本转语音。 Speed and memory usage of xFormers and Torch vary depending on the application scenario and require specific testing. Use the appropriate ComfyUI arguments when configuring the extension. First, locate the folder where ComfyUI’s xformers package is installed. 5) to the animatedi Jun 5, 2024 · Stable Diffusion 多功能強化版 Automatic1111 的 WebUI - Forge. Sign up (or log in) to the ngrok dashboard and get your Authtoken. TensorRT Note For the TensorRT first launch, it will take up to 10 minutes to build the engine; with timing cache, it will reduce to about 2â 3 minutes; with engine cache, it will reduce to about 20â 30 seconds for now. Welcome to the unofficial ComfyUI subreddit. Also, enter a prompt in the respective node such as “text,watermark”. Navigate to the Prompt node, and enter the prompt “beautiful scenery nature glass bottle landscape, purple galaxy bottle“. 如果不想使用,需要在启动程序 run_nvidia_gpu. But the performance between a1111 and ComfyUI is similar, given you select the same optimization and have proper environment. Please keep posted images SFW. --use-pytorch-cross-attention: Use the new pytorch 2. Enable cudaMallocAsync (enabled by default for torch 2. Please share your tips, tricks, and workflows for using this software to create your AI art. Belittling their efforts will get you banned. Jan 4, 2025 · --disable-xformers: xformersを無効にします。 --disable-smart-memory: ComfyUIが可能な場合にモデルをvramに保持する代わりに通常のram Sep 10, 2024 · You signed in with another tab or window. Dec 15, 2022 · you can remove the flag --xformers from commandline args in webui-user. --disable-auto-launch. bat 中添加命令:--disable-xformers,与在 SD WebUI 中的使用方式不同。 多说一句,可能并不是所有的 AI 软件都适合自行安装 xformers,我在 WebUI Forge 中安装后导致软件无法启动,不知道它是不是有别的启用 xformers 方法。 i had this same issue, i just added --disable-xformers on the run_nvidia_gpu. Disable auto launching the browser. 1 and there were signification improvements in pytorch itself. . Aug 2, 2023 · xformers are not compatible with 2. There's an argument --disable-xformers, but I don't know how to use it. 0 cross attention function. Xformers是一个很流行的机器学习框架,它作为PyTorch的一个重要组件,能够支持基于Transformer的神经网络模型。如果想关闭Xformers,可以尝试以下两种方法: 1. Ignored when xformers is used. And above all, BE NICE. --cuda-malloc. fastai 2. 服务配置是在 ComfyUI Desktop 的服务端(主机端)进行配置的,在这里你可以设置 ComfyUI 的局域网访问设置,一些运行的精度设置,以及一些缓存设置等等,由于对应的内容翻译自英文,可能存在一些菜单内容与实际语言设置内容不符,请以 ComfyUI优化速度的启动参数 概述 在使用ComfyUI时,可以通过启动参数来优化速度。启动参数可以用于定制启动行为和设置运行环境。可以通过命令行查看所有可用的启动参数。 获取启动参数 进入ComfyUI目录,在终 Jan 30, 2025 · Unfortunately (Don't understand why) Xformers are not working within the Blackwell 5090 GPU's Architecture (Not sure about the other GPU's of the 50 series) Xformers are meant to reduce the amount of VRAM used for SD Image generation rather than increasing it, as well as speeding up the initial steps processes, so If you are having an extra Feb 1, 2024 · You signed in with another tab or window. Automatically launch ComfyUI in the default browser. TensorRT Note For the TensorRT first launch, it will take up to 10 minutes to build the engine; with timing cache, it will reduce to about 2–3 minutes; with engine cache, it will reduce to about 20–30 seconds for now. Set the ComfyUI input directory. 当前版本说明版本: ComfyUI Desktop v0. It's an xformers bug accidentally triggered by the way the original AnimateDiff CrossAttention is passed in. You can find the definition for the ComfyUI arguments here. 5. Assuming you are familiar with working with WSL/Ubuntu or native Ubuntu, this article should contain all the information you need in order to install, configure and run ComfyUI on WSL/Ubuntu and native Ubuntu. 设置 ComfyUI 输出目录。--preview-method: LatentPreviewMethod: LatentPreviewMethod. Only with Flux did I notice a deterioration in performance. A lot of people are just discovering this technology, and want to show off what they created. Jan 20, 2025 · 在ComfyUI中有非常多的启动项目用于启动过程中的优化,加快ComfyUI的启动。•--disable-xformers禁用Xformer。•--Max-upload-size最大上传图片大小。•--output-directory输出目录。•--gpu-only只运行在GPU环境下。_comfyui 启动参数 Additional Notes: This setup ensures ComfyUI runs in a separate environment, avoiding conflicts with system packages. lpfw jxcuf jjlazw jdwgfuw jzr ghifl hdxjlqec tbf apin cqio zrat dhksfic xixnedc vfjyh rcmu