当前位置: 首页 > article >正文

ubuntu, 安装部署comfyui,记录1:

1.安装地址

GitHub - comfyanonymous/ComfyUI: The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. - comfyanonymous/ComfyUIicon-default.png?t=O83Ahttps://github.com/comfyanonymous/ComfyUI安装提示

Manual Install (Windows, Linux)

Note that some dependencies do not yet support python 3.13 so using 3.12 is recommended.

Git clone this repo.

Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints

Put your VAE in: models/vae

AMD GPUs (Linux only)

AMD users can install rocm and pytorch with pip if you don't have it already installed, this is the command to install the stable version:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1

This is the command to install the nightly with ROCm 6.2 which might have some performance improvements:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.2

NVIDIA

Nvidia users should install stable pytorch using this command:

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124

This is the command to install pytorch nightly instead which might have performance improvements:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124

Troubleshooting

If you get the "Torch not compiled with CUDA enabled" error, uninstall torch with:

pip uninstall torch

And install it again with the command above.

Dependencies

Install the dependencies by opening your terminal inside the ComfyUI folder and:

pip install -r requirements.txt

After this you should have everything installed and can proceed to running ComfyUI.

Others:

Intel GPUs

Intel GPU support is available for all Intel GPUs supported by Intel's Extension for Pytorch (IPEX) with the support requirements listed in the Installation page. Choose your platform and method of install and follow the instructions. The steps are as follows:

  1. Start by installing the drivers or kernel listed or newer in the Installation page of IPEX linked above for Windows and Linux if needed.
  2. Follow the instructions to install Intel's oneAPI Basekit for your platform.
  3. Install the packages for IPEX using the instructions provided in the Installation page for your platform.
  4. Follow the ComfyUI manual installation instructions for Windows and Linux and run ComfyUI normally as described above after everything is installed.

Additional discussion and help can be found here.

Apple Mac silicon

You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.

  1. Install pytorch nightly. For instructions, read the Accelerated PyTorch training on Mac Apple Developer guide (make sure to install the latest pytorch nightly).
  2. Follow the ComfyUI manual installation instructions for Windows and Linux.
  3. Install the ComfyUI dependencies. If you have another Stable Diffusion UI you might be able to reuse the dependencies.
  4. Launch ComfyUI by running python main.py

Note: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in ComfyUI manual installation.

DirectML (AMD Cards on Windows)

pip install torch-directml Then you can launch ComfyUI with: python main.py --directml

2.创建一个虚拟环境

安装git

在 Ubuntu 上安装 Git 可以通过包管理器 apt 进行。以下是在 Ubuntu 上安装 Git 的步骤:

    打开终端。你可以按 Ctrl + Alt + T 组合键来打开终端。

    运行以下命令以确保你的系统的软件包列表是最新的:

    sudo apt update

    安装 Git:

    sudo apt install git

    在安装过程中,系统可能会询问你是否要继续。输入 y 并按下 Enter。

    安装完成后,你可以验证 Git 是否成功安装。运行以下命令:

    git --version

    如果安装成功,将显示 Git 的版本信息。
                       
原文链接:https://blog.csdn.net/wqzbxh/article/details/134903221

下载comfuui

https://github.com/comfyanonymous/ComfyUI.git

 

3.创建虚拟环境

conda create -n comfyui python=3.12
conda activate comfyui

4.测试虚拟环境并退出

4.pycharm新建 工作 如图:

5.安装所用到的依赖

#安装pytorch
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simpl
pip3 install torch torchvision torchaudio
 
#安装相关依赖
pip install -r requirements.txt
 

6.修改端口启动

python main.py --port 15070 --listen 0.0.0.0

启动成功


http://www.kler.cn/a/395624.html

相关文章:

  • AutoDL远程连接技巧
  • 百度搜索AI探索版多线程批量生成TXT原创文章软件-可生成3种类型文章
  • C++算法练习-day40——617.合并二叉树
  • 解锁微前端的优秀库
  • Flink1.19编译并Standalone模式本地运行
  • C++中string的新特性
  • Nginx在Windows上和Linux上(Docker启动)分别配置基本身份认证示例
  • 计算机毕业设计Python+CNN卷积神经网络股票预测系统 股票推荐系统 股票可视化 股票数据分析 量化交易系统 股票爬虫 股票K线图 大数据毕业设计 AI
  • 千益畅行,共享旅游卡市场乱象解析与未来展望
  • Python3中str和bytes
  • STM32串口——5个串口的使用方法
  • selenium元素定位---元素点击交互异常解决方法
  • 0x00基础算法 -- 0x05 排序
  • Modern Effective C++:item 1 理解模板类型推导
  • Spring Boot 中使用 @Transactional 注解配置事务管理
  • 表的数据结构和常见操作
  • 硬盘物理故障的表现、原因和解决方法全解析
  • 鸿蒙next ui安全区域适配(刘海屏、摄像头挖空等)
  • kali上安装docker,并且生成centos7容器和创建apache容器后台运行
  • [论文笔记]An LLM Compiler for Parallel Function Calling
  • 电子电气架构 --- 电动汽车 800V 高压系统
  • HTML5+CSS前端开发[保姆级教学]+基本文本控制标签介绍
  • 单片机原理理论及应用
  • css鼠标移动效果高亮追随效果
  • C++ QT UI日志更新
  • 爆火的AI智能助手ChatGPT中自注意力机制的演化与优化