setup.py 1.74 KB
Newer Older
luopl's avatar
luopl committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from setuptools import find_packages, setup
import subprocess


def get_cuda_version():
    try:
        nvcc_version = subprocess.check_output(["nvcc", "--version"]).decode("utf-8")
        version_line = [line for line in nvcc_version.split("\n") if "release" in line][
            0
        ]
        cuda_version = version_line.split(" ")[-2].replace(",", "")
        return "cu" + cuda_version.replace(".", "")
    except Exception as e:
        return "no_cuda"


if __name__ == "__main__":
    with open("README.md", "r") as f:
        long_description = f.read()
    fp = open("stepvideo/__version__.py", "r").read()
    version = eval(fp.strip().split()[-1])

    setup(
        name="stepvideo",
        author="Step-Video Team",
        packages=find_packages(),
        install_requires=[
luopl's avatar
luopl committed
28
29
30
31
            "torchvision==0.19.1+das.opt2.dtk2504",
            "torch==2.4.1+das.opt2.dtk2504",
            "accelerate==1.6.0",
            "transformers==4.49.0",
luopl's avatar
luopl committed
32
            "diffusers==0.31.0",
luopl's avatar
luopl committed
33
34
35
            "sentencepiece==0.2.0",
            "blinker==1.4"
            "imageio>=2.37.0",
luopl's avatar
luopl committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
            "optimus==2.1",
            "numpy",
            "einops",
            "aiohttp",
            "asyncio",
            "flask",
            "flask_restful",
            "ffmpeg-python",
            "requests",
            "xfuser==0.4.2rc2"
        ],
        url="",
        description="A 30B DiT based text to video and image generation model",
        long_description=long_description,
        long_description_content_type="text/markdown",
        version=version,
        classifiers=[
            "Programming Language :: Python :: 3",
            "Operating System :: OS Independent",
        ],
        include_package_data=True,
        python_requires=">=3.10",
luopl's avatar
luopl committed
58
    )