Spaces:
Running
on
Zero
Running
on
Zero
vinesmsuic
commited on
Commit
•
6b629aa
1
Parent(s):
9283735
adding template
Browse files- .gitignore +175 -0
- README.md +35 -2
- requirements.txt +71 -4
.gitignore
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
checkpoints/
|
2 |
+
|
3 |
+
# Byte-compiled / optimized / DLL files
|
4 |
+
__pycache__/
|
5 |
+
*.py[cod]
|
6 |
+
*$py.class
|
7 |
+
src/
|
8 |
+
# C extensions
|
9 |
+
*.so
|
10 |
+
temp
|
11 |
+
|
12 |
+
# Distribution / packaging
|
13 |
+
.Python
|
14 |
+
build/
|
15 |
+
develop-eggs/
|
16 |
+
dist/
|
17 |
+
downloads/
|
18 |
+
eggs/
|
19 |
+
.eggs/
|
20 |
+
lib/
|
21 |
+
lib64/
|
22 |
+
parts/
|
23 |
+
sdist/
|
24 |
+
var/
|
25 |
+
wheels/
|
26 |
+
share/python-wheels/
|
27 |
+
*.egg-info/
|
28 |
+
.installed.cfg
|
29 |
+
*.egg
|
30 |
+
MANIFEST
|
31 |
+
|
32 |
+
# PyInstaller
|
33 |
+
# Usually these files are written by a python script from a template
|
34 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
35 |
+
*.manifest
|
36 |
+
*.spec
|
37 |
+
|
38 |
+
# Installer logs
|
39 |
+
pip-log.txt
|
40 |
+
pip-delete-this-directory.txt
|
41 |
+
|
42 |
+
# Unit test / coverage reports
|
43 |
+
htmlcov/
|
44 |
+
.tox/
|
45 |
+
.nox/
|
46 |
+
.coverage
|
47 |
+
.coverage.*
|
48 |
+
.cache
|
49 |
+
nosetests.xml
|
50 |
+
coverage.xml
|
51 |
+
*.cover
|
52 |
+
*.py,cover
|
53 |
+
.hypothesis/
|
54 |
+
.pytest_cache/
|
55 |
+
cover/
|
56 |
+
|
57 |
+
# Translations
|
58 |
+
*.mo
|
59 |
+
*.pot
|
60 |
+
|
61 |
+
# Django stuff:
|
62 |
+
*.log
|
63 |
+
local_settings.py
|
64 |
+
db.sqlite3
|
65 |
+
db.sqlite3-journal
|
66 |
+
|
67 |
+
# Flask stuff:
|
68 |
+
instance/
|
69 |
+
.webassets-cache
|
70 |
+
|
71 |
+
# Scrapy stuff:
|
72 |
+
.scrapy
|
73 |
+
|
74 |
+
# Sphinx documentation
|
75 |
+
docs/_build/
|
76 |
+
|
77 |
+
# PyBuilder
|
78 |
+
.pybuilder/
|
79 |
+
target/
|
80 |
+
|
81 |
+
# Jupyter Notebook
|
82 |
+
.ipynb_checkpoints
|
83 |
+
|
84 |
+
# IPython
|
85 |
+
profile_default/
|
86 |
+
ipython_config.py
|
87 |
+
|
88 |
+
# pyenv
|
89 |
+
# For a library or package, you might want to ignore these files since the code is
|
90 |
+
# intended to run in multiple environments; otherwise, check them in:
|
91 |
+
# .python-version
|
92 |
+
|
93 |
+
# pipenv
|
94 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
95 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
96 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
97 |
+
# install all needed dependencies.
|
98 |
+
#Pipfile.lock
|
99 |
+
|
100 |
+
# poetry
|
101 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
102 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
103 |
+
# commonly ignored for libraries.
|
104 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
105 |
+
#poetry.lock
|
106 |
+
|
107 |
+
# pdm
|
108 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
109 |
+
#pdm.lock
|
110 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
111 |
+
# in version control.
|
112 |
+
# https://pdm.fming.dev/#use-with-ide
|
113 |
+
.pdm.toml
|
114 |
+
|
115 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
116 |
+
__pypackages__/
|
117 |
+
|
118 |
+
# Celery stuff
|
119 |
+
celerybeat-schedule
|
120 |
+
celerybeat.pid
|
121 |
+
|
122 |
+
# SageMath parsed files
|
123 |
+
*.sage.py
|
124 |
+
|
125 |
+
# Environments
|
126 |
+
.env
|
127 |
+
.venv
|
128 |
+
env/
|
129 |
+
venv/
|
130 |
+
ENV/
|
131 |
+
env.bak/
|
132 |
+
venv.bak/
|
133 |
+
|
134 |
+
# Spyder project settings
|
135 |
+
.spyderproject
|
136 |
+
.spyproject
|
137 |
+
|
138 |
+
# Rope project settings
|
139 |
+
.ropeproject
|
140 |
+
|
141 |
+
# mkdocs documentation
|
142 |
+
/site
|
143 |
+
|
144 |
+
# mypy
|
145 |
+
.mypy_cache/
|
146 |
+
.dmypy.json
|
147 |
+
dmypy.json
|
148 |
+
|
149 |
+
# Pyre type checker
|
150 |
+
.pyre/
|
151 |
+
|
152 |
+
# pytype static type analyzer
|
153 |
+
.pytype/
|
154 |
+
|
155 |
+
# Cython debug symbols
|
156 |
+
cython_debug/
|
157 |
+
|
158 |
+
# PyCharm
|
159 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
160 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
161 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
162 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
163 |
+
#.idea/
|
164 |
+
/tmp
|
165 |
+
/logs
|
166 |
+
/*.json
|
167 |
+
/*.jpg
|
168 |
+
/*.ipynb
|
169 |
+
/GenAI-Arena-hf-logs
|
170 |
+
/3DGen-Arena-logs*
|
171 |
+
/tmp*
|
172 |
+
/arena_elo/results/**/*.jpg
|
173 |
+
/arena_elo/results/**/*.png
|
174 |
+
/arena_elo/6_04_log_results
|
175 |
+
/arena_elo/update_elo_rating_6_04.sh
|
README.md
CHANGED
@@ -7,7 +7,40 @@ sdk: gradio
|
|
7 |
sdk_version: 4.26.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license:
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
sdk_version: 4.26.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: mit
|
11 |
+
tags:
|
12 |
+
- arena
|
13 |
+
- leaderboard
|
14 |
+
short_description: Realtime Image/Video Gen AI Arena
|
15 |
---
|
16 |
|
17 |
+
## Installation
|
18 |
+
|
19 |
+
- for cuda 11.8
|
20 |
+
```bash
|
21 |
+
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
|
22 |
+
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu118
|
23 |
+
pip install -r requirements.txt
|
24 |
+
```
|
25 |
+
- for cuda 12.1
|
26 |
+
```bash
|
27 |
+
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
|
28 |
+
pip install -r requirements.txt
|
29 |
+
```
|
30 |
+
|
31 |
+
## Start Hugging Face UI
|
32 |
+
```bash
|
33 |
+
python app.py
|
34 |
+
```
|
35 |
+
|
36 |
+
## Start Log server
|
37 |
+
```bash
|
38 |
+
uvicorn serve.log_server:app --reload --port 22005 --host 0.0.0.0
|
39 |
+
```
|
40 |
+
|
41 |
+
## Update leaderboard
|
42 |
+
```bash
|
43 |
+
cd arena_elo && bash update_leaderboard.sh
|
44 |
+
```
|
45 |
+
|
46 |
+
Paper: arxiv.org/abs/2406.04485
|
requirements.txt
CHANGED
@@ -1,6 +1,73 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
transformers
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
flask
|
2 |
+
flask_restful
|
3 |
+
flask_cors
|
4 |
+
faiss-cpu
|
5 |
+
fire
|
6 |
+
h5py
|
7 |
+
-e git+https://github.com/facebookresearch/xformers.git@main#egg=xformers
|
8 |
+
numpy>=1.23.5
|
9 |
+
pandas<2.0.0
|
10 |
+
peft>=0.12
|
11 |
torch
|
12 |
+
torchvision
|
13 |
+
torchaudio
|
14 |
+
jupyterlab>=4.0.2
|
15 |
+
notebook>=6.5.4
|
16 |
+
albumentations>=1.1.0
|
17 |
+
opencv-python>=4.2.0
|
18 |
+
pudb~=2019.2
|
19 |
+
imageio>=2.14.1
|
20 |
+
imageio-ffmpeg>=0.4.7
|
21 |
+
pytorch-lightning>=1.5.9
|
22 |
+
omegaconf~=2.1.1
|
23 |
+
gradio==4.21.0
|
24 |
+
pillow~=9.5.0
|
25 |
+
einops>=0.4.1
|
26 |
+
torch-fidelity>=0.3.0
|
27 |
+
setuptools>=59.5.0
|
28 |
transformers
|
29 |
+
torchmetrics>=0.6.0
|
30 |
+
lpips
|
31 |
+
image-reward
|
32 |
+
kornia>=0.6
|
33 |
+
diffusers>=0.18.0
|
34 |
+
accelerate>=0.20.3
|
35 |
+
safetensors
|
36 |
+
datasets
|
37 |
+
tqdm>=4.64.1
|
38 |
+
matplotlib>=3.7.1
|
39 |
+
taming-transformers-rom1504~=0.0.6
|
40 |
+
madgrad>=1.1
|
41 |
+
-e git+https://github.com/openai/CLIP.git@main#egg=clip
|
42 |
+
dominate>=2.8.0
|
43 |
+
-e git+https://github.com/CompVis/latent-diffusion.git#egg=latent-diffusion #ldm
|
44 |
+
openai
|
45 |
+
nltk~=3.8.1
|
46 |
+
krippendorff
|
47 |
+
statsmodels
|
48 |
+
plotly
|
49 |
+
git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
|
50 |
+
git+https://github.com/TIGER-AI-Lab/VideoGenHub.git@arena#egg=videogen-hub
|
51 |
+
fal_client
|
52 |
+
open_clip_torch~=2.24.0
|
53 |
+
decord
|
54 |
+
huggingface_hub
|
55 |
+
open-clip-torch-any-py3
|
56 |
+
modelscope
|
57 |
+
protobuf==3.20.*
|
58 |
+
rotary_embedding_torch
|
59 |
+
av
|
60 |
+
oss2
|
61 |
+
simplejson
|
62 |
+
sortedcontainers
|
63 |
+
natsort
|
64 |
+
colossalai
|
65 |
+
mmengine
|
66 |
+
pre-commit
|
67 |
+
pyav
|
68 |
+
pyarrow
|
69 |
+
tensorboard
|
70 |
+
timm
|
71 |
+
wandb
|
72 |
+
pandarallel
|
73 |
+
kaleido
|