-
Notifications
You must be signed in to change notification settings - Fork 65
/
setup.py
36 lines (34 loc) · 1.14 KB
/
setup.py
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
28
29
30
31
32
33
34
35
36
from setuptools import setup, find_packages
import os
import pkg_resources
from pathlib import Path
long_description = (Path(__file__).parent / "README.md").read_text()
DESCRIPTION = 'ImageReward'
# 配置
setup(
name="image-reward",
py_modules = ["ImageReward"],
version="1.5",
author="Jiazheng Xu, et al.",
author_email="<[email protected]>",
url="https://github.com/THUDM/ImageReward",
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(exclude=["tests*"]),
install_requires=[
'clip@https://github.com/openai/CLIP/archive/refs/heads/main.zip#egg=clip-1.0',
'timm>=0.6.13',
'transformers>=4.27.4',
'fairscale>=0.4.13',
'huggingface_hub>=0.13.4',
'diffusers>=0.16.0',
'accelerate>=0.16.0',
'datasets>=2.11.0',
],
dependency_links = [
"clip @ git+https://github.com/openai/CLIP.git",
],
python_requires=">=3.5",
license="Apache 2.0 license"
)