代码拉取完成,页面将自动刷新
import os
import re
from setuptools import find_packages, setup
_deps = [
"torch",
"xformers",
"diffusers==0.24.0",
"transformers",
"accelerate",
"fire",
"omegaconf",
"cuda-python",
"onnx==1.15.0",
"onnxruntime==1.16.3",
"protobuf==3.20.2",
"colored",
"pywin32"
]
deps = {b: a for a, b in (re.findall(r"^(([^!=<>~]+)(?:[!=<>~].*)?$)", x)[0] for x in _deps)}
def deps_list(*pkgs):
return [deps[pkg] for pkg in pkgs]
extras = {}
extras["xformers"] = deps_list("xformers")
extras["torch"] = deps_list("torch", "accelerate")
extras["tensorrt"] = deps_list("protobuf", "cuda-python", "onnx", "onnxruntime", "colored")
extras["dev"] = extras["xformers"] + extras["torch"] + extras["tensorrt"]
install_requires = [
deps["fire"],
deps["omegaconf"],
deps["diffusers"],
deps["transformers"],
deps["accelerate"],
]
setup(
name="streamdiffusion",
version="0.1.1",
description="real-time interactive image generation pipeline",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
keywords="deep learning diffusion pytorch stable diffusion audioldm streamdiffusion real-time",
license="Apache 2.0 License",
author="Aki, kizamimi, ddPn08, Verb, ramune, teftef6220, Tonimono, Chenfeng Xu, Ararat with the help of all our contributors (https://github.com/cumulo-autumn/StreamDiffusion/graphs/contributors)",
author_email="cumulokyoukai@gmail.com",
url="https://github.com/cumulo-autumn/StreamDiffusion",
package_dir={"": "src"},
packages=find_packages("src"),
package_data={"streamdiffusion": ["py.typed"]},
include_package_data=True,
python_requires=">=3.10.0",
install_requires=list(install_requires),
extras_require=extras,
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。