绘梦成真:ComfyUI携手Modelarts打造AI艺术新纪元
一.AI绘画新神器 ComfyUI介绍
ComfyUI 是一个基于节点流程式的stable diffusion AI 绘图工具WebUI, 你可以把它想象成集成了stable diffusion功能的substance designer, 通过将stable diffusion的流程拆分成节点,实现了更加精准的工作流定制和完善的可复现性。但节点式的工作流也提高了一部分使用门槛。
同时,因为内部生成流程做了优化,生成图片时的速度相较于webui又10%~25%的提升(根据不同显卡提升幅度不同),生成大图片的时候不会爆显存,只是图片太大时,会因为切块运算的导致图片碎裂。
将人像转换为复古日漫风格
本案例基于ComfyUI搭建工作流,可以将人像转换为日本漫画黄金时期的漫画大师风格。案例体验链接在ComfyUI中将人像转换为复古日漫风格
- 特点:复古日漫风格
- 大模型:Animagine XL V3.1
- lora权重推荐:0.65-0.8
- 步数:25-35步
- CFG:7
- 采样方法:DPM++ 2M Karras
二、前置工作
本案例需要将notebook中运行的ComfyUI服务开放到公网中使用,需要搭配cpolar。用户可以前往cpolar网站免费注册一个账号,登录后在左侧列表中选择"验证",记住自己的authtoken,后面会用到。
注意事项
🔹 点击右上方"ModelArts中运行"按钮,将会进入到ModelArts CodeLab中,这时需要你登录华为云账号,如果没有账号,则需要注册一个,且要进行实名认证,参考《如何创建华为云账号并且实名认证》 即可完成账号注册和实名认证。 登录之后,等待片刻,即可进入到CodeLab的运行环境.
🔹 本案例需使用 P100 及以上规格运行,请确保运行规格一致,可按照下图切换规格。
🔹 出现 Out Of Memory ,请检查是否为您的参数配置过高导致,修改参数配置,重启kernel或更换更高规格资源进行规避❗❗❗
三、环境准备
1.1 拷贝代码和模型文件
import moxing as mox
mox.file.copy_parallel('obs://modelarts-labs-bj4-v2/case_zoo/Animagine-xl-3.1/', 'Animagine-xl-3.1')
INFO:root:Using MoXing-v2.1.0.5d9c87c8-5d9c87c8
INFO:root:Using OBS-Python-SDK-3.20.9.1
/home/ma-user/anaconda3/envs/PyTorch-1.8/lib/python3.7/site-packages/requests/__init__.py:104: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.2.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
mox.file.copy_parallel('obs://modelarts-labs-bj4-v2/case_zoo/ComfyUI/ComfyUI/', 'ComfyUI')
mox.file.copy_parallel('obs://modelarts-labs-bj4-v2/case_zoo/ComfyUI/ComfyUI-Manager/', 'ComfyUI/custom_nodes/ComfyUI-Manager')
mox.file.copy_parallel('obs://modelarts-labs-bj4-v2/case_zoo/ComfyUI/cpolar-stable-linux-amd64.zip', 'cpolar-stable-linux-amd64.zip')
!unzip cpolar-stable-linux-amd64.zip
Archive: cpolar-stable-linux-amd64.zip
inflating: cpolar
注意:此处需要将authtoken的"xxxx"替换为前置工作中在cpolar网站获得的authtoken
%%bash
./cpolar authtoken xxxx
Authtoken saved to configuration file: /home/ma-user/.cpolar/cpolar.yml
1.2 将模型文件放至ComfyUI对应目录处
!mv Animagine-xl-3.1/animagineXLV31_v31.safetensors ComfyUI/models/checkpoints/
!mv Animagine-xl-3.1/sdxl_vae.safetensors ComfyUI/models/vae/
!mv Animagine-xl-3.1/hoko_sdxl.safetensors ComfyUI/models/loras/
!mv Animagine-xl-3.1/diffusers_xl_depth_full.safetensors ComfyUI/models/controlnet/
!mv Animagine-xl-3.1/animate-girl.jpg ComfyUI/input/
!mv Animagine-xl-3.1/man.jpg ComfyUI/input/
!mv Animagine-xl-3.1/woman.jpg ComfyUI/input/
import os
import shutil
source_file = 'Animagine-xl-3.1/animate-style-lora.json'
destination_dir = 'ComfyUI/user/default/workflows'
os.makedirs(destination_dir, exist_ok=True)
shutil.move(source_file, os.path.join(destination_dir, 'animate-style-lora.json'))
print(f"工作流文件已成功移动到: {os.path.join(destination_dir, 'animate-style-lora.json')}")
1.3 配置环境
本案例依赖Python3.9及以上环境,因此我们首先创建虚拟环境:
!/home/ma-user/anaconda3/bin/conda create -n python-3.9.15 python=3.9.15 -y --override-channels --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
!/home/ma-user/anaconda3/envs/python-3.9.15/bin/pip install ipykernel
/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/ma-user/anaconda3/envs/python-3.9.15
added / updated specs:
- python=3.9.15
The following packages will be downloaded:
package | build
---------------------------|-----------------
_libgcc_mutex-0.1 | main 3 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
_openmp_mutex-5.1 | 1_gnu 21 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ca-certificates-2024.11.26 | h06a4308_0 131 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ld_impl_linux-64-2.40 | h12ee557_0 710 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libffi-3.4.4 | h6a678d5_1 141 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc-ng-11.2.0 | h1234567_1 5.3 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgomp-11.2.0 | h1234567_1 474 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libstdcxx-ng-11.2.0 | h1234567_1 4.7 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ncurses-6.4 | h6a678d5_0 914 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
openssl-1.1.1w | h7f8727e_0 3.7 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pip-24.2 | py39h06a4308_0 2.2 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-3.9.15 | h7a1cb2a_2 25.0 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
readline-8.2 | h5eee18b_0 357 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
setuptools-75.1.0 | py39h06a4308_0 1.7 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
sqlite-3.45.3 | h5eee18b_0 1.2 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tk-8.6.14 | h39e8969_0 3.4 MB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tzdata-2024b | h04d1e81_0 115 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wheel-0.44.0 | py39h06a4308_0 108 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
xz-5.4.6 | h5eee18b_1 643 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zlib-1.2.13 | h5eee18b_1 111 KB https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
------------------------------------------------------------
Total: 51.0 MB
The following NEW packages will be INSTALLED:
_libgcc_mutex anaconda/pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex anaconda/pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
ca-certificates anaconda/pkgs/main/linux-64::ca-certificates-2024.11.26-h06a4308_0
ld_impl_linux-64 anaconda/pkgs/main/linux-64::ld_impl_linux-64-2.40-h12ee557_0
libffi anaconda/pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
libgcc-ng anaconda/pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
libgomp anaconda/pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
libstdcxx-ng anaconda/pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
ncurses anaconda/pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
openssl anaconda/pkgs/main/linux-64::openssl-1.1.1w-h7f8727e_0
pip anaconda/pkgs/main/linux-64::pip-24.2-py39h06a4308_0
python anaconda/pkgs/main/linux-64::python-3.9.15-h7a1cb2a_2
readline anaconda/pkgs/main/linux-64::readline-8.2-h5eee18b_0
setuptools anaconda/pkgs/main/linux-64::setuptools-75.1.0-py39h06a4308_0
sqlite anaconda/pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
tk anaconda/pkgs/main/linux-64::tk-8.6.14-h39e8969_0
tzdata anaconda/pkgs/main/noarch::tzdata-2024b-h04d1e81_0
wheel anaconda/pkgs/main/linux-64::wheel-0.44.0-py39h06a4308_0
xz anaconda/pkgs/main/linux-64::xz-5.4.6-h5eee18b_1
zlib anaconda/pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1
Downloading and Extracting Packages
openssl-1.1.1w | 3.7 MB | ##################################### | 100%
tzdata-2024b | 115 KB | ##################################### | 100%
ld_impl_linux-64-2.4 | 710 KB | ##################################### | 100%
sqlite-3.45.3 | 1.2 MB | ##################################### | 100%
_libgcc_mutex-0.1 | 3 KB | ##################################### | 100%
zlib-1.2.13 | 111 KB | ##################################### | 100%
wheel-0.44.0 | 108 KB | ##################################### | 100%
tk-8.6.14 | 3.4 MB | ##################################### | 100%
pip-24.2 | 2.2 MB | ##################################### | 100%
readline-8.2 | 357 KB | ##################################### | 100%
libstdcxx-ng-11.2.0 | 4.7 MB | ##################################### | 100%
libgomp-11.2.0 | 474 KB | ##################################### | 100%
libffi-3.4.4 | 141 KB | ##################################### | 100%
libgcc-ng-11.2.0 | 5.3 MB | ##################################### | 100%
_openmp_mutex-5.1 | 21 KB | ##################################### | 100%
python-3.9.15 | 25.0 MB | ##################################### | 100%
xz-5.4.6 | 643 KB | ##################################### | 100%
ncurses-6.4 | 914 KB | ##################################### | 100%
ca-certificates-2024 | 131 KB | ##################################### | 100%
setuptools-75.1.0 | 1.7 MB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate python-3.9.15
#
# To deactivate an active environment, use
#
# $ conda deactivate
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting ipykernel
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/94/5c/368ae6c01c7628438358e6d337c19b05425727fbb221d2a3c4303c372f42/ipykernel-6.29.5-py3-none-any.whl (117 kB)
Collecting comm>=0.1.1 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/e6/75/49e5bfe642f71f272236b5b2d2691cf915a7283cc0ceda56357b61daa538/comm-0.2.2-py3-none-any.whl (7.2 kB)
Collecting debugpy>=1.6.5 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/12/2e/c73e2744c88c7df7e830c6f7bd4dcb3d39beb7d306e26d21cf1dd439fdf5/debugpy-1.8.11-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m3.6/3.6 MB[0m [31m34.5 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting ipython>=7.23.1 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/47/6b/d9fdcdef2eb6a23f391251fde8781c38d42acd82abe84d054cb74f7863b0/ipython-8.18.1-py3-none-any.whl (808 kB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m808.2/808.2 kB[0m [31m12.6 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting jupyter-client>=6.1.12 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/11/85/b0394e0b6fcccd2c1eeefc230978a6f8cb0c5df1e4cd3e7625735a0d7d1e/jupyter_client-8.6.3-py3-none-any.whl (106 kB)
Collecting jupyter-core!=5.0.*,>=4.12 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/c9/fb/108ecd1fe961941959ad0ee4e12ee7b8b1477247f30b1fdfd83ceaf017f0/jupyter_core-5.7.2-py3-none-any.whl (28 kB)
Collecting matplotlib-inline>=0.1 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/8f/8e/9ad090d3553c280a8060fbf6e24dc1c0c29704ee7d1c372f0c174aa59285/matplotlib_inline-0.1.7-py3-none-any.whl (9.9 kB)
Collecting nest-asyncio (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/a0/c4/c2971a3ba4c6103a3d10c4b0f24f461ddc027f0f09763220cf35ca1401b3/nest_asyncio-1.6.0-py3-none-any.whl (5.2 kB)
Collecting packaging (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl (65 kB)
Collecting psutil (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/9c/39/0f88a830a1c8a3aba27fededc642da37613c57cbff143412e3536f89784f/psutil-6.1.1-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (287 kB)
Collecting pyzmq>=24 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/6e/bd/3ff3e1172f12f55769793a3a334e956ec2886805ebfb2f64756b6b5c6a1a/pyzmq-26.2.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (862 kB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m862.1/862.1 kB[0m [31m21.2 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting tornado>=6.1 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/22/55/b78a464de78051a30599ceb6983b01d8f732e6f69bf37b4ed07f642ac0fc/tornado-6.4.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437 kB)
Collecting traitlets>=5.4.0 (from ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl (85 kB)
Collecting decorator (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting jedi>=0.16 (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/c0/5a/9cac0c82afec3d09ccd97c8b6502d48f165f9124db81b4bcb90b4af974ee/jedi-0.19.2-py2.py3-none-any.whl (1.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.6/1.6 MB[0m [31m22.1 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting prompt-toolkit<3.1.0,>=3.0.41 (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/a9/6a/fd08d94654f7e67c52ca30523a178b3f8ccc4237fce4be90d39c938a831a/prompt_toolkit-3.0.48-py3-none-any.whl (386 kB)
Collecting pygments>=2.4.0 (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/f7/3f/01c8b82017c199075f8f788d0d906b9ffbbc5a47dc9918a945e13d5a2bda/pygments-2.18.0-py3-none-any.whl (1.2 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.2/1.2 MB[0m [31m41.7 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting stack-data (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/f1/7b/ce1eafaf1a76852e2ec9b22edecf1daa58175c090266e9f6c64afcd81d91/stack_data-0.6.3-py3-none-any.whl (24 kB)
Collecting typing-extensions (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting exceptiongroup (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
Collecting pexpect>4.3 (from ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/9e/c3/059298687310d527a58bb01f3b1965787ee3b40dce76752eda8b44e9a2c5/pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
Collecting importlib-metadata>=4.8.3 (from jupyter-client>=6.1.12->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/a0/d9/a1e041c5e7caa9a05c925f4bdbdfb7f006d1f74996af53467bc394c97be7/importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
Collecting python-dateutil>=2.8.2 (from jupyter-client>=6.1.12->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting platformdirs>=2.5 (from jupyter-core!=5.0.*,>=4.12->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl (18 kB)
Collecting zipp>=3.20 (from importlib-metadata>=4.8.3->jupyter-client>=6.1.12->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b7/1a/7e4798e9339adc931158c9d69ecc34f5e6791489d469f5e50ec15e35f458/zipp-3.21.0-py3-none-any.whl (9.6 kB)
Collecting parso<0.9.0,>=0.8.4 (from jedi>=0.16->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl (103 kB)
Collecting ptyprocess>=0.5 (from pexpect>4.3->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->jupyter-client>=6.1.12->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl (11 kB)
Collecting executing>=1.2.0 (from stack-data->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b5/fd/afcd0496feca3276f509df3dbd5dae726fcc756f1a08d9e25abe1733f962/executing-2.1.0-py2.py3-none-any.whl (25 kB)
Collecting asttokens>=2.1.0 (from stack-data->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/25/8a/c46dcc25341b5bce5472c718902eb3d38600a903b14fa6aeecef3f21a46f/asttokens-3.0.0-py3-none-any.whl (26 kB)
Collecting pure-eval (from stack-data->ipython>=7.23.1->ipykernel)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/8e/37/efad0257dc6e593a18957422533ff0f87ede7c9c6ea010a2177d738fb82f/pure_eval-0.2.3-py3-none-any.whl (11 kB)
Installing collected packages: wcwidth, pure-eval, ptyprocess, zipp, typing-extensions, traitlets, tornado, six, pyzmq, pygments, psutil, prompt-toolkit, platformdirs, pexpect, parso, packaging, nest-asyncio, executing, exceptiongroup, decorator, debugpy, asttokens, stack-data, python-dateutil, matplotlib-inline, jupyter-core, jedi, importlib-metadata, comm, jupyter-client, ipython, ipykernel
Successfully installed asttokens-3.0.0 comm-0.2.2 debugpy-1.8.11 decorator-5.1.1 exceptiongroup-1.2.2 executing-2.1.0 importlib-metadata-8.5.0 ipykernel-6.29.5 ipython-8.18.1 jedi-0.19.2 jupyter-client-8.6.3 jupyter-core-5.7.2 matplotlib-inline-0.1.7 nest-asyncio-1.6.0 packaging-24.2 parso-0.8.4 pexpect-4.9.0 platformdirs-4.3.6 prompt-toolkit-3.0.48 psutil-6.1.1 ptyprocess-0.7.0 pure-eval-0.2.3 pygments-2.18.0 python-dateutil-2.9.0.post0 pyzmq-26.2.0 six-1.17.0 stack-data-0.6.3 tornado-6.4.2 traitlets-5.14.3 typing-extensions-4.12.2 wcwidth-0.2.13 zipp-3.21.0
import os
import json
data = {
"display_name": "python-3.9.15",
"env": {
"PATH": "/home/ma-user/anaconda3/envs/python-3.9.15/bin:/home/ma-user/anaconda3/envs/python-3.7.10/bin:/modelarts/authoring/notebook-conda/bin:/opt/conda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/ma-user/modelarts/ma-cli/bin:/home/ma-user/modelarts/ma-cli/bin:/home/ma-user/anaconda3/envs/PyTorch-1.8/bin"
},
"language": "python",
"argv": [
"/home/ma-user/anaconda3/envs/python-3.9.15/bin/python",
"-m",
"ipykernel",
"-f",
"{connection_file}"
]
}
if not os.path.exists("/home/ma-user/anaconda3/share/jupyter/kernels/python-3.9.15/"):
os.mkdir("/home/ma-user/anaconda3/share/jupyter/kernels/python-3.9.15/")
with open('/home/ma-user/anaconda3/share/jupyter/kernels/python-3.9.15/kernel.json', 'w') as f:
json.dump(data, f, indent=4)
print('kernel.json文件修改完毕')
kernel.json文件修改完毕
创建完成后,稍等片刻,在右上角的kernel处选择python-3.9.15
安装相关依赖
!pip install torch==2.0.1
!pip install torchsde
!pip install torchvision==0.15.2
!pip install torchaudio==2.0.2
!pip install einops
!pip install transformers>=4.28.1
!pip install tokenizers>=0.13.3
!pip install sentencepiece
!pip install safetensors>=0.4.2
!pip install aiohttp
!pip install pyyaml
!pip install Pillow
!pip install scipy
!pip install tqdm
!pip install psutil
#non essential dependencies:
!pip install kornia>=0.7.1
!pip install spandrel
!pip install soundfile
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting torch==2.0.1
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/e5/9a/ce0fe125f226ffce8deba6a18bd8d0b9f589aa236780a83a6d70b5525f56/torch-2.0.1-cp39-cp39-manylinux1_x86_64.whl (619.9 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m619.9/619.9 MB[0m [31m138.0 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting filelock (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b9/f8/feced7779d755758a52d1f6635d990b8d98dc0a29fa568bbe0625f18fdf3/filelock-3.16.1-py3-none-any.whl (16 kB)
Requirement already satisfied: typing-extensions in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1) (4.12.2)
Collecting sympy (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/99/ff/c87e0622b1dadea79d2fb0b25ade9ed98954c9033722eb707053d310d4f3/sympy-1.13.3-py3-none-any.whl (6.2 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m6.2/6.2 MB[0m [31m42.4 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting networkx (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/d5/f0/8fbc882ca80cf077f1b246c0e3c3465f7f415439bdea6b899f6b19f61f70/networkx-3.2.1-py3-none-any.whl (1.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.6/1.6 MB[0m [31m64.6 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting jinja2 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/bd/0f/2ba5fbcd631e3e88689309dbe978c5769e883e4b84ebfe7da30b43275c5a/jinja2-3.1.5-py3-none-any.whl (134 kB)
Collecting nvidia-cuda-nvrtc-cu11==11.7.99 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ef/25/922c5996aada6611b79b53985af7999fc629aee1d5d001b6a22431e18fec/nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m21.0/21.0 MB[0m [31m76.6 MB/s[0m eta [36m0:00:00[0ma [36m0:00:01[0m
[?25hCollecting nvidia-cuda-runtime-cu11==11.7.99 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/36/92/89cf558b514125d2ebd8344dd2f0533404b416486ff681d5434a5832a019/nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m849.3/849.3 kB[0m [31m19.3 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting nvidia-cuda-cupti-cu11==11.7.101 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/e6/9d/dd0cdcd800e642e3c82ee3b5987c751afd4f3fb9cc2752517f42c3bc6e49/nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl (11.8 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m11.8/11.8 MB[0m [31m126.0 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting nvidia-cudnn-cu11==8.5.0.96 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (557.1 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m557.1/557.1 MB[0m [31m158.4 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-cublas-cu11==11.10.3.66 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ce/41/fdeb62b5437996e841d83d7d2714ca75b886547ee8017ee2fe6ea409d983/nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl (317.1 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m317.1/317.1 MB[0m [31m220.2 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-cufft-cu11==10.9.0.58 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/64/c8/133717b43182ba063803e983e7680a94826a9f4ff5734af0ca315803f1b3/nvidia_cufft_cu11-10.9.0.58-py3-none-manylinux2014_x86_64.whl (168.4 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m168.4/168.4 MB[0m [31m222.6 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-curand-cu11==10.2.10.91 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/8f/11/af78d54b2420e64a4dd19e704f5bb69dcb5a6a3138b4465d6a48cdf59a21/nvidia_curand_cu11-10.2.10.91-py3-none-manylinux1_x86_64.whl (54.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m54.6/54.6 MB[0m [31m198.0 MB/s[0m eta [36m0:00:00[0m00:01[0m
[?25hCollecting nvidia-cusolver-cu11==11.4.0.1 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/3e/77/66149e3153b19312fb782ea367f3f950123b93916a45538b573fe373570a/nvidia_cusolver_cu11-11.4.0.1-2-py3-none-manylinux1_x86_64.whl (102.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m102.6/102.6 MB[0m [31m173.0 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-cusparse-cu11==11.7.4.91 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ea/6f/6d032cc1bb7db88a989ddce3f4968419a7edeafda362847f42f614b1f845/nvidia_cusparse_cu11-11.7.4.91-py3-none-manylinux1_x86_64.whl (173.2 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m173.2/173.2 MB[0m [31m125.3 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-nccl-cu11==2.14.3 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/55/92/914cdb650b6a5d1478f83148597a25e90ea37d739bd563c5096b0e8a5f43/nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl (177.1 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m177.1/177.1 MB[0m [31m216.1 MB/s[0m eta [36m0:00:00[0m00:01[0m00:01[0m
[?25hCollecting nvidia-nvtx-cu11==11.7.91 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/23/d5/09493ff0e64fd77523afbbb075108f27a13790479efe86b9ffb4587671b5/nvidia_nvtx_cu11-11.7.91-py3-none-manylinux1_x86_64.whl (98 kB)
Collecting triton==2.0.0 (from torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/77/ac/28b74ec1177c730d0da8803eaff5e5025bd532bcf07cadb0fcf661abed97/triton-2.0.0-1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (63.3 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m63.3/63.3 MB[0m [31m203.1 MB/s[0m eta [36m0:00:00[0m00:01[0m
[?25hRequirement already satisfied: setuptools in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1) (75.1.0)
Requirement already satisfied: wheel in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1) (0.44.0)
Collecting cmake (from triton==2.0.0->torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/e0/a7/d7c3e87d1547af16810b8b1bbfc8ffaa1c83a26725b6c152ab979df65dc1/cmake-3.31.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.8 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m27.8/27.8 MB[0m [31m162.1 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting lit (from triton==2.0.0->torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/96/06/b36f150fa7c5bcc96a31a4d19a20fddbd1d965b6f02510b57a3bb8d4b930/lit-18.1.8-py3-none-any.whl (96 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/53/8f/f339c98a178f3c1e545622206b40986a4c3307fe39f70ccd3d9df9a9e425/MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy->torch==2.0.1)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl (536 kB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m536.2/536.2 kB[0m [31m21.8 MB/s[0m eta [36m0:00:00[0m
[?25hInstalling collected packages: mpmath, lit, sympy, nvidia-nvtx-cu11, nvidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, networkx, MarkupSafe, filelock, cmake, nvidia-cusolver-cu11, nvidia-cudnn-cu11, jinja2, triton, torch
Successfully installed MarkupSafe-3.0.2 cmake-3.31.2 filelock-3.16.1 jinja2-3.1.5 lit-18.1.8 mpmath-1.3.0 networkx-3.2.1 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-cupti-cu11-11.7.101 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 nvidia-cufft-cu11-10.9.0.58 nvidia-curand-cu11-10.2.10.91 nvidia-cusolver-cu11-11.4.0.1 nvidia-cusparse-cu11-11.7.4.91 nvidia-nccl-cu11-2.14.3 nvidia-nvtx-cu11-11.7.91 sympy-1.13.3 torch-2.0.1 triton-2.0.0
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting torchsde
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/dd/1f/b67ebd7e19ffe259f05d3cf4547326725c3113d640c277030be3e9998d6f/torchsde-0.2.6-py3-none-any.whl (61 kB)
Collecting numpy>=1.19 (from torchsde)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b9/14/78635daab4b07c0930c919d451b8bf8c164774e6a3413aed04a6d95758ce/numpy-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.5 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m19.5/19.5 MB[0m [31m16.6 MB/s[0m eta [36m0:00:00[0m00:01[0m
[?25hCollecting scipy>=1.5 (from torchsde)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/35/f5/d0ad1a96f80962ba65e2ce1de6a1e59edecd1f0a7b55990ed208848012e0/scipy-1.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m38.6/38.6 MB[0m [31m102.5 MB/s[0m eta [36m0:00:00[0ma [36m0:00:01[0m
[?25hRequirement already satisfied: torch>=1.6.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchsde) (2.0.1)
Collecting trampoline>=0.1.2 (from torchsde)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/73/54/d2805324fb746d8da86d3844bee4f55c0cfd6c136de61b713772d44c5bea/trampoline-0.1.2-py3-none-any.whl (5.2 kB)
Requirement already satisfied: filelock in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (3.16.1)
Requirement already satisfied: typing-extensions in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (4.12.2)
Requirement already satisfied: sympy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (1.13.3)
Requirement already satisfied: networkx in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (3.2.1)
Requirement already satisfied: jinja2 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (3.1.5)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (11.7.91)
Requirement already satisfied: triton==2.0.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch>=1.6.0->torchsde) (2.0.0)
Requirement already satisfied: setuptools in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.6.0->torchsde) (75.1.0)
Requirement already satisfied: wheel in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch>=1.6.0->torchsde) (0.44.0)
Requirement already satisfied: cmake in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch>=1.6.0->torchsde) (3.31.2)
Requirement already satisfied: lit in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch>=1.6.0->torchsde) (18.1.8)
Requirement already satisfied: MarkupSafe>=2.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from jinja2->torch>=1.6.0->torchsde) (3.0.2)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from sympy->torch>=1.6.0->torchsde) (1.3.0)
Installing collected packages: trampoline, numpy, scipy, torchsde
Successfully installed numpy-2.0.2 scipy-1.13.1 torchsde-0.2.6 trampoline-0.1.2
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting torchvision==0.15.2
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/41/9e/8809e45a084680394e8d219fcf8a2c0eed2dddf1ec0a7968f4052826a6e9/torchvision-0.15.2-cp39-cp39-manylinux1_x86_64.whl (6.0 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m6.0/6.0 MB[0m [31m93.6 MB/s[0m eta [36m0:00:00[0m
[?25hRequirement already satisfied: numpy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchvision==0.15.2) (2.0.2)
Collecting requests (from torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl (64 kB)
Requirement already satisfied: torch==2.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchvision==0.15.2) (2.0.1)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/14/b1/c8f428bae932a27ce9c87e7b21aba8ea3e820aa11413c5a795868c37e039/pillow-11.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m4.3/4.3 MB[0m [31m94.3 MB/s[0m eta [36m0:00:00[0m
[?25hRequirement already satisfied: filelock in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (3.16.1)
Requirement already satisfied: typing-extensions in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (4.12.2)
Requirement already satisfied: sympy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (1.13.3)
Requirement already satisfied: networkx in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (3.2.1)
Requirement already satisfied: jinja2 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (3.1.5)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (11.7.91)
Requirement already satisfied: triton==2.0.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchvision==0.15.2) (2.0.0)
Requirement already satisfied: setuptools in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->torchvision==0.15.2) (75.1.0)
Requirement already satisfied: wheel in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->torchvision==0.15.2) (0.44.0)
Requirement already satisfied: cmake in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch==2.0.1->torchvision==0.15.2) (3.31.2)
Requirement already satisfied: lit in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch==2.0.1->torchvision==0.15.2) (18.1.8)
Collecting charset-normalizer<4,>=2 (from requests->torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/28/89/60f51ad71f63aaaa7e51a2a2ad37919985a341a1d267070f212cdf6c2d22/charset_normalizer-3.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (144 kB)
Collecting idna<4,>=2.5 (from requests->torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl (70 kB)
Collecting urllib3<3,>=1.21.1 (from requests->torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl (128 kB)
Collecting certifi>=2017.4.17 (from requests->torchvision==0.15.2)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/a5/32/8f6669fc4798494966bf446c8c4a162e0b5d893dff088afddf76414f70e1/certifi-2024.12.14-py3-none-any.whl (164 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from jinja2->torch==2.0.1->torchvision==0.15.2) (3.0.2)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from sympy->torch==2.0.1->torchvision==0.15.2) (1.3.0)
Installing collected packages: urllib3, pillow, idna, charset-normalizer, certifi, requests, torchvision
Successfully installed certifi-2024.12.14 charset-normalizer-3.4.0 idna-3.10 pillow-11.0.0 requests-2.32.3 torchvision-0.15.2 urllib3-2.3.0
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting torchaudio==2.0.2
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/eb/b0/b72708eca97014d756e4be2b92eca53e23a202028a24a5e0482adca8d6f7/torchaudio-2.0.2-cp39-cp39-manylinux1_x86_64.whl (4.4 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m4.4/4.4 MB[0m [31m6.9 MB/s[0m eta [36m0:00:00[0meta [36m0:00:01[0m
[?25hRequirement already satisfied: torch==2.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchaudio==2.0.2) (2.0.1)
Requirement already satisfied: filelock in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (3.16.1)
Requirement already satisfied: typing-extensions in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (4.12.2)
Requirement already satisfied: sympy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (1.13.3)
Requirement already satisfied: networkx in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (3.2.1)
Requirement already satisfied: jinja2 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (3.1.5)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (11.7.91)
Requirement already satisfied: triton==2.0.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch==2.0.1->torchaudio==2.0.2) (2.0.0)
Requirement already satisfied: setuptools in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->torchaudio==2.0.2) (75.1.0)
Requirement already satisfied: wheel in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch==2.0.1->torchaudio==2.0.2) (0.44.0)
Requirement already satisfied: cmake in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch==2.0.1->torchaudio==2.0.2) (3.31.2)
Requirement already satisfied: lit in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch==2.0.1->torchaudio==2.0.2) (18.1.8)
Requirement already satisfied: MarkupSafe>=2.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from jinja2->torch==2.0.1->torchaudio==2.0.2) (3.0.2)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from sympy->torch==2.0.1->torchaudio==2.0.2) (1.3.0)
Installing collected packages: torchaudio
Successfully installed torchaudio-2.0.2
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting einops
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/44/5a/f0b9ad6c0a9017e62d4735daaeb11ba3b6c009d69a26141b258cd37b5588/einops-0.8.0-py3-none-any.whl (43 kB)
Installing collected packages: einops
Successfully installed einops-0.8.0
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting sentencepiece
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/5f/01/c95e42eb86282b2c79305d3e0b0ca5a743f85a61262bb7130999c70b9374/sentencepiece-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.3/1.3 MB[0m [31m45.6 MB/s[0m eta [36m0:00:00[0m
[?25hInstalling collected packages: sentencepiece
Successfully installed sentencepiece-0.2.0
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting aiohttp
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/f7/5b/a27e8fe1a3b0e245ca80863eefd83fc00136752d27d2cf1afa0130a76f34/aiohttp-3.11.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.6/1.6 MB[0m [31m23.8 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting aiohappyeyeballs>=2.3.0 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/b9/74/fbb6559de3607b3300b9be3cc64e97548d55678e44623db17820dbd20002/aiohappyeyeballs-2.4.4-py3-none-any.whl (14 kB)
Collecting aiosignal>=1.1.2 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ec/6a/bc7e17a3e87a2985d3e8f4da4cd0f481060eb78fb08596c42be62c90a4d9/aiosignal-1.3.2-py2.py3-none-any.whl (7.6 kB)
Collecting async-timeout<6.0,>=4.0 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Collecting attrs>=17.3.0 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/89/aa/ab0f7891a01eeb2d2e338ae8fecbe57fcebea1a24dbb64d45801bfab481d/attrs-24.3.0-py3-none-any.whl (63 kB)
Collecting frozenlist>=1.1.1 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/f6/33/9f152105227630246135188901373c4f322cc026565ca6215b063f4c82f4/frozenlist-1.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (242 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/5e/41/0d0fb18c1ad574f807196f5f3d99164edf9de3e169a58c6dc2d6ed5742b9/multidict-6.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (124 kB)
Collecting propcache>=0.2.0 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/69/c0/560e050aa6d31eeece3490d1174da508f05ab27536dfc8474af88b97160a/propcache-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208 kB)
Collecting yarl<2.0,>=1.17.0 (from aiohttp)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/a2/2a/167447ae39252ba624b98b8c13c0ba35994d40d9110e8a724c83dbbb5822/yarl-1.18.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (321 kB)
Requirement already satisfied: typing-extensions>=4.1.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from multidict<7.0,>=4.5->aiohttp) (4.12.2)
Requirement already satisfied: idna>=2.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from yarl<2.0,>=1.17.0->aiohttp) (3.10)
Installing collected packages: propcache, multidict, frozenlist, attrs, async-timeout, aiohappyeyeballs, yarl, aiosignal, aiohttp
Successfully installed aiohappyeyeballs-2.4.4 aiohttp-3.11.11 aiosignal-1.3.2 async-timeout-5.0.1 attrs-24.3.0 frozenlist-1.5.0 multidict-6.1.0 propcache-0.2.1 yarl-1.18.3
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Requirement already satisfied: pyyaml in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (6.0.2)
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Requirement already satisfied: Pillow in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (11.0.0)
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Requirement already satisfied: scipy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (1.13.1)
Requirement already satisfied: numpy<2.3,>=1.22.4 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from scipy) (2.0.2)
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Requirement already satisfied: tqdm in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (4.67.1)
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Requirement already satisfied: psutil in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (6.1.1)
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting spandrel
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/5b/ad/e27e971a75deaaac7817e022174f88fae4db203216ac59c1ace99f3e56eb/spandrel-0.4.0-py3-none-any.whl (297 kB)
Requirement already satisfied: torch in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (2.0.1)
Requirement already satisfied: torchvision in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (0.15.2)
Requirement already satisfied: safetensors in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (0.4.5)
Requirement already satisfied: numpy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (2.0.2)
Requirement already satisfied: einops in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (0.8.0)
Requirement already satisfied: typing-extensions in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from spandrel) (4.12.2)
Requirement already satisfied: filelock in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (3.16.1)
Requirement already satisfied: sympy in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (1.13.3)
Requirement already satisfied: networkx in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (3.2.1)
Requirement already satisfied: jinja2 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (3.1.5)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.7.99)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.7.99)
Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.7.101)
Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (8.5.0.96)
Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.10.3.66)
Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (10.9.0.58)
Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (10.2.10.91)
Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.4.0.1)
Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.7.4.91)
Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (2.14.3)
Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (11.7.91)
Requirement already satisfied: triton==2.0.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torch->spandrel) (2.0.0)
Requirement already satisfied: setuptools in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->spandrel) (75.1.0)
Requirement already satisfied: wheel in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->spandrel) (0.44.0)
Requirement already satisfied: cmake in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch->spandrel) (3.31.2)
Requirement already satisfied: lit in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from triton==2.0.0->torch->spandrel) (18.1.8)
Requirement already satisfied: requests in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchvision->spandrel) (2.32.3)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from torchvision->spandrel) (11.0.0)
Requirement already satisfied: MarkupSafe>=2.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from jinja2->torch->spandrel) (3.0.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from requests->torchvision->spandrel) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from requests->torchvision->spandrel) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from requests->torchvision->spandrel) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from requests->torchvision->spandrel) (2024.12.14)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages (from sympy->torch->spandrel) (1.3.0)
Installing collected packages: spandrel
Successfully installed spandrel-0.4.0
Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple
Collecting soundfile
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/ad/bd/0602167a213d9184fc688b1086dc6d374b7ae8c33eccf169f9b50ce6568c/soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl (1.3 MB)
[2K [90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [32m1.3/1.3 MB[0m [31m20.9 MB/s[0m eta [36m0:00:00[0m
[?25hCollecting cffi>=1.0 (from soundfile)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/bd/62/a1f468e5708a70b1d86ead5bab5520861d9c7eacce4a885ded9faa7729c3/cffi-1.17.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (445 kB)
Collecting pycparser (from cffi>=1.0->soundfile)
Downloading http://repo.myhuaweicloud.com/repository/pypi/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pycparser, cffi, soundfile
Successfully installed cffi-1.17.1 pycparser-2.22 soundfile-0.12.1
2. 在ComfyUI中使用工作流完成人像风格转换
2.1 启动ComfyUI
运行下面cell中的代码,服务启动后即看到"To see the GUI go to: 127.0.0.1:8188"后,在界面左上方点击"+"号新建一个terminal。
在terminal中输入:
cd ma_share/Untitled/
./cpolar http 8188
使用cpolar将ComfyUI服务公开到公网中,点击生成的https链接即可访问。
%cd ComfyUI
!python main.py
/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/IPython/core/magics/osm.py:417: UserWarning: using dhist requires you to install the `pickleshare` library.
self.shell.db['dhist'] = compress_dhist(dhist)[-100:]
/home/ma-user/work/ComfyUI
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-12-24 17:06:19.930774
** Platform: Linux
** Python version: 3.9.15 (main, Nov 24 2022, 14:31:59)
[GCC 11.2.0]
** Python executable: /home/ma-user/anaconda3/envs/python-3.9.15/bin/python
** ComfyUI Path: /home/ma-user/work/ComfyUI
** Log path: /home/ma-user/work/ComfyUI/comfyui.log
Prestartup times for custom nodes:
0.0 seconds: /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use
1.6 seconds: /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Manager
Total VRAM 16281 MB, total RAM 63891 MB
pytorch version: 2.0.1+cu117
Set vram state to: NORMAL_VRAM
Device: cuda:0 Tesla P100-PCIE-16GB : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: /home/ma-user/work/ComfyUI/web
[36;20m[comfyui_controlnet_aux] | INFO -> Using ckpts path: /home/ma-user/work/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts[0m
[36;20m[comfyui_controlnet_aux] | INFO -> Using symlinks: False[0m
[36;20m[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'][0m
/home/ma-user/work/ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly
warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly")
Traceback (most recent call last):
File "/home/ma-user/work/ComfyUI/nodes.py", line 2072, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use/__init__.py", line 21, in <module>
imported_module = importlib.import_module(".py.{}".format(module_name), __name__)
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/easyNodes.py", line 17, in <module>
from .layer_diffuse import LayerDiffuse, LayerMethod
File "/home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/layer_diffuse/__init__.py", line 12, in <module>
from .model import ModelPatcher, TransparentVAEDecoder, calculate_weight_adjust_channel
File "/home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use/py/layer_diffuse/model.py", line 17, in <module>
from diffusers.models.modeling_utils import ModelMixin
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 35, in <module>
from ..quantizers import DiffusersAutoQuantizer, DiffusersQuantizer
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/diffusers/quantizers/__init__.py", line 15, in <module>
from .auto import DiffusersAutoQuantizer
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/diffusers/quantizers/auto.py", line 31, in <module>
from .torchao import TorchAoHfQuantizer
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/diffusers/quantizers/torchao/__init__.py", line 15, in <module>
from .torchao_quantizer import TorchAoHfQuantizer
File "/home/ma-user/anaconda3/envs/python-3.9.15/lib/python3.9/site-packages/diffusers/quantizers/torchao/torchao_quantizer.py", line 43, in <module>
torch.float8_e4m3fn,
AttributeError: module 'torch' has no attribute 'float8_e4m3fn'
Cannot import /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use module for custom nodes: module 'torch' has no attribute 'float8_e4m3fn'
### Loading: ComfyUI-Manager (V2.55.5)
### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
Import times for custom nodes:
0.0 seconds: /home/ma-user/work/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /home/ma-user/work/ComfyUI/custom_nodes/sdxl_prompt_styler
0.0 seconds: /home/ma-user/work/ComfyUI/custom_nodes/stability-ComfyUI-nodes
0.1 seconds: /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Manager
0.2 seconds (IMPORT FAILED): /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Easy-Use
0.5 seconds: /home/ma-user/work/ComfyUI/custom_nodes/comfyui_controlnet_aux
Starting server
To see the GUI go to: http://127.0.0.1:8188
[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
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
FETCH DATA from: /home/ma-user/work/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json [DONE]
got prompt
model weight dtype torch.float16, manual cast: torch.float32
model_type EPS
Using pytorch attention in VAE
Using pytorch attention in VAE
Requested to load SDXLClipModel
loaded completely 9.5367431640625e+25 1560.802734375 True
Requested to load SDXLClipModel
loaded completely 9.5367431640625e+25 1560.802734375 True
Requested to load ControlNet
Requested to load SDXL
loaded completely 9.5367431640625e+25 2386.120147705078 True
loaded completely 9.5367431640625e+25 4897.0483474731445 True
100%|███████████████████████████████████████████| 30/30 [03:48<00:00, 7.60s/it]
Requested to load AutoencoderKL
0 models unloaded.
loaded completely 9.5367431640625e+25 319.11416244506836 True
Prompt executed in 246.80 seconds
^C
Stopped server
2.2 使用ComfyUI
点击左侧文件列表加载工作流,选择"animate-style-lora.json"即可加载人像日漫风格转换工作流,点击下方的"执行"按钮即可开启转换。用户也可以自行配置各节点的数值,输入图像需放置在ComfyUI/input目录中。
输出图像会放置在ComfyUI/output目录中。
四、ComfyUI、Midjourney和Stable Diffusion 三大绘画工具对比
在AI绘画领域,ComfyUI、Midjourney和Stable Diffusion各有其独特的优势和特点。以下是三者的对比分析:
ComfyUI
- 优势
- 高度定制性和灵活性:ComfyUI采用基于节点的GUI,用户可以通过拖拽和连接不同的节点来构建复杂的图像生成工作流,满足各种特定的创作需求。这种模块化的设计使得用户能够自由组合和扩展功能,实现更高的自动化水平。
- 直观的工作流管理:其工作流的保存和调用非常便捷,用户可以将工作流保存为Json文件,也可以通过加载图片来连带加载其对应的工作流程。这种清晰的工作流管理方式,使得图像生成过程的复现性极高,几乎可以100%复现原图。
- 轻量化和高效性能:ComfyUI对硬件的要求相对较低,即使是较低配置的显卡也能较好地运行,并且渲染速度更快。这使得它在生成复杂图像或进行批量生成时具有明显优势。
- 适用场景:适合有一定技术基础和编程思维的用户,如AI研究人员、专业的数字艺术家等。这些用户能够充分利用其高度定制化的特点,根据自己的专业需求构建复杂的工作流,实现创新的图像生成效果。
Midjourney
- 优势
- 易用性和上手快:Midjourney的操作非常简单,用户只需通过Discord机器人输入简单的命令和描述词,即可快速生成图像。其界面设计简洁明了,非常适合刚入门的用户。
- 高质量的生成效果:Midjourney的模型生成质量非常高,尤其是在自然语言理解能力方面,一直要高于其他一些AI绘画工具。它能够根据用户的描述生成具有艺术感和创意的图像,提供丰富的视觉效果。
- 适用场景:适合全行业艺术工作者,尤其是那些缺乏绘画基础或时间有限的用户。Midjourney更像是一个灵感素材来源,能够快速为用户提供创意灵感。
Stable Diffusion
- 优势
- 开源和免费:Stable Diffusion是一个开源的AI大模型,用户可以免费使用其核心功能。这使得基于Stable Diffusion的模型或应用百花齐放,为AI深度爱好者提供了广阔的研究和探索空间。
- 强大的可控性和商业落地能力:由于其开源特性,用户可以对模型进行深度定制和优化,实现更精确的图像生成控制。这使得Stable Diffusion在商业应用中具有更强的灵活性和适应性。
- 适用场景:适合项目制的艺术工作者协作。在工作中,用户可以协同自己的设计能力,通过Stable Diffusion反复优化调整,最终完成能够实际落地的作品。
总结
- ComfyUI在定制性和工作流管理方面具有明显优势,适合需要高度个性化和自动化创作的专业用户。
- Midjourney则以其易用性和高质量生成效果脱颖而出,适合初学者和需要快速灵感的用户。
- Stable Diffusion凭借其开源特性和强大的可控性,成为AI深度研究者和商业应用的理想选择。
用户可以根据自身的技术基础、创作需求和使用场景,选择最适合自己的AI绘画工具,以实现最佳的创作效果和工作效率.
五、企业落地场景
ComfyUI作为一个基于节点的图形用户界面,为企业提供了多种落地场景,以下是一些具体的应用实例:
1.1 设计与创意
- 高效的设计工作流管理:企业可以通过ComfyUI构建和管理复杂的设计工作流,实现从概念到成品的高效转化。设计师可以将设计流程拆解成多个节点,如草图绘制、色彩搭配、细节调整等,然后通过节点的连接和组合,形成完整的设计流程。这种方式不仅提高了设计效率,还使得设计过程更加清晰和可控,方便团队协作和项目管理。
- 个性化视觉内容创作:在品牌宣传、广告制作等场景中,企业可以利用ComfyUI生成独特的视觉效果。例如,根据品牌风格和市场定位,设计出符合品牌形象的海报、宣传册等视觉素材。ComfyUI的节点式工作流允许企业灵活调整设计元素和风格,快速响应市场变化,满足不同营销活动的视觉需求.
1.2 产品开发与原型设计
- 快速原型制作:在产品开发初期,企业可以使用ComfyUI快速创建产品的界面原型和视觉效果图。通过节点的组合,设计师可以轻松调整界面布局、颜色、字体等元素,及时展示产品的初步设计概念,帮助团队成员和利益相关者更好地理解产品功能和外观。这有助于加快产品开发进度,降低开发成本.
- 产品设计模拟与优化:企业还可以利用ComfyUI对产品设计进行模拟和优化。例如,在工业设计领域,通过模拟产品的外观、材质、结构等节点,企业可以预测产品的实际表现,发现潜在的设计问题。然后根据模拟结果,对产品设计进行调整和优化,提高产品的质量和市场竞争力.
1.3 营销与推广
- 营销素材生成与优化:在营销推广中,企业需要大量的视觉素材,如广告海报、社交媒体配图等。ComfyUI可以帮助企业快速生成高质量的营销素材。通过设置不同的节点参数,如风格、主题、元素等,企业可以根据不同营销渠道和目标受众的需求,生成多样化的视觉素材。同时,还可以通过A/B测试等方法,对生成的素材进行效果评估和优化,提高营销效果.
- 个性化营销内容定制:ComfyUI还可以实现个性化营销内容的定制。企业可以根据客户的行为数据、偏好等信息,通过节点的动态调整,生成个性化的营销内容。例如,在电商领域,为不同客户推荐个性化的商品展示图和促销信息,提高客户的购买意愿和品牌忠诚度.
1.4 教育与培训
- 教学资源开发:在教育行业,企业可以利用ComfyUI开发丰富的教学资源。例如,制作生动的课程插图、教学动画等,帮助学生更好地理解和掌握知识点。通过节点的组合和调整,教师可以根据教学进度和学生的反馈,灵活地更新和优化教学资源,提高教学效果.
- 虚拟实训环境搭建:企业还可以使用ComfyUI搭建虚拟实训环境,为学生提供实践操作的机会。例如,在设计专业中,通过模拟真实的设计场景和工作流程,学生可以在虚拟环境中进行设计练习,提高实践能力和创新思维.
1.5 数据可视化与分析
- 数据可视化展示:在数据分析和报告制作中,企业可以利用ComfyUI将复杂的数据信息转化为直观的可视化图表。通过设置不同的节点参数,如图表类型、颜色、布局等,企业可以根据数据的特点和分析目的,生成清晰、美观的数据可视化展示。这有助于企业更好地理解数据,发现数据背后的规律和趋势,为决策提供支持.
- 数据驱动的决策支持:ComfyUI还可以与企业的数据管理系统相结合,实现数据驱动的决策支持。通过实时获取和分析企业运营数据,企业可以快速生成反映业务状况的可视化报告和仪表盘,为管理层提供及时、准确的决策依据。同时,还可以根据数据分析结果,调整企业的运营策略和资源配置,提高企业的运营效率和竞争力.
- 点赞
- 收藏
- 关注作者
评论(0)