赞
踩
独乐乐不如众乐乐,现在打包部署好的环境作为启动器来普惠大众。
GitHub下载好ComfyUI源码后,创建并激活conda环境
- conda create -n comfy python=3.9
- conda activate comfy
- pip install -r requirements.txt
pip 安装速度慢加清华源,requirements.txt内容如下:
addict==2.4.0 aiohttp==3.9.3 aiosignal==1.3.1 albumentations==1.4.1 altgraph==0.17.4 antlr4-python3-runtime==4.9.3 anyio==4.3.0 astunparse==1.6.3 async-timeout==4.0.3 asyncio==3.4.3 attrs==23.2.0 blinker==1.7.0 certifi==2024.2.2 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 coloredlogs==15.0.1 colorlog==6.8.2 contourpy==1.1.1 cssselect2==0.7.0 cycler==0.12.1 Cython==3.0.8 einops==0.7.0 embreex==2.17.7.post4 et-xmlfile==1.1.0 exceptiongroup==1.2.0 filelock==3.13.1 Flask==3.0.2 flatbuffers==23.5.26 fonttools==4.49.0 frozenlist==1.4.1 fsspec==2024.2.0 ftfy==6.1.3 fvcore==0.1.5.post20221221 gast==0.5.4 gitdb==4.0.11 GitPython==3.1.42 google-pasta==0.2.0 h11==0.14.0 h5py==3.10.0 httpcore==1.0.4 httpx==0.27.0 huggingface-hub==0.20.3 humanfriendly==10.0 idna==3.6 imageio==2.34.0 importlib-metadata==7.0.1 importlib-resources==6.1.1 iopath==0.1.10 itsdangerous==2.1.2 Jinja2==3.1.3 joblib==1.3.2 jsonschema==4.21.1 jsonschema-specifications==2023.12.1 keras==2.15.0 kiwisolver==1.4.5 lazy_loader==0.3 libclang==16.0.6 lightning-utilities==0.10.1 lxml==5.1.0 mapbox-earcut==1.0.1 MarkupSafe==2.1.5 matplotlib==3.7.5 matrix-client==0.4.0 mdurl==0.1.2 ml-dtypes==0.2.0 mpmath==1.3.0 multidict==6.0.5 networkx==3.1 numpy==1.24.4 omegaconf==2.3.0 onnx==1.14.0 onnx-simplifier==0.4.33 onnxruntime==1.15.1 opencv-python==4.9.0.80 opencv-python-headless==4.9.0.80 openpyxl==3.1.2 opt-einsum==3.3.0 packaging==23.2 pandas==2.0.3 pefile==2023.2.7 piexif==1.1.3 pillow==10.2.0 platformdirs==4.2.0 portalocker==2.8.2 protobuf==3.20.3 psutil==5.9.8 py-cpuinfo==9.0.0 pyarmor==8.4.7 pyarmor.cli.core==5.4.3 pycollada==0.8 pycparser==2.21 pyinstaller==6.4.0 pyinstaller-hooks-contrib==2024.1 pyparsing==3.1.1 pyreadline3==3.4.1 python-dateutil==2.8.2 pytorch-lightning==2.2.0.post0 pytz==2024.1 PyWavelets==1.4.1 pywin32==306 pywin32-ctypes==0.2.2 PyYAML==6.0.1 referencing==0.33.0 regex==2023.12.25 reportlab==4.1.0 requests==2.31.0 rich==13.5.2 rpds-py==0.18.0 Rtree==1.2.0 safetensors==0.4.2 scikit-image==0.21.0 scikit-learn==1.4.1.post1 scipy==1.10.1 seaborn==0.13.2 segment-anything==1.0 shapely==2.0.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 svg.path==6.3 svglib==1.5.1 sympy==1.12 tabulate==0.9.0 tensorboard==2.15.1 tensorboardX==2.6.2.2 tensorflow==2.15.0 tensorflow-estimator==2.15.0 tensorflow-intel==2.15.0 tensorflow-io-gcs-filesystem==0.31.0 termcolor==2.4.0 thop==0.1.1.post2209072238 threadpoolctl==3.3.0 tifffile==2023.7.10 tinycss2==1.2.1 tokenizers==0.15.2 tomli==2.0.1 torch==1.13.0+cu116 torchaudio==0.13.0+cu116 torchmetrics==1.3.1 torchsde==0.2.6 torchvision==0.14.0+cu116 tqdm==4.66.2 trampoline==0.1.2 transformers==4.38.1 trimesh==4.2.0 typing_extensions==4.9.0 tzdata==2024.1 ultralytics==8.1.18 urllib3==1.26.18 vhacdx==0.0.6 waitress==3.0.0 wcwidth==0.2.13 webencodings==0.5.1 Werkzeug==3.0.1 wrapt==1.14.1 x2paddle==1.4.1 xatlas==0.0.9 xxhash==3.4.1 yacs==0.1.8 yapf==0.40.2 yarl==1.9.4 zipp==3.17.0
pyinstaller -D .\main.py
终端执行以上命令等待几分钟,会在目录下生成一个dist文件夹:
复制ComfyUI下的文件夹 comfy、comfy_extras、custom_nodes、web、models 到 dist/main/_internal 下,最后双击main.exe即可启动ComfyUI,享受AI绘画乐趣~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。