Upload 5 files
Browse files- .gitattributes +35 -35
- .gitignore +178 -0
- LICENSE +201 -0
- README.md +483 -14
- requirements.txt +15 -0
.gitattributes
CHANGED
@@ -1,35 +1,35 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
hf_download/
|
2 |
+
outputs/
|
3 |
+
repo/
|
4 |
+
|
5 |
+
# Byte-compiled / optimized / DLL files
|
6 |
+
__pycache__/
|
7 |
+
*.py[cod]
|
8 |
+
*$py.class
|
9 |
+
|
10 |
+
# C extensions
|
11 |
+
*.so
|
12 |
+
|
13 |
+
# Distribution / packaging
|
14 |
+
.Python
|
15 |
+
build/
|
16 |
+
develop-eggs/
|
17 |
+
dist/
|
18 |
+
downloads/
|
19 |
+
eggs/
|
20 |
+
.eggs/
|
21 |
+
lib/
|
22 |
+
lib64/
|
23 |
+
parts/
|
24 |
+
sdist/
|
25 |
+
var/
|
26 |
+
wheels/
|
27 |
+
share/python-wheels/
|
28 |
+
*.egg-info/
|
29 |
+
.installed.cfg
|
30 |
+
*.egg
|
31 |
+
MANIFEST
|
32 |
+
|
33 |
+
# PyInstaller
|
34 |
+
# Usually these files are written by a python script from a template
|
35 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
36 |
+
*.manifest
|
37 |
+
*.spec
|
38 |
+
|
39 |
+
# Installer logs
|
40 |
+
pip-log.txt
|
41 |
+
pip-delete-this-directory.txt
|
42 |
+
|
43 |
+
# Unit test / coverage reports
|
44 |
+
htmlcov/
|
45 |
+
.tox/
|
46 |
+
.nox/
|
47 |
+
.coverage
|
48 |
+
.coverage.*
|
49 |
+
.cache
|
50 |
+
nosetests.xml
|
51 |
+
coverage.xml
|
52 |
+
*.cover
|
53 |
+
*.py,cover
|
54 |
+
.hypothesis/
|
55 |
+
.pytest_cache/
|
56 |
+
cover/
|
57 |
+
|
58 |
+
# Translations
|
59 |
+
*.mo
|
60 |
+
*.pot
|
61 |
+
|
62 |
+
# Django stuff:
|
63 |
+
*.log
|
64 |
+
local_settings.py
|
65 |
+
db.sqlite3
|
66 |
+
db.sqlite3-journal
|
67 |
+
|
68 |
+
# Flask stuff:
|
69 |
+
instance/
|
70 |
+
.webassets-cache
|
71 |
+
|
72 |
+
# Scrapy stuff:
|
73 |
+
.scrapy
|
74 |
+
|
75 |
+
# Sphinx documentation
|
76 |
+
docs/_build/
|
77 |
+
|
78 |
+
# PyBuilder
|
79 |
+
.pybuilder/
|
80 |
+
target/
|
81 |
+
|
82 |
+
# Jupyter Notebook
|
83 |
+
.ipynb_checkpoints
|
84 |
+
|
85 |
+
# IPython
|
86 |
+
profile_default/
|
87 |
+
ipython_config.py
|
88 |
+
|
89 |
+
# pyenv
|
90 |
+
# For a library or package, you might want to ignore these files since the code is
|
91 |
+
# intended to run in multiple environments; otherwise, check them in:
|
92 |
+
# .python-version
|
93 |
+
|
94 |
+
# pipenv
|
95 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
96 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
97 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
98 |
+
# install all needed dependencies.
|
99 |
+
#Pipfile.lock
|
100 |
+
|
101 |
+
# UV
|
102 |
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
103 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
104 |
+
# commonly ignored for libraries.
|
105 |
+
#uv.lock
|
106 |
+
|
107 |
+
# poetry
|
108 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
109 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
110 |
+
# commonly ignored for libraries.
|
111 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
112 |
+
#poetry.lock
|
113 |
+
|
114 |
+
# pdm
|
115 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
116 |
+
#pdm.lock
|
117 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
118 |
+
# in version control.
|
119 |
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
120 |
+
.pdm.toml
|
121 |
+
.pdm-python
|
122 |
+
.pdm-build/
|
123 |
+
|
124 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
125 |
+
__pypackages__/
|
126 |
+
|
127 |
+
# Celery stuff
|
128 |
+
celerybeat-schedule
|
129 |
+
celerybeat.pid
|
130 |
+
|
131 |
+
# SageMath parsed files
|
132 |
+
*.sage.py
|
133 |
+
|
134 |
+
# Environments
|
135 |
+
.env
|
136 |
+
.venv
|
137 |
+
env/
|
138 |
+
venv/
|
139 |
+
ENV/
|
140 |
+
env.bak/
|
141 |
+
venv.bak/
|
142 |
+
|
143 |
+
# Spyder project settings
|
144 |
+
.spyderproject
|
145 |
+
.spyproject
|
146 |
+
|
147 |
+
# Rope project settings
|
148 |
+
.ropeproject
|
149 |
+
|
150 |
+
# mkdocs documentation
|
151 |
+
/site
|
152 |
+
|
153 |
+
# mypy
|
154 |
+
.mypy_cache/
|
155 |
+
.dmypy.json
|
156 |
+
dmypy.json
|
157 |
+
|
158 |
+
# Pyre type checker
|
159 |
+
.pyre/
|
160 |
+
|
161 |
+
# pytype static type analyzer
|
162 |
+
.pytype/
|
163 |
+
|
164 |
+
# Cython debug symbols
|
165 |
+
cython_debug/
|
166 |
+
|
167 |
+
# PyCharm
|
168 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
169 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
170 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
171 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
172 |
+
.idea/
|
173 |
+
|
174 |
+
# Ruff stuff:
|
175 |
+
.ruff_cache/
|
176 |
+
|
177 |
+
# PyPI configuration file
|
178 |
+
.pypirc
|
LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Apache License
|
2 |
+
Version 2.0, January 2004
|
3 |
+
http://www.apache.org/licenses/
|
4 |
+
|
5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6 |
+
|
7 |
+
1. Definitions.
|
8 |
+
|
9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
11 |
+
|
12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13 |
+
the copyright owner that is granting the License.
|
14 |
+
|
15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
16 |
+
other entities that control, are controlled by, or are under common
|
17 |
+
control with that entity. For the purposes of this definition,
|
18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
19 |
+
direction or management of such entity, whether by contract or
|
20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22 |
+
|
23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24 |
+
exercising permissions granted by this License.
|
25 |
+
|
26 |
+
"Source" form shall mean the preferred form for making modifications,
|
27 |
+
including but not limited to software source code, documentation
|
28 |
+
source, and configuration files.
|
29 |
+
|
30 |
+
"Object" form shall mean any form resulting from mechanical
|
31 |
+
transformation or translation of a Source form, including but
|
32 |
+
not limited to compiled object code, generated documentation,
|
33 |
+
and conversions to other media types.
|
34 |
+
|
35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
36 |
+
Object form, made available under the License, as indicated by a
|
37 |
+
copyright notice that is included in or attached to the work
|
38 |
+
(an example is provided in the Appendix below).
|
39 |
+
|
40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41 |
+
form, that is based on (or derived from) the Work and for which the
|
42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
44 |
+
of this License, Derivative Works shall not include works that remain
|
45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46 |
+
the Work and Derivative Works thereof.
|
47 |
+
|
48 |
+
"Contribution" shall mean any work of authorship, including
|
49 |
+
the original version of the Work and any modifications or additions
|
50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
54 |
+
means any form of electronic, verbal, or written communication sent
|
55 |
+
to the Licensor or its representatives, including but not limited to
|
56 |
+
communication on electronic mailing lists, source code control systems,
|
57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
59 |
+
excluding communication that is conspicuously marked or otherwise
|
60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
61 |
+
|
62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
64 |
+
subsequently incorporated within the Work.
|
65 |
+
|
66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
71 |
+
Work and such Derivative Works in Source or Object form.
|
72 |
+
|
73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76 |
+
(except as stated in this section) patent license to make, have made,
|
77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78 |
+
where such license applies only to those patent claims licensable
|
79 |
+
by such Contributor that are necessarily infringed by their
|
80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
82 |
+
institute patent litigation against any entity (including a
|
83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84 |
+
or a Contribution incorporated within the Work constitutes direct
|
85 |
+
or contributory patent infringement, then any patent licenses
|
86 |
+
granted to You under this License for that Work shall terminate
|
87 |
+
as of the date such litigation is filed.
|
88 |
+
|
89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
90 |
+
Work or Derivative Works thereof in any medium, with or without
|
91 |
+
modifications, and in Source or Object form, provided that You
|
92 |
+
meet the following conditions:
|
93 |
+
|
94 |
+
(a) You must give any other recipients of the Work or
|
95 |
+
Derivative Works a copy of this License; and
|
96 |
+
|
97 |
+
(b) You must cause any modified files to carry prominent notices
|
98 |
+
stating that You changed the files; and
|
99 |
+
|
100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
101 |
+
that You distribute, all copyright, patent, trademark, and
|
102 |
+
attribution notices from the Source form of the Work,
|
103 |
+
excluding those notices that do not pertain to any part of
|
104 |
+
the Derivative Works; and
|
105 |
+
|
106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107 |
+
distribution, then any Derivative Works that You distribute must
|
108 |
+
include a readable copy of the attribution notices contained
|
109 |
+
within such NOTICE file, excluding those notices that do not
|
110 |
+
pertain to any part of the Derivative Works, in at least one
|
111 |
+
of the following places: within a NOTICE text file distributed
|
112 |
+
as part of the Derivative Works; within the Source form or
|
113 |
+
documentation, if provided along with the Derivative Works; or,
|
114 |
+
within a display generated by the Derivative Works, if and
|
115 |
+
wherever such third-party notices normally appear. The contents
|
116 |
+
of the NOTICE file are for informational purposes only and
|
117 |
+
do not modify the License. You may add Your own attribution
|
118 |
+
notices within Derivative Works that You distribute, alongside
|
119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
120 |
+
that such additional attribution notices cannot be construed
|
121 |
+
as modifying the License.
|
122 |
+
|
123 |
+
You may add Your own copyright statement to Your modifications and
|
124 |
+
may provide additional or different license terms and conditions
|
125 |
+
for use, reproduction, or distribution of Your modifications, or
|
126 |
+
for any such Derivative Works as a whole, provided Your use,
|
127 |
+
reproduction, and distribution of the Work otherwise complies with
|
128 |
+
the conditions stated in this License.
|
129 |
+
|
130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
132 |
+
by You to the Licensor shall be under the terms and conditions of
|
133 |
+
this License, without any additional terms or conditions.
|
134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135 |
+
the terms of any separate license agreement you may have executed
|
136 |
+
with Licensor regarding such Contributions.
|
137 |
+
|
138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
140 |
+
except as required for reasonable and customary use in describing the
|
141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
142 |
+
|
143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144 |
+
agreed to in writing, Licensor provides the Work (and each
|
145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147 |
+
implied, including, without limitation, any warranties or conditions
|
148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150 |
+
appropriateness of using or redistributing the Work and assume any
|
151 |
+
risks associated with Your exercise of permissions under this License.
|
152 |
+
|
153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
154 |
+
whether in tort (including negligence), contract, or otherwise,
|
155 |
+
unless required by applicable law (such as deliberate and grossly
|
156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157 |
+
liable to You for damages, including any direct, indirect, special,
|
158 |
+
incidental, or consequential damages of any character arising as a
|
159 |
+
result of this License or out of the use or inability to use the
|
160 |
+
Work (including but not limited to damages for loss of goodwill,
|
161 |
+
work stoppage, computer failure or malfunction, or any and all
|
162 |
+
other commercial damages or losses), even if such Contributor
|
163 |
+
has been advised of the possibility of such damages.
|
164 |
+
|
165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168 |
+
or other liability obligations and/or rights consistent with this
|
169 |
+
License. However, in accepting such obligations, You may act only
|
170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171 |
+
of any other Contributor, and only if You agree to indemnify,
|
172 |
+
defend, and hold each Contributor harmless for any liability
|
173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
174 |
+
of your accepting any such warranty or additional liability.
|
175 |
+
|
176 |
+
END OF TERMS AND CONDITIONS
|
177 |
+
|
178 |
+
APPENDIX: How to apply the Apache License to your work.
|
179 |
+
|
180 |
+
To apply the Apache License to your work, attach the following
|
181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182 |
+
replaced with your own identifying information. (Don't include
|
183 |
+
the brackets!) The text should be enclosed in the appropriate
|
184 |
+
comment syntax for the file format. We also recommend that a
|
185 |
+
file or class name and description of purpose be included on the
|
186 |
+
same "printed page" as the copyright notice for easier
|
187 |
+
identification within third-party archives.
|
188 |
+
|
189 |
+
Copyright [yyyy] [name of copyright owner]
|
190 |
+
|
191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192 |
+
you may not use this file except in compliance with the License.
|
193 |
+
You may obtain a copy of the License at
|
194 |
+
|
195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
196 |
+
|
197 |
+
Unless required by applicable law or agreed to in writing, software
|
198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200 |
+
See the License for the specific language governing permissions and
|
201 |
+
limitations under the License.
|
README.md
CHANGED
@@ -1,14 +1,483 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<p align="center">
|
2 |
+
<img src="https://github.com/user-attachments/assets/2cc030b4-87e1-40a0-b5bf-1b7d6b62820b" width="300">
|
3 |
+
</p>
|
4 |
+
|
5 |
+
# FramePack
|
6 |
+
|
7 |
+
Official implementation and desktop software for ["Packing Input Frame Context in Next-Frame Prediction Models for Video Generation"](https://lllyasviel.github.io/frame_pack_gitpage/).
|
8 |
+
|
9 |
+
Links: [**Paper**](https://arxiv.org/abs/2504.12626), [**Project Page**](https://lllyasviel.github.io/frame_pack_gitpage/)
|
10 |
+
|
11 |
+
FramePack is a next-frame (next-frame-section) prediction neural network structure that generates videos progressively.
|
12 |
+
|
13 |
+
FramePack compresses input contexts to a constant length so that the generation workload is invariant to video length.
|
14 |
+
|
15 |
+
FramePack can process a very large number of frames with 13B models even on laptop GPUs.
|
16 |
+
|
17 |
+
FramePack can be trained with a much larger batch size, similar to the batch size for image diffusion training.
|
18 |
+
|
19 |
+
**Video diffusion, but feels like image diffusion.**
|
20 |
+
|
21 |
+
# Notes
|
22 |
+
|
23 |
+
Note that this GitHub repository is the only official FramePack website. We do not have any web services. All other websites are spam and fake, including but not limited to `framepack.co`, `frame_pack.co`, `framepack.net`, `frame_pack.net`, `framepack.ai`, `frame_pack.ai`, `framepack.pro`, `frame_pack.pro`, `framepack.cc`, `frame_pack.cc`,`framepackai.co`, `frame_pack_ai.co`, `framepackai.net`, `frame_pack_ai.net`, `framepackai.pro`, `frame_pack_ai.pro`, `framepackai.cc`, `frame_pack_ai.cc`, and so on. Again, they are all spam and fake. **Do not pay money or download files from any of those websites.**
|
24 |
+
|
25 |
+
The team is on leave between April 21 and 29. PR merging will be delayed.
|
26 |
+
|
27 |
+
# Requirements
|
28 |
+
|
29 |
+
Note that this repo is a functional desktop software with minimal standalone high-quality sampling system and memory management.
|
30 |
+
|
31 |
+
**Start with this repo before you try anything else!**
|
32 |
+
|
33 |
+
Requirements:
|
34 |
+
|
35 |
+
* Nvidia GPU in RTX 30XX, 40XX, 50XX series that supports fp16 and bf16. The GTX 10XX/20XX are not tested.
|
36 |
+
* Linux or Windows operating system.
|
37 |
+
* At least 6GB GPU memory.
|
38 |
+
|
39 |
+
To generate 1-minute video (60 seconds) at 30fps (1800 frames) using 13B model, the minimal required GPU memory is 6GB. (Yes 6 GB, not a typo. Laptop GPUs are okay.)
|
40 |
+
|
41 |
+
About speed, on my RTX 4090 desktop it generates at a speed of 2.5 seconds/frame (unoptimized) or 1.5 seconds/frame (teacache). On my laptops like 3070ti laptop or 3060 laptop, it is about 4x to 8x slower. [Troubleshoot if your speed is much slower than this.](https://github.com/lllyasviel/FramePack/issues/151#issuecomment-2817054649)
|
42 |
+
|
43 |
+
In any case, you will directly see the generated frames since it is next-frame(-section) prediction. So you will get lots of visual feedback before the entire video is generated.
|
44 |
+
|
45 |
+
# Installation
|
46 |
+
|
47 |
+
**Windows**:
|
48 |
+
|
49 |
+
[>>> Click Here to Download One-Click Package (CUDA 12.6 + Pytorch 2.6) <<<](https://github.com/lllyasviel/FramePack/releases/download/windows/framepack_cu126_torch26.7z)
|
50 |
+
|
51 |
+
After you download, you uncompress, use `update.bat` to update, and use `run.bat` to run.
|
52 |
+
|
53 |
+
Note that running `update.bat` is important, otherwise you may be using a previous version with potential bugs unfixed.
|
54 |
+
|
55 |
+

|
56 |
+
|
57 |
+
Note that the models will be downloaded automatically. You will download more than 30GB from HuggingFace.
|
58 |
+
|
59 |
+
**Linux**:
|
60 |
+
|
61 |
+
We recommend having an independent Python 3.10.
|
62 |
+
|
63 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
|
64 |
+
pip install -r requirements.txt
|
65 |
+
|
66 |
+
To start the GUI, run:
|
67 |
+
|
68 |
+
python demo_gradio.py
|
69 |
+
|
70 |
+
Note that it supports `--share`, `--port`, `--server`, and so on.
|
71 |
+
|
72 |
+
The software supports PyTorch attention, xformers, flash-attn, sage-attention. By default, it will just use PyTorch attention. You can install those attention kernels if you know how.
|
73 |
+
|
74 |
+
For example, to install sage-attention (linux):
|
75 |
+
|
76 |
+
pip install sageattention==1.0.6
|
77 |
+
|
78 |
+
However, you are highly recommended to first try without sage-attention since it will influence results, though the influence is minimal.
|
79 |
+
|
80 |
+
# GUI
|
81 |
+
|
82 |
+

|
83 |
+
|
84 |
+
On the left you upload an image and write a prompt.
|
85 |
+
|
86 |
+
On the right are the generated videos and latent previews.
|
87 |
+
|
88 |
+
Because this is a next-frame-section prediction model, videos will be generated longer and longer.
|
89 |
+
|
90 |
+
You will see the progress bar for each section and the latent preview for the next section.
|
91 |
+
|
92 |
+
Note that the initial progress may be slower than later diffusion as the device may need some warmup.
|
93 |
+
|
94 |
+
# Sanity Check
|
95 |
+
|
96 |
+
Before trying your own inputs, we highly recommend going through the sanity check to find out if any hardware or software went wrong.
|
97 |
+
|
98 |
+
Next-frame-section prediction models are very sensitive to subtle differences in noise and hardware. Usually, people will get slightly different results on different devices, but the results should look overall similar. In some cases, if possible, you'll get exactly the same results.
|
99 |
+
|
100 |
+
## Image-to-5-seconds
|
101 |
+
|
102 |
+
Download this image:
|
103 |
+
|
104 |
+
<img src="https://github.com/user-attachments/assets/f3bc35cf-656a-4c9c-a83a-bbab24858b09" width="150">
|
105 |
+
|
106 |
+
Copy this prompt:
|
107 |
+
|
108 |
+
`The man dances energetically, leaping mid-air with fluid arm swings and quick footwork.`
|
109 |
+
|
110 |
+
Set like this:
|
111 |
+
|
112 |
+
(all default parameters, with teacache turned off)
|
113 |
+

|
114 |
+
|
115 |
+
The result will be:
|
116 |
+
|
117 |
+
<table>
|
118 |
+
<tr>
|
119 |
+
<td align="center" width="300">
|
120 |
+
<video
|
121 |
+
src="https://github.com/user-attachments/assets/bc74f039-2b14-4260-a30b-ceacf611a185"
|
122 |
+
controls
|
123 |
+
style="max-width:100%;">
|
124 |
+
</video>
|
125 |
+
</td>
|
126 |
+
</tr>
|
127 |
+
<tr>
|
128 |
+
<td align="center">
|
129 |
+
<em>Video may be compressed by GitHub</em>
|
130 |
+
</td>
|
131 |
+
</tr>
|
132 |
+
</table>
|
133 |
+
|
134 |
+
**Important Note:**
|
135 |
+
|
136 |
+
Again, this is a next-frame-section prediction model. This means you will generate videos frame-by-frame or section-by-section.
|
137 |
+
|
138 |
+
**If you get a much shorter video in the UI, like a video with only 1 second, then it is totally expected.** You just need to wait. More sections will be generated to complete the video.
|
139 |
+
|
140 |
+
## Know the influence of TeaCache and Quantization
|
141 |
+
|
142 |
+
Download this image:
|
143 |
+
|
144 |
+
<img src="https://github.com/user-attachments/assets/42293e30-bdd4-456d-895c-8fedff71be04" width="150">
|
145 |
+
|
146 |
+
Copy this prompt:
|
147 |
+
|
148 |
+
`The girl dances gracefully, with clear movements, full of charm.`
|
149 |
+
|
150 |
+
Set like this:
|
151 |
+
|
152 |
+

|
153 |
+
|
154 |
+
Turn off teacache:
|
155 |
+
|
156 |
+

|
157 |
+
|
158 |
+
You will get this:
|
159 |
+
|
160 |
+
<table>
|
161 |
+
<tr>
|
162 |
+
<td align="center" width="300">
|
163 |
+
<video
|
164 |
+
src="https://github.com/user-attachments/assets/04ab527b-6da1-4726-9210-a8853dda5577"
|
165 |
+
controls
|
166 |
+
style="max-width:100%;">
|
167 |
+
</video>
|
168 |
+
</td>
|
169 |
+
</tr>
|
170 |
+
<tr>
|
171 |
+
<td align="center">
|
172 |
+
<em>Video may be compressed by GitHub</em>
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
+
</table>
|
176 |
+
|
177 |
+
Now turn on teacache:
|
178 |
+
|
179 |
+

|
180 |
+
|
181 |
+
About 30% users will get this (the other 70% will get other random results depending on their hardware):
|
182 |
+
|
183 |
+
<table>
|
184 |
+
<tr>
|
185 |
+
<td align="center" width="300">
|
186 |
+
<video
|
187 |
+
src="https://github.com/user-attachments/assets/149fb486-9ccc-4a48-b1f0-326253051e9b"
|
188 |
+
controls
|
189 |
+
style="max-width:100%;">
|
190 |
+
</video>
|
191 |
+
</td>
|
192 |
+
</tr>
|
193 |
+
<tr>
|
194 |
+
<td align="center">
|
195 |
+
<em>A typical worse result.</em>
|
196 |
+
</td>
|
197 |
+
</tr>
|
198 |
+
</table>
|
199 |
+
|
200 |
+
So you can see that teacache is not really lossless and sometimes can influence the result a lot.
|
201 |
+
|
202 |
+
We recommend using teacache to try ideas and then using the full diffusion process to get high-quality results.
|
203 |
+
|
204 |
+
This recommendation also applies to sage-attention, bnb quant, gguf, etc., etc.
|
205 |
+
|
206 |
+
## Image-to-1-minute
|
207 |
+
|
208 |
+
<img src="https://github.com/user-attachments/assets/820af6ca-3c2e-4bbc-afe8-9a9be1994ff5" width="150">
|
209 |
+
|
210 |
+
`The girl dances gracefully, with clear movements, full of charm.`
|
211 |
+
|
212 |
+

|
213 |
+
|
214 |
+
Set video length to 60 seconds:
|
215 |
+
|
216 |
+

|
217 |
+
|
218 |
+
If everything is in order you will get some result like this eventually.
|
219 |
+
|
220 |
+
60s version:
|
221 |
+
|
222 |
+
<table>
|
223 |
+
<tr>
|
224 |
+
<td align="center" width="300">
|
225 |
+
<video
|
226 |
+
src="https://github.com/user-attachments/assets/c3be4bde-2e33-4fd4-b76d-289a036d3a47"
|
227 |
+
controls
|
228 |
+
style="max-width:100%;">
|
229 |
+
</video>
|
230 |
+
</td>
|
231 |
+
</tr>
|
232 |
+
<tr>
|
233 |
+
<td align="center">
|
234 |
+
<em>Video may be compressed by GitHub</em>
|
235 |
+
</td>
|
236 |
+
</tr>
|
237 |
+
</table>
|
238 |
+
|
239 |
+
6s version:
|
240 |
+
|
241 |
+
<table>
|
242 |
+
<tr>
|
243 |
+
<td align="center" width="300">
|
244 |
+
<video
|
245 |
+
src="https://github.com/user-attachments/assets/37fe2c33-cb03-41e8-acca-920ab3e34861"
|
246 |
+
controls
|
247 |
+
style="max-width:100%;">
|
248 |
+
</video>
|
249 |
+
</td>
|
250 |
+
</tr>
|
251 |
+
<tr>
|
252 |
+
<td align="center">
|
253 |
+
<em>Video may be compressed by GitHub</em>
|
254 |
+
</td>
|
255 |
+
</tr>
|
256 |
+
</table>
|
257 |
+
|
258 |
+
# More Examples
|
259 |
+
|
260 |
+
Many more examples are in [**Project Page**](https://lllyasviel.github.io/frame_pack_gitpage/).
|
261 |
+
|
262 |
+
Below are some more examples that you may be interested in reproducing.
|
263 |
+
|
264 |
+
---
|
265 |
+
|
266 |
+
<img src="https://github.com/user-attachments/assets/99f4d281-28ad-44f5-8700-aa7a4e5638fa" width="150">
|
267 |
+
|
268 |
+
`The girl dances gracefully, with clear movements, full of charm.`
|
269 |
+
|
270 |
+

|
271 |
+
|
272 |
+
<table>
|
273 |
+
<tr>
|
274 |
+
<td align="center" width="300">
|
275 |
+
<video
|
276 |
+
src="https://github.com/user-attachments/assets/cebe178a-09ce-4b7a-8f3c-060332f4dab1"
|
277 |
+
controls
|
278 |
+
style="max-width:100%;">
|
279 |
+
</video>
|
280 |
+
</td>
|
281 |
+
</tr>
|
282 |
+
<tr>
|
283 |
+
<td align="center">
|
284 |
+
<em>Video may be compressed by GitHub</em>
|
285 |
+
</td>
|
286 |
+
</tr>
|
287 |
+
</table>
|
288 |
+
|
289 |
+
---
|
290 |
+
|
291 |
+
<img src="https://github.com/user-attachments/assets/853f4f40-2956-472f-aa7a-fa50da03ed92" width="150">
|
292 |
+
|
293 |
+
`The girl suddenly took out a sign that said “cute” using right hand`
|
294 |
+
|
295 |
+

|
296 |
+
|
297 |
+
<table>
|
298 |
+
<tr>
|
299 |
+
<td align="center" width="300">
|
300 |
+
<video
|
301 |
+
src="https://github.com/user-attachments/assets/116069d2-7499-4f38-ada7-8f85517d1fbb"
|
302 |
+
controls
|
303 |
+
style="max-width:100%;">
|
304 |
+
</video>
|
305 |
+
</td>
|
306 |
+
</tr>
|
307 |
+
<tr>
|
308 |
+
<td align="center">
|
309 |
+
<em>Video may be compressed by GitHub</em>
|
310 |
+
</td>
|
311 |
+
</tr>
|
312 |
+
</table>
|
313 |
+
|
314 |
+
---
|
315 |
+
|
316 |
+
<img src="https://github.com/user-attachments/assets/6d87c53f-81b2-4108-a704-697164ae2e81" width="150">
|
317 |
+
|
318 |
+
`The girl skateboarding, repeating the endless spinning and dancing and jumping on a skateboard, with clear movements, full of charm.`
|
319 |
+
|
320 |
+

|
321 |
+
|
322 |
+
<table>
|
323 |
+
<tr>
|
324 |
+
<td align="center" width="300">
|
325 |
+
<video
|
326 |
+
src="https://github.com/user-attachments/assets/d9e3534a-eb17-4af2-a8ed-8e692e9993d2"
|
327 |
+
controls
|
328 |
+
style="max-width:100%;">
|
329 |
+
</video>
|
330 |
+
</td>
|
331 |
+
</tr>
|
332 |
+
<tr>
|
333 |
+
<td align="center">
|
334 |
+
<em>Video may be compressed by GitHub</em>
|
335 |
+
</td>
|
336 |
+
</tr>
|
337 |
+
</table>
|
338 |
+
|
339 |
+
---
|
340 |
+
|
341 |
+
<img src="https://github.com/user-attachments/assets/6e95d1a5-9674-4c9a-97a9-ddf704159b79" width="150">
|
342 |
+
|
343 |
+
`The girl dances gracefully, with clear movements, full of charm.`
|
344 |
+
|
345 |
+

|
346 |
+
|
347 |
+
<table>
|
348 |
+
<tr>
|
349 |
+
<td align="center" width="300">
|
350 |
+
<video
|
351 |
+
src="https://github.com/user-attachments/assets/e1b3279e-e30d-4d32-b55f-2fb1d37c81d2"
|
352 |
+
controls
|
353 |
+
style="max-width:100%;">
|
354 |
+
</video>
|
355 |
+
</td>
|
356 |
+
</tr>
|
357 |
+
<tr>
|
358 |
+
<td align="center">
|
359 |
+
<em>Video may be compressed by GitHub</em>
|
360 |
+
</td>
|
361 |
+
</tr>
|
362 |
+
</table>
|
363 |
+
|
364 |
+
---
|
365 |
+
|
366 |
+
<img src="https://github.com/user-attachments/assets/90fc6d7e-8f6b-4f8c-a5df-ee5b1c8b63c9" width="150">
|
367 |
+
|
368 |
+
`The man dances flamboyantly, swinging his hips and striking bold poses with dramatic flair.`
|
369 |
+
|
370 |
+

|
371 |
+
|
372 |
+
<table>
|
373 |
+
<tr>
|
374 |
+
<td align="center" width="300">
|
375 |
+
<video
|
376 |
+
src="https://github.com/user-attachments/assets/aaa4481b-7bf8-4c64-bc32-909659767115"
|
377 |
+
controls
|
378 |
+
style="max-width:100%;">
|
379 |
+
</video>
|
380 |
+
</td>
|
381 |
+
</tr>
|
382 |
+
<tr>
|
383 |
+
<td align="center">
|
384 |
+
<em>Video may be compressed by GitHub</em>
|
385 |
+
</td>
|
386 |
+
</tr>
|
387 |
+
</table>
|
388 |
+
|
389 |
+
---
|
390 |
+
|
391 |
+
<img src="https://github.com/user-attachments/assets/62ecf987-ec0c-401d-b3c9-be9ffe84ee5b" width="150">
|
392 |
+
|
393 |
+
`The woman dances elegantly among the blossoms, spinning slowly with flowing sleeves and graceful hand movements.`
|
394 |
+
|
395 |
+

|
396 |
+
|
397 |
+
|
398 |
+
<table>
|
399 |
+
<tr>
|
400 |
+
<td align="center" width="300">
|
401 |
+
<video
|
402 |
+
src="https://github.com/user-attachments/assets/f23f2f37-c9b8-45d5-a1be-7c87bd4b41cf"
|
403 |
+
controls
|
404 |
+
style="max-width:100%;">
|
405 |
+
</video>
|
406 |
+
</td>
|
407 |
+
</tr>
|
408 |
+
<tr>
|
409 |
+
<td align="center">
|
410 |
+
<em>Video may be compressed by GitHub</em>
|
411 |
+
</td>
|
412 |
+
</tr>
|
413 |
+
</table>
|
414 |
+
|
415 |
+
---
|
416 |
+
|
417 |
+
<img src="https://github.com/user-attachments/assets/4f740c1a-2d2f-40a6-9613-d6fe64c428aa" width="150">
|
418 |
+
|
419 |
+
`The young man writes intensely, flipping papers and adjusting his glasses with swift, focused movements.`
|
420 |
+
|
421 |
+

|
422 |
+
|
423 |
+
<table>
|
424 |
+
<tr>
|
425 |
+
<td align="center" width="300">
|
426 |
+
<video
|
427 |
+
src="https://github.com/user-attachments/assets/62e9910e-aea6-4b2b-9333-2e727bccfc64"
|
428 |
+
controls
|
429 |
+
style="max-width:100%;">
|
430 |
+
</video>
|
431 |
+
</td>
|
432 |
+
</tr>
|
433 |
+
<tr>
|
434 |
+
<td align="center">
|
435 |
+
<em>Video may be compressed by GitHub</em>
|
436 |
+
</td>
|
437 |
+
</tr>
|
438 |
+
</table>
|
439 |
+
|
440 |
+
---
|
441 |
+
|
442 |
+
# Prompting Guideline
|
443 |
+
|
444 |
+
Many people would ask how to write better prompts.
|
445 |
+
|
446 |
+
Below is a ChatGPT template that I personally often use to get prompts:
|
447 |
+
|
448 |
+
You are an assistant that writes short, motion-focused prompts for animating images.
|
449 |
+
|
450 |
+
When the user sends an image, respond with a single, concise prompt describing visual motion (such as human activity, moving objects, or camera movements). Focus only on how the scene could come alive and become dynamic using brief phrases.
|
451 |
+
|
452 |
+
Larger and more dynamic motions (like dancing, jumping, running, etc.) are preferred over smaller or more subtle ones (like standing still, sitting, etc.).
|
453 |
+
|
454 |
+
Describe subject, then motion, then other things. For example: "The girl dances gracefully, with clear movements, full of charm."
|
455 |
+
|
456 |
+
If there is something that can dance (like a man, girl, robot, etc.), then prefer to describe it as dancing.
|
457 |
+
|
458 |
+
Stay in a loop: one image in, one motion prompt out. Do not explain, ask questions, or generate multiple options.
|
459 |
+
|
460 |
+
You paste the instruct to ChatGPT and then feed it an image to get prompt like this:
|
461 |
+
|
462 |
+

|
463 |
+
|
464 |
+
*The man dances powerfully, striking sharp poses and gliding smoothly across the reflective floor.*
|
465 |
+
|
466 |
+
Usually this will give you a prompt that works well.
|
467 |
+
|
468 |
+
You can also write prompts yourself. Concise prompts are usually preferred, for example:
|
469 |
+
|
470 |
+
*The girl dances gracefully, with clear movements, full of charm.*
|
471 |
+
|
472 |
+
*The man dances powerfully, with clear movements, full of energy.*
|
473 |
+
|
474 |
+
and so on.
|
475 |
+
|
476 |
+
# Cite
|
477 |
+
|
478 |
+
@article{zhang2025framepack,
|
479 |
+
title={Packing Input Frame Contexts in Next-Frame Prediction Models for Video Generation},
|
480 |
+
author={Lvmin Zhang and Maneesh Agrawala},
|
481 |
+
journal={Arxiv},
|
482 |
+
year={2025}
|
483 |
+
}
|
requirements.txt
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
accelerate==1.6.0
|
2 |
+
diffusers==0.33.1
|
3 |
+
transformers==4.46.2
|
4 |
+
gradio==5.23.0
|
5 |
+
sentencepiece==0.2.0
|
6 |
+
pillow==11.1.0
|
7 |
+
av==12.1.0
|
8 |
+
numpy==1.26.2
|
9 |
+
scipy==1.12.0
|
10 |
+
requests==2.31.0
|
11 |
+
torchsde==0.2.6
|
12 |
+
|
13 |
+
einops
|
14 |
+
opencv-contrib-python
|
15 |
+
safetensors
|