加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
kizamimi 提交于 2023-12-30 19:18 . Update version information in setup.py
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,
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化