论坛
潜水/灌水快乐,沉淀知识,认识更多同行。
ToB圈子
加入IT圈,遇到更多同好之人。
朋友圈
看朋友圈动态,了解ToB世界。
ToB门户
了解全球最新的ToB事件
博客
Blog
排行榜
Ranklist
文库
业界最专业的IT文库,上传资料也可以赚钱
下载
分享
Share
导读
Guide
相册
Album
记录
Doing
应用中心
搜索
本版
文章
帖子
ToB圈子
用户
免费入驻
产品入驻
解决方案入驻
公司入驻
案例入驻
登录
·
注册
账号登录
立即注册
找回密码
用户名
Email
自动登录
找回密码
密码
登录
立即注册
首页
找靠谱产品
找解决方案
找靠谱公司
找案例
找对的人
专家智库
悬赏任务
圈子
SAAS
qidao123.com技术社区-IT企服评测·应用市场
»
论坛
›
主机系统
›
linux
›
在服务器Ubuntu22.04系统下,ComfyUI的摆设
在服务器Ubuntu22.04系统下,ComfyUI的摆设
大连密封材料
论坛元老
|
2024-11-22 17:40:27
|
显示全部楼层
|
阅读模式
楼主
主题
1802
|
帖子
1802
|
积分
5406
一、安装情况:ubuntu基本情况设置
1.更新包列表:
修改设置文件
vi /etc/apt/sources.list
复制代码
将原有的内容注释(每行最前面加#)
在最后添加以下内容
######## Ubuntu22.04LTS 清华镜像源 ###############
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
复制代码
更新软件列表
sudo apt-get update
复制代码
更新本地软件
sudo apt upgrade
复制代码
更新时间较长,请耐烦等候
2. 安装GPU驱动程序
这个下令会列出您的系统硬件信息,以及保举的驱动程序版本
ubuntu-drivers devices
复制代码
这里的4090建议安装 nvidia-driver-535 驱动程序
sudo apt update
sudo apt install nvidia-driver-535
复制代码
安装完成后,请务必重启您的系统,以便新的驱动程序生效。
reboot
复制代码
3.查察显卡信息
nvidia-smi
复制代码
4.下载并安装 CUDA 12.3
访问 NVIDIA CUDA Toolkit 下载页面,选择 CUDA 12.3 版本。对于 Ubuntu,您可能需要运行类似以下的下令:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pinsudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600wget https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda-repo-ubuntu2204-12-3-local_12.3.0-545.23.06-1_amd64.debsudo dpkg -i cuda-repo-ubuntu2204-12-3-local_12.3.0-545.23.06-1_amd64.debsudo cp /var/cuda-repo-ubuntu2204-12-3-local/cuda-*-keyring.gpg /usr/share/keyrings/sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
复制代码
设置情况变量: 编辑 vi ~/.bashrc 文件,添加以下行:
export PATH=/usr/local/cuda-12.3/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
复制代码
应用情况变量更改:
source ~/.bashrc
复制代码
验证安装:
nvcc --version
复制代码
二、安装miniconda情况
1. 下载miniconda3
wget https://mirrors.cqupt.edu.cn/anaconda/miniconda/Miniconda3-py310_23.10.0-1-Linux-x86_64.sh
复制代码
2. 安装miniconda3
bash Miniconda3-py310_23.10.0-1-Linux-x86_64.sh -u
复制代码
直接一直enter键,到输入路径和yes
这边建议路径为:miniconda3
3. 打开用户情况编辑页面
vim ~/.bashrc
复制代码
点击键盘I键进入编辑模式,在最下方输入以下代码
export PATH="/root/miniconda3/bin:$PATH"
复制代码
4.conda设置
设置清华镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
复制代码
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
复制代码
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
复制代码
设置搜索时表现通道地址
conda config --set show_channel_urls yes
复制代码
设置pip 镜像源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
复制代码
5. 重新加载用户情况变量
source ~/.bashrc
复制代码
初始化conda
conda init bash
复制代码
6. 创建Comfyui需要的情况
conda create -n comfyui python=3.10
conda activate comfyui
复制代码
三、克隆Comfyui仓库
官网地址:Comfyui的GitHub地址
git clone https://github.com/comfyanonymous/ComfyUI.git
复制代码
如果下载速率较慢可添加https://mirror.ghproxy.com/镜像源
git clone https://mirror.ghproxy.com/https://github.com/comfyanonymous/ComfyUI.git
复制代码
进入到Comfyui文件夹内
cd ComfyUI
复制代码
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
复制代码
pip install -r requirements.txt
复制代码
python main.py --port 15070 --listen 0.0.0.0
复制代码
--port 50000: 设置服务器监听的端口为业务端口,此处改为业务端口。
复制代码
启动乐成后,访问http://主机IP:端口
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
本帖子中包含更多资源
您需要
登录
才可以下载或查看,没有账号?
立即注册
x
回复
使用道具
举报
0 个回复
倒序浏览
返回列表
快速回复
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
or
立即注册
本版积分规则
发表回复
回帖并转播
回帖后跳转到最后一页
发新帖
回复
大连密封材料
论坛元老
这个人很懒什么都没写!
楼主热帖
Kubernetes(k8s)基础概念介绍 ...
Fastjson反序列化
【游戏客户端与服务器面试题】-- 2022 ...
这是啥SQL,室友看了人傻了
Java EnumMap putAll()方法具有什么功 ...
rk3399pro移植openharmony3.0移植笔记2 ...
python带你采集商家商品数据信息~带你 ...
太厉害了,终于有人能把文件上传漏洞讲 ...
SqlServer对表的基本操作
java中如何将函数作为参数传递呢? ...
标签云
渠道
国产数据库
集成商
AI
运维
CIO
存储
服务器
快速回复
返回顶部
返回列表