mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-02-22 21:43:19 +01:00
* upload v2.0 * update docs * [hotfix] fit latest fa3 (#802) * update readme * update readme * update readme * update train readme * update readme * update readme: motion score * cleaning video dc ae WIP * update config * add dependency functions * undo cleaning * use latest dcae * complete high compression training * update hcae config * cleaned up vae * update ae.md * further cleanup * update vae & ae paths * align naming of ae * [hotfix] fix ring attn bwd for fa3 (#803) * train ae default without wandb * update config * update evaluation results * added hcae report * update readme * update readme demo * update readme demo * update readme gif * display demo directly in readme * update paper * delete files --------- Co-authored-by: Hongxin Liu <lhx0217@gmail.com> Co-authored-by: Shen-Chenhui <shen_chenhui@u.nus.edu> Co-authored-by: wuxiwen <wuxiwen.simon@gmail.com>
77 lines
2.1 KiB
Python
77 lines
2.1 KiB
Python
from typing import List
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
def fetch_requirements(paths) -> List[str]:
|
|
"""
|
|
This function reads the requirements file.
|
|
|
|
Args:
|
|
path (str): the path to the requirements file.
|
|
|
|
Returns:
|
|
The lines in the requirements file.
|
|
"""
|
|
if not isinstance(paths, list):
|
|
paths = [paths]
|
|
requirements = []
|
|
for path in paths:
|
|
with open(path, "r") as fd:
|
|
requirements += [r.strip() for r in fd.readlines()]
|
|
return requirements
|
|
|
|
|
|
def fetch_readme() -> str:
|
|
"""
|
|
This function reads the README.md file in the current directory.
|
|
|
|
Returns:
|
|
The lines in the README file.
|
|
"""
|
|
with open("README.md", encoding="utf-8") as f:
|
|
return f.read()
|
|
|
|
|
|
setup(
|
|
name="opensora",
|
|
version="2.0.0",
|
|
packages=find_packages(
|
|
exclude=(
|
|
"assets",
|
|
"configs",
|
|
"docs",
|
|
"eval",
|
|
"evaluation_results",
|
|
"gradio",
|
|
"logs",
|
|
"notebooks",
|
|
"outputs",
|
|
"pretrained_models",
|
|
"samples",
|
|
"scripts",
|
|
"*.egg-info",
|
|
)
|
|
),
|
|
description="Democratizing Efficient Video Production for All",
|
|
long_description=fetch_readme(),
|
|
long_description_content_type="text/markdown",
|
|
license="Apache Software License 2.0",
|
|
url="https://github.com/hpcaitech/Open-Sora",
|
|
project_urls={
|
|
"Bug Tracker": "https://github.com/hpcaitech/Open-Sora/issues",
|
|
"Examples": "https://hpcaitech.github.io/Open-Sora/",
|
|
"Documentation": "https://github.com/hpcaitech/Open-Sora?tab=readme-ov-file",
|
|
"Github": "https://github.com/hpcaitech/Open-Sora",
|
|
},
|
|
install_requires=fetch_requirements("requirements.txt"),
|
|
python_requires=">=3.6",
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Environment :: GPU :: NVIDIA CUDA",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
"Topic :: System :: Distributed Computing",
|
|
],
|
|
)
|