Commit ·
37378fe
1
Parent(s): c7db06f
Upload folder using huggingface_hub
Browse files- APACHE-2.0-LICENSE +201 -0
- LICENSE +311 -0
- README.md +79 -0
- ae.safetensors +3 -0
- clip-vit-large-patch14/config.json +171 -0
- clip-vit-large-patch14/merges.txt +0 -0
- clip-vit-large-patch14/model.safetensors +3 -0
- clip-vit-large-patch14/preprocessor_config.json +19 -0
- clip-vit-large-patch14/special_tokens_map.json +1 -0
- clip-vit-large-patch14/tokenizer.json +0 -0
- clip-vit-large-patch14/tokenizer_config.json +34 -0
- clip-vit-large-patch14/vocab.json +0 -0
- config.json +1 -0
- flowdis-transformer.safetensors +3 -0
- t5-v1_1-xxl/config.json +25 -0
- t5-v1_1-xxl/model.safetensors +3 -0
- t5-v1_1-xxl/special_tokens_map.json +1 -0
- t5-v1_1-xxl/spiece.model +3 -0
- t5-v1_1-xxl/tokenizer_config.json +1 -0
APACHE-2.0-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.
|
LICENSE
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PicsArt Inc. FlowDIS Model License v1.0
|
| 2 |
+
Non-Commercial Use License
|
| 3 |
+
|
| 4 |
+
PicsArt Inc. ("PicsArt," "we," "our," or "Company") makes the weights,
|
| 5 |
+
parameters, and inference code for FlowDIS (as defined below)
|
| 6 |
+
available for your non-commercial and non-production use under the
|
| 7 |
+
terms of this License.
|
| 8 |
+
|
| 9 |
+
FlowDIS is a derivative of FLUX.1 [schnell] by Black Forest Labs,
|
| 10 |
+
Inc., which is licensed under the Apache License, Version 2.0. The
|
| 11 |
+
original FLUX.1 [schnell] model and its associated copyright, patent,
|
| 12 |
+
trademark, and attribution notices are included with this
|
| 13 |
+
distribution. A copy of the Apache License, Version 2.0 is provided
|
| 14 |
+
in the accompanying APACHE-2.0-LICENSE file. This model contains
|
| 15 |
+
modifications made by PicsArt Inc. to the original FLUX.1 [schnell]
|
| 16 |
+
model. By downloading, accessing, using, Distributing, or creating a
|
| 17 |
+
Derivative of FlowDIS, you agree to the terms of this License. If you
|
| 18 |
+
do not agree, you have no rights to access, use, Distribute, or
|
| 19 |
+
create a Derivative of FlowDIS and must immediately cease using it.
|
| 20 |
+
If you accept this License on behalf of your employer or another
|
| 21 |
+
entity, you represent and warrant that you have full legal authority
|
| 22 |
+
to bind that employer or entity.
|
| 23 |
+
|
| 24 |
+
1. Definitions
|
| 25 |
+
|
| 26 |
+
(a) "Derivative" means any (i) modified version of FlowDIS (including
|
| 27 |
+
any fine-tuned or distilled version), (ii) work based on FlowDIS,
|
| 28 |
+
or (iii) any other derivative work thereof. For clarity, Outputs
|
| 29 |
+
are not Derivatives.
|
| 30 |
+
|
| 31 |
+
(b) "Distribution" or "Distribute" means providing or making
|
| 32 |
+
available, by any means, a copy of FlowDIS and/or Derivatives.
|
| 33 |
+
|
| 34 |
+
(c) "Non-Commercial Purpose" means any of the following uses, but
|
| 35 |
+
only so far as you do not receive any direct or indirect payment
|
| 36 |
+
arising from the use of FlowDIS or Derivatives:
|
| 37 |
+
|
| 38 |
+
(i) personal use for research, experimentation, and testing for the
|
| 39 |
+
benefit of public knowledge, personal study, private
|
| 40 |
+
entertainment, hobby projects, or otherwise not directly or
|
| 41 |
+
indirectly connected to any commercial activities, business
|
| 42 |
+
operations, or employment responsibilities;
|
| 43 |
+
|
| 44 |
+
(ii) use by commercial or for-profit entities for testing,
|
| 45 |
+
evaluation, or non-commercial research and development in a
|
| 46 |
+
non-production environment; and
|
| 47 |
+
|
| 48 |
+
(iii) use by any charitable organization for charitable purposes,
|
| 49 |
+
or for testing or evaluation. For clarity, use (a) for
|
| 50 |
+
revenue-generating activity, (b) in direct interactions with
|
| 51 |
+
or that has impact on end users, or (c) to train, fine-tune,
|
| 52 |
+
or distill other models for commercial use, in each case, is
|
| 53 |
+
not a Non-Commercial Purpose.
|
| 54 |
+
|
| 55 |
+
(d) "Outputs" means any content generated by the operation of FlowDIS
|
| 56 |
+
or Derivatives from an input or prompt provided by users. Outputs
|
| 57 |
+
do not include any components of FlowDIS such as fine-tuned
|
| 58 |
+
versions, weights, or parameters.
|
| 59 |
+
|
| 60 |
+
(e) "you" or "your" means the individual or entity entering into this
|
| 61 |
+
License with Company.
|
| 62 |
+
|
| 63 |
+
2. License Grant
|
| 64 |
+
|
| 65 |
+
(a) License. Subject to your compliance with this License, Company
|
| 66 |
+
grants you a non-exclusive, worldwide, non-transferable,
|
| 67 |
+
non-sublicensable, revocable, royalty-free, and limited license
|
| 68 |
+
to access, use, create Derivatives of, and Distribute FlowDIS and
|
| 69 |
+
Derivatives solely for Non-Commercial Purposes. This license is
|
| 70 |
+
personal to you, and you may not assign or sublicense this
|
| 71 |
+
License or any rights or obligations under it without Company's
|
| 72 |
+
prior written consent; any such assignment or sublicense will be
|
| 73 |
+
void and will automatically and immediately terminate this
|
| 74 |
+
License. Any restrictions set forth herein regarding FlowDIS also
|
| 75 |
+
apply to any Derivative you create or that is created on your
|
| 76 |
+
behalf.
|
| 77 |
+
|
| 78 |
+
(b) Non-Commercial Use Only. You may only access, use, Distribute, or
|
| 79 |
+
create Derivatives of FlowDIS or Derivatives for Non-Commercial
|
| 80 |
+
Purposes. If you wish to use FlowDIS or a Derivative for any
|
| 81 |
+
purpose not expressly authorized under this License, you must
|
| 82 |
+
request a license from Company, which Company may grant in its
|
| 83 |
+
sole discretion and which may be subject to a fee, royalty, or
|
| 84 |
+
other revenue share.
|
| 85 |
+
|
| 86 |
+
(c) Reserved Rights. The grant of rights expressly set forth in this
|
| 87 |
+
License constitutes the complete grant of rights to use FlowDIS,
|
| 88 |
+
and no other licenses are granted, whether by waiver, estoppel,
|
| 89 |
+
implication, equity, or otherwise. Company and its licensors
|
| 90 |
+
reserve all rights not expressly granted by this License.
|
| 91 |
+
|
| 92 |
+
(d) Outputs. Company claims no ownership rights in Outputs. You are
|
| 93 |
+
solely responsible for the Outputs you generate and their
|
| 94 |
+
subsequent uses in accordance with this License. You may use
|
| 95 |
+
Outputs for any purpose (including commercial purposes), except
|
| 96 |
+
as expressly prohibited herein.
|
| 97 |
+
|
| 98 |
+
3. Distribution
|
| 99 |
+
|
| 100 |
+
Subject to this License, you may Distribute copies of FlowDIS and/or
|
| 101 |
+
Derivatives made by you under the following conditions:
|
| 102 |
+
(a) You must make available a copy of this License to third-party
|
| 103 |
+
recipients of FlowDIS and/or Derivatives you Distribute, and
|
| 104 |
+
specify that any rights to use FlowDIS and/or Derivatives shall
|
| 105 |
+
be granted directly by Company to said third-party recipients
|
| 106 |
+
pursuant to this License.
|
| 107 |
+
|
| 108 |
+
(b) You must prominently display the following notice alongside the
|
| 109 |
+
Distribution (such as via a "NOTICE" text file distributed as
|
| 110 |
+
part of FlowDIS or the Derivative) (the "Attribution Notice"):
|
| 111 |
+
This model is licensed by PicsArt Inc. under the PicsArt Inc.
|
| 112 |
+
FlowDIS Model License v1.0. Copyright 2026 PicsArt Inc. This
|
| 113 |
+
model is a derivative of FLUX.1 [schnell] by Black Forest Labs,
|
| 114 |
+
Inc., licensed under the Apache License, Version 2.0. IN NO EVENT
|
| 115 |
+
SHALL PICSART INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 116 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
| 117 |
+
ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
|
| 118 |
+
|
| 119 |
+
(c) In the case of Distribution of Derivatives made by you: (i) you
|
| 120 |
+
must include in the Attribution Notice a statement that you have
|
| 121 |
+
modified FlowDIS; (ii) any terms and conditions you impose on
|
| 122 |
+
third-party recipients relating to your Derivatives shall neither
|
| 123 |
+
limit such recipients' use of FlowDIS or any Derivatives made by
|
| 124 |
+
Company in accordance with this License, nor conflict with any of
|
| 125 |
+
its terms and conditions, and must include disclaimer of
|
| 126 |
+
warranties and limitation of liability provisions at least as
|
| 127 |
+
protective of Company as those set forth herein; and (iii) you
|
| 128 |
+
must not misrepresent or imply that Derivatives made by or for
|
| 129 |
+
you are an official product of PicsArt Inc. or have been
|
| 130 |
+
endorsed, approved, or validated by PicsArt Inc., unless
|
| 131 |
+
authorized by Company in writing.
|
| 132 |
+
|
| 133 |
+
(d) Apache 2.0 Compliance. All Distributions must include: (i) a copy
|
| 134 |
+
of the Apache License, Version 2.0; (ii) all copyright, patent,
|
| 135 |
+
trademark, and attribution notices from the original FLUX.1
|
| 136 |
+
[schnell] model; and (iii) prominent notices stating that the
|
| 137 |
+
files have been modified from the original FLUX.1 [schnell]
|
| 138 |
+
model.
|
| 139 |
+
|
| 140 |
+
4. Restrictions
|
| 141 |
+
|
| 142 |
+
You will not, and will not permit, assist, or cause any third party
|
| 143 |
+
to:
|
| 144 |
+
(a) use, modify, copy, reproduce, create Derivatives of, or
|
| 145 |
+
Distribute FlowDIS (or any Derivative or data produced by
|
| 146 |
+
FlowDIS), in whole or in part, for:
|
| 147 |
+
|
| 148 |
+
(i) any commercial or production purpose;
|
| 149 |
+
|
| 150 |
+
(ii) any military purpose, including research, development,
|
| 151 |
+
design, manufacture, production, or use of weapons, weapons
|
| 152 |
+
systems, munitions, or any military or defense applications;
|
| 153 |
+
|
| 154 |
+
(iii) purposes of surveillance, including any research or
|
| 155 |
+
development relating to surveillance;
|
| 156 |
+
|
| 157 |
+
(iv) biometric processing;
|
| 158 |
+
|
| 159 |
+
(v) any manner that infringes, misappropriates, or otherwise violates
|
| 160 |
+
any third party's legal rights, including rights of publicity or
|
| 161 |
+
digital replica rights;
|
| 162 |
+
|
| 163 |
+
(vi) any unlawful, fraudulent, defamatory, or abusive activity;
|
| 164 |
+
|
| 165 |
+
(vii) generating unlawful content, including child sexual abuse
|
| 166 |
+
material or non-consensual intimate images; or
|
| 167 |
+
|
| 168 |
+
(viii) any manner that violates any applicable law, privacy or
|
| 169 |
+
security laws, rules, regulations, directives, or
|
| 170 |
+
governmental requirements (including the GDPR, the California
|
| 171 |
+
Consumer Privacy Act, laws governing the processing of
|
| 172 |
+
biometric information, and the EU AI Act, as well as all
|
| 173 |
+
amendments and successor laws to any of the foregoing);
|
| 174 |
+
|
| 175 |
+
(b) alter or remove copyright and other proprietary notices which
|
| 176 |
+
appear on or in any portion of FlowDIS;
|
| 177 |
+
|
| 178 |
+
(c) utilize any equipment, device, software, or other means to
|
| 179 |
+
circumvent or remove any security or protection used by Company
|
| 180 |
+
in connection with FlowDIS, or to circumvent or remove any usage
|
| 181 |
+
restrictions, or to enable functionality disabled by Company;
|
| 182 |
+
|
| 183 |
+
(d) offer or impose any terms on FlowDIS that alter, restrict, or are
|
| 184 |
+
inconsistent with the terms of this License;
|
| 185 |
+
|
| 186 |
+
(e) violate any applicable U.S. and non-U.S. export control and trade
|
| 187 |
+
sanctions laws ("Export Laws") in connection with your use or
|
| 188 |
+
Distribution of FlowDIS; or
|
| 189 |
+
|
| 190 |
+
(f) directly or indirectly Distribute, export, or otherwise transfer
|
| 191 |
+
FlowDIS (i) to any individual, entity, or country prohibited by
|
| 192 |
+
Export Laws; (ii) to anyone on U.S. or non-U.S. government
|
| 193 |
+
restricted parties lists; (iii) for any purpose prohibited by
|
| 194 |
+
Export Laws, including nuclear, chemical or biological weapons,
|
| 195 |
+
or missile technology applications; (iv) if you or they are
|
| 196 |
+
located in a comprehensively sanctioned jurisdiction, currently
|
| 197 |
+
listed on any U.S. or non-U.S. restricted parties list, or for
|
| 198 |
+
any purpose prohibited by Export Laws; or (v) while disguising
|
| 199 |
+
your location through IP proxying or other methods.
|
| 200 |
+
|
| 201 |
+
5. Disclaimers
|
| 202 |
+
|
| 203 |
+
THE MODEL IS PROVIDED "AS IS" AND "WITH ALL FAULTS" WITH NO WARRANTY
|
| 204 |
+
OF ANY KIND, EXPRESS OR IMPLIED. COMPANY EXPRESSLY DISCLAIMS ALL
|
| 205 |
+
REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY
|
| 206 |
+
STATUTE, CUSTOM, USAGE OR OTHERWISE, INCLUDING BUT NOT LIMITED TO THE
|
| 207 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 208 |
+
PURPOSE, TITLE, SATISFACTORY QUALITY, OR NON-INFRINGEMENT. COMPANY
|
| 209 |
+
MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE MODEL WILL BE ERROR
|
| 210 |
+
FREE OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR PRODUCE ANY
|
| 211 |
+
PARTICULAR RESULTS.
|
| 212 |
+
|
| 213 |
+
6. Limitation of Liability
|
| 214 |
+
|
| 215 |
+
TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL COMPANY BE
|
| 216 |
+
LIABLE TO YOU OR YOUR EMPLOYEES, AFFILIATES, USERS, OFFICERS, OR
|
| 217 |
+
DIRECTORS (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN
|
| 218 |
+
CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE
|
| 219 |
+
UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL,
|
| 220 |
+
EXEMPLARY, INCIDENTAL, PUNITIVE, OR SPECIAL DAMAGES OR LOST PROFITS,
|
| 221 |
+
EVEN IF COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
| 222 |
+
THE MODEL, ITS CONSTITUENT COMPONENTS, AND ANY OUTPUT (COLLECTIVELY,
|
| 223 |
+
"MODEL MATERIALS") ARE NOT DESIGNED OR INTENDED FOR USE IN ANY
|
| 224 |
+
APPLICATION OR SITUATION WHERE FAILURE OR FAULT COULD REASONABLY BE
|
| 225 |
+
ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON, INCLUDING
|
| 226 |
+
POTENTIAL DISCRIMINATION OR VIOLATION OF AN INDIVIDUAL'S PRIVACY
|
| 227 |
+
RIGHTS, OR TO SEVERE PHYSICAL, PROPERTY, OR ENVIRONMENTAL DAMAGE
|
| 228 |
+
(EACH, A "HIGH-RISK USE"). IF YOU ELECT TO USE ANY MODEL MATERIALS
|
| 229 |
+
FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN
|
| 230 |
+
AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION
|
| 231 |
+
PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE.
|
| 232 |
+
|
| 233 |
+
7. Indemnification
|
| 234 |
+
|
| 235 |
+
You will indemnify, defend, and hold harmless Company and its
|
| 236 |
+
subsidiaries and affiliates, and each of their respective
|
| 237 |
+
shareholders, directors, officers, employees, agents, successors, and
|
| 238 |
+
assigns (collectively, the "Company Parties") from and against any
|
| 239 |
+
losses, liabilities, damages, fines, penalties, and expenses
|
| 240 |
+
(including reasonable attorneys' fees) incurred by any Company Party
|
| 241 |
+
in connection with any claim, demand, allegation, lawsuit,
|
| 242 |
+
proceeding, or investigation ("Claims") arising out of or related to:
|
| 243 |
+
(a) your access to or use of FlowDIS (including any Output or data
|
| 244 |
+
generated from such use), including any High-Risk Use; (b) your
|
| 245 |
+
violation of this License; or (c) your violation, misappropriation,
|
| 246 |
+
or infringement of any rights of another (including intellectual
|
| 247 |
+
property or other proprietary rights and privacy rights). You will
|
| 248 |
+
promptly notify the Company Parties of any such Claims and cooperate
|
| 249 |
+
with Company Parties in defending such Claims. You will also grant
|
| 250 |
+
the Company Parties sole control of the defense or settlement, at
|
| 251 |
+
Company's sole option, of any Claims. This indemnity is in addition
|
| 252 |
+
to, and not in lieu of, any other indemnities or remedies set forth
|
| 253 |
+
in a written agreement between you and Company or the other Company
|
| 254 |
+
Parties.
|
| 255 |
+
|
| 256 |
+
8. Termination; Survival
|
| 257 |
+
|
| 258 |
+
(a) This License will automatically terminate upon any breach by you
|
| 259 |
+
of the terms of this License.
|
| 260 |
+
|
| 261 |
+
(b) Company may terminate this License, in whole or in part, at any
|
| 262 |
+
time upon notice (including electronic) to you.
|
| 263 |
+
|
| 264 |
+
(c) If you initiate any legal action or proceedings against Company
|
| 265 |
+
or any other entity (including a cross-claim or counterclaim),
|
| 266 |
+
alleging that FlowDIS, any Derivative, or any part thereof,
|
| 267 |
+
infringes upon intellectual property or other rights owned or
|
| 268 |
+
licensable by you, then any licenses granted to you under this
|
| 269 |
+
License will immediately terminate as of the date such legal
|
| 270 |
+
action or claim is filed.
|
| 271 |
+
|
| 272 |
+
(d) Upon termination, you must cease all use, access, or Distribution
|
| 273 |
+
of FlowDIS and any Derivatives. Sections 2(c), 2(d), 4 through 11
|
| 274 |
+
survive termination.
|
| 275 |
+
|
| 276 |
+
9. Third-Party Materials
|
| 277 |
+
|
| 278 |
+
FlowDIS is derived from FLUX.1 [schnell] by Black Forest Labs, Inc.,
|
| 279 |
+
and may contain additional third-party software or components
|
| 280 |
+
(including free and open-source software) ("Third-Party Materials"),
|
| 281 |
+
which are subject to the license terms of the respective third-party
|
| 282 |
+
licensors. Your dealings or correspondence with third parties and
|
| 283 |
+
your use of or interaction with any Third-Party Materials are solely
|
| 284 |
+
between you and the third party. Company does not control or endorse,
|
| 285 |
+
and makes no representations or warranties regarding, any Third-Party
|
| 286 |
+
Materials, and your access to and use of such Third-Party Materials
|
| 287 |
+
are at your own risk.
|
| 288 |
+
|
| 289 |
+
10. Trademarks
|
| 290 |
+
|
| 291 |
+
No trademark license is granted as part of this License. You may not
|
| 292 |
+
use any name, logo, or trademark associated with PicsArt Inc. without
|
| 293 |
+
Company's prior written permission, except to the extent necessary to
|
| 294 |
+
make the reference required in the Attribution Notice or as is
|
| 295 |
+
reasonably necessary in describing FlowDIS and its creators.
|
| 296 |
+
|
| 297 |
+
11. General
|
| 298 |
+
|
| 299 |
+
This License will be governed and construed under the laws of the
|
| 300 |
+
State of Delaware without regard to conflicts of law provisions. If
|
| 301 |
+
any provision or part of a provision of this License is unlawful,
|
| 302 |
+
void, or unenforceable, that provision or part is deemed severed from
|
| 303 |
+
this License and will not affect the validity and enforceability of
|
| 304 |
+
any remaining provisions. The failure of Company to exercise or
|
| 305 |
+
enforce any right or provision of this License will not operate as a
|
| 306 |
+
waiver of such right or provision. This License does not confer any
|
| 307 |
+
third-party beneficiary rights upon any other person or entity. This
|
| 308 |
+
License, together with any accompanying documentation, contains the
|
| 309 |
+
entire understanding between you and Company regarding its subject
|
| 310 |
+
matter and supersedes all other written or oral agreements and
|
| 311 |
+
understandings between you and Company regarding such subject matter.
|
README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: picsart-inc-flowdis-model-1.0
|
| 4 |
+
license_link: https://huggingface.co/PAIR/FlowDIS/raw/main/LICENSE
|
| 5 |
+
tags:
|
| 6 |
+
- remove background
|
| 7 |
+
- background removal
|
| 8 |
+
- dichotomous image segmentation
|
| 9 |
+
- flow matching
|
| 10 |
+
datasets:
|
| 11 |
+
- DIS5K
|
| 12 |
+
pipeline_tag: image-segmentation
|
| 13 |
+
library_name: flowdis
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# FlowDIS
|
| 17 |
+
|
| 18 |
+
<p align="center">
|
| 19 |
+
<picture>
|
| 20 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://flowdis.github.io/static/videos/teaser-dark.avif">
|
| 21 |
+
<source media="(prefers-color-scheme: light)" srcset="https://flowdis.github.io/static/videos/teaser-light.avif">
|
| 22 |
+
<img src="https://flowdis.github.io/static/videos/teaser-light.avif" alt="FlowDIS teaser" width="100%">
|
| 23 |
+
</picture>
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
+
FlowDIS enables highly accurate foreground segmentation, optionally guided by a text prompt. When ambiguity prevents the model from producing the desired result, the user can specify which elements to retain in the foreground.
|
| 27 |
+
|
| 28 |
+
## Usage
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
pip install "git+ssh://git@github.com/Picsart-AI-Research/FlowDIS.git"
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from PIL import Image
|
| 37 |
+
from flowdis import flowdis_predict, load_models
|
| 38 |
+
|
| 39 |
+
models = load_models(device="cuda")
|
| 40 |
+
|
| 41 |
+
input_img_path = "path/to/input.jpg" # Input image path
|
| 42 |
+
output_mask_path = "path/to/output.png" # Path to save the output mask
|
| 43 |
+
|
| 44 |
+
image = Image.open(input_img_path).convert("RGB")
|
| 45 |
+
|
| 46 |
+
mask = flowdis_predict(
|
| 47 |
+
image=image,
|
| 48 |
+
prompt="", # Text prompt
|
| 49 |
+
models=models,
|
| 50 |
+
resolution=1024,
|
| 51 |
+
num_inference_steps=2,
|
| 52 |
+
device="cuda",
|
| 53 |
+
)
|
| 54 |
+
mask.save(output_mask_path)
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## License
|
| 58 |
+
|
| 59 |
+
This model is licensed under the [PicsArt Inc. FlowDIS Model License](https://huggingface.co/PAIR/FlowDIS/raw/main/LICENSE).
|
| 60 |
+
|
| 61 |
+
## Acknowledgements
|
| 62 |
+
|
| 63 |
+
This project is built on top of [FLUX.1 [schnell]](https://github.com/black-forest-labs/flux) and [DIS5K](https://github.com/xuebinqin/DIS).
|
| 64 |
+
|
| 65 |
+
## BibTeX
|
| 66 |
+
|
| 67 |
+
If you use our work in your research, please cite our publication:
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
@article{sargsyan2026flowdis,
|
| 71 |
+
title={{FlowDIS: Language-Guided Dichotomous Image Segmentation with Flow Matching}},
|
| 72 |
+
author={Sargsyan, Andranik and Navasardyan, Shant},
|
| 73 |
+
journal={arXiv preprint arXiv:2605.05077},
|
| 74 |
+
year={2026},
|
| 75 |
+
eprint={2605.05077},
|
| 76 |
+
archivePrefix={arXiv},
|
| 77 |
+
url={https://arxiv.org/abs/2605.05077}
|
| 78 |
+
}
|
| 79 |
+
```
|
ae.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afc8e28272cd15db3919bacdb6918ce9c1ed22e96cb12c4d5ed0fba823529e38
|
| 3 |
+
size 335304388
|
clip-vit-large-patch14/config.json
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "clip-vit-large-patch14/",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CLIPModel"
|
| 5 |
+
],
|
| 6 |
+
"initializer_factor": 1.0,
|
| 7 |
+
"logit_scale_init_value": 2.6592,
|
| 8 |
+
"model_type": "clip",
|
| 9 |
+
"projection_dim": 768,
|
| 10 |
+
"text_config": {
|
| 11 |
+
"_name_or_path": "",
|
| 12 |
+
"add_cross_attention": false,
|
| 13 |
+
"architectures": null,
|
| 14 |
+
"attention_dropout": 0.0,
|
| 15 |
+
"bad_words_ids": null,
|
| 16 |
+
"bos_token_id": 0,
|
| 17 |
+
"chunk_size_feed_forward": 0,
|
| 18 |
+
"cross_attention_hidden_size": null,
|
| 19 |
+
"decoder_start_token_id": null,
|
| 20 |
+
"diversity_penalty": 0.0,
|
| 21 |
+
"do_sample": false,
|
| 22 |
+
"dropout": 0.0,
|
| 23 |
+
"early_stopping": false,
|
| 24 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 25 |
+
"eos_token_id": 2,
|
| 26 |
+
"finetuning_task": null,
|
| 27 |
+
"forced_bos_token_id": null,
|
| 28 |
+
"forced_eos_token_id": null,
|
| 29 |
+
"hidden_act": "quick_gelu",
|
| 30 |
+
"hidden_size": 768,
|
| 31 |
+
"id2label": {
|
| 32 |
+
"0": "LABEL_0",
|
| 33 |
+
"1": "LABEL_1"
|
| 34 |
+
},
|
| 35 |
+
"initializer_factor": 1.0,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"intermediate_size": 3072,
|
| 38 |
+
"is_decoder": false,
|
| 39 |
+
"is_encoder_decoder": false,
|
| 40 |
+
"label2id": {
|
| 41 |
+
"LABEL_0": 0,
|
| 42 |
+
"LABEL_1": 1
|
| 43 |
+
},
|
| 44 |
+
"layer_norm_eps": 1e-05,
|
| 45 |
+
"length_penalty": 1.0,
|
| 46 |
+
"max_length": 20,
|
| 47 |
+
"max_position_embeddings": 77,
|
| 48 |
+
"min_length": 0,
|
| 49 |
+
"model_type": "clip_text_model",
|
| 50 |
+
"no_repeat_ngram_size": 0,
|
| 51 |
+
"num_attention_heads": 12,
|
| 52 |
+
"num_beam_groups": 1,
|
| 53 |
+
"num_beams": 1,
|
| 54 |
+
"num_hidden_layers": 12,
|
| 55 |
+
"num_return_sequences": 1,
|
| 56 |
+
"output_attentions": false,
|
| 57 |
+
"output_hidden_states": false,
|
| 58 |
+
"output_scores": false,
|
| 59 |
+
"pad_token_id": 1,
|
| 60 |
+
"prefix": null,
|
| 61 |
+
"problem_type": null,
|
| 62 |
+
"projection_dim" : 768,
|
| 63 |
+
"pruned_heads": {},
|
| 64 |
+
"remove_invalid_values": false,
|
| 65 |
+
"repetition_penalty": 1.0,
|
| 66 |
+
"return_dict": true,
|
| 67 |
+
"return_dict_in_generate": false,
|
| 68 |
+
"sep_token_id": null,
|
| 69 |
+
"task_specific_params": null,
|
| 70 |
+
"temperature": 1.0,
|
| 71 |
+
"tie_encoder_decoder": false,
|
| 72 |
+
"tie_word_embeddings": true,
|
| 73 |
+
"tokenizer_class": null,
|
| 74 |
+
"top_k": 50,
|
| 75 |
+
"top_p": 1.0,
|
| 76 |
+
"torch_dtype": null,
|
| 77 |
+
"torchscript": false,
|
| 78 |
+
"transformers_version": "4.16.0.dev0",
|
| 79 |
+
"use_bfloat16": false,
|
| 80 |
+
"vocab_size": 49408
|
| 81 |
+
},
|
| 82 |
+
"text_config_dict": {
|
| 83 |
+
"hidden_size": 768,
|
| 84 |
+
"intermediate_size": 3072,
|
| 85 |
+
"num_attention_heads": 12,
|
| 86 |
+
"num_hidden_layers": 12,
|
| 87 |
+
"projection_dim": 768
|
| 88 |
+
},
|
| 89 |
+
"torch_dtype": "float32",
|
| 90 |
+
"transformers_version": null,
|
| 91 |
+
"vision_config": {
|
| 92 |
+
"_name_or_path": "",
|
| 93 |
+
"add_cross_attention": false,
|
| 94 |
+
"architectures": null,
|
| 95 |
+
"attention_dropout": 0.0,
|
| 96 |
+
"bad_words_ids": null,
|
| 97 |
+
"bos_token_id": null,
|
| 98 |
+
"chunk_size_feed_forward": 0,
|
| 99 |
+
"cross_attention_hidden_size": null,
|
| 100 |
+
"decoder_start_token_id": null,
|
| 101 |
+
"diversity_penalty": 0.0,
|
| 102 |
+
"do_sample": false,
|
| 103 |
+
"dropout": 0.0,
|
| 104 |
+
"early_stopping": false,
|
| 105 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 106 |
+
"eos_token_id": null,
|
| 107 |
+
"finetuning_task": null,
|
| 108 |
+
"forced_bos_token_id": null,
|
| 109 |
+
"forced_eos_token_id": null,
|
| 110 |
+
"hidden_act": "quick_gelu",
|
| 111 |
+
"hidden_size": 1024,
|
| 112 |
+
"id2label": {
|
| 113 |
+
"0": "LABEL_0",
|
| 114 |
+
"1": "LABEL_1"
|
| 115 |
+
},
|
| 116 |
+
"image_size": 224,
|
| 117 |
+
"initializer_factor": 1.0,
|
| 118 |
+
"initializer_range": 0.02,
|
| 119 |
+
"intermediate_size": 4096,
|
| 120 |
+
"is_decoder": false,
|
| 121 |
+
"is_encoder_decoder": false,
|
| 122 |
+
"label2id": {
|
| 123 |
+
"LABEL_0": 0,
|
| 124 |
+
"LABEL_1": 1
|
| 125 |
+
},
|
| 126 |
+
"layer_norm_eps": 1e-05,
|
| 127 |
+
"length_penalty": 1.0,
|
| 128 |
+
"max_length": 20,
|
| 129 |
+
"min_length": 0,
|
| 130 |
+
"model_type": "clip_vision_model",
|
| 131 |
+
"no_repeat_ngram_size": 0,
|
| 132 |
+
"num_attention_heads": 16,
|
| 133 |
+
"num_beam_groups": 1,
|
| 134 |
+
"num_beams": 1,
|
| 135 |
+
"num_hidden_layers": 24,
|
| 136 |
+
"num_return_sequences": 1,
|
| 137 |
+
"output_attentions": false,
|
| 138 |
+
"output_hidden_states": false,
|
| 139 |
+
"output_scores": false,
|
| 140 |
+
"pad_token_id": null,
|
| 141 |
+
"patch_size": 14,
|
| 142 |
+
"prefix": null,
|
| 143 |
+
"problem_type": null,
|
| 144 |
+
"projection_dim" : 768,
|
| 145 |
+
"pruned_heads": {},
|
| 146 |
+
"remove_invalid_values": false,
|
| 147 |
+
"repetition_penalty": 1.0,
|
| 148 |
+
"return_dict": true,
|
| 149 |
+
"return_dict_in_generate": false,
|
| 150 |
+
"sep_token_id": null,
|
| 151 |
+
"task_specific_params": null,
|
| 152 |
+
"temperature": 1.0,
|
| 153 |
+
"tie_encoder_decoder": false,
|
| 154 |
+
"tie_word_embeddings": true,
|
| 155 |
+
"tokenizer_class": null,
|
| 156 |
+
"top_k": 50,
|
| 157 |
+
"top_p": 1.0,
|
| 158 |
+
"torch_dtype": null,
|
| 159 |
+
"torchscript": false,
|
| 160 |
+
"transformers_version": "4.16.0.dev0",
|
| 161 |
+
"use_bfloat16": false
|
| 162 |
+
},
|
| 163 |
+
"vision_config_dict": {
|
| 164 |
+
"hidden_size": 1024,
|
| 165 |
+
"intermediate_size": 4096,
|
| 166 |
+
"num_attention_heads": 16,
|
| 167 |
+
"num_hidden_layers": 24,
|
| 168 |
+
"patch_size": 14,
|
| 169 |
+
"projection_dim": 768
|
| 170 |
+
}
|
| 171 |
+
}
|
clip-vit-large-patch14/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
clip-vit-large-patch14/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11f19da60505a025b2aa24cef6c4821e96bad6e62201fb9f11c018e710acd7cd
|
| 3 |
+
size 246146280
|
clip-vit-large-patch14/preprocessor_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": 224,
|
| 3 |
+
"do_center_crop": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"feature_extractor_type": "CLIPFeatureExtractor",
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.48145466,
|
| 9 |
+
0.4578275,
|
| 10 |
+
0.40821073
|
| 11 |
+
],
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.26862954,
|
| 14 |
+
0.26130258,
|
| 15 |
+
0.27577711
|
| 16 |
+
],
|
| 17 |
+
"resample": 3,
|
| 18 |
+
"size": 224
|
| 19 |
+
}
|
clip-vit-large-patch14/special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"bos_token": {"content": "<|startoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": "<|endoftext|>"}
|
clip-vit-large-patch14/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
clip-vit-large-patch14/tokenizer_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"unk_token": {
|
| 3 |
+
"content": "<|endoftext|>",
|
| 4 |
+
"single_word": false,
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"__type": "AddedToken"
|
| 9 |
+
},
|
| 10 |
+
"bos_token": {
|
| 11 |
+
"content": "<|startoftext|>",
|
| 12 |
+
"single_word": false,
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"rstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"__type": "AddedToken"
|
| 17 |
+
},
|
| 18 |
+
"eos_token": {
|
| 19 |
+
"content": "<|endoftext|>",
|
| 20 |
+
"single_word": false,
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"rstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"__type": "AddedToken"
|
| 25 |
+
},
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"add_prefix_space": false,
|
| 28 |
+
"errors": "replace",
|
| 29 |
+
"do_lower_case": true,
|
| 30 |
+
"name_or_path": "openai/clip-vit-base-patch32",
|
| 31 |
+
"model_max_length": 77,
|
| 32 |
+
"special_tokens_map_file": "./special_tokens_map.json",
|
| 33 |
+
"tokenizer_class": "CLIPTokenizer"
|
| 34 |
+
}
|
clip-vit-large-patch14/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{}
|
flowdis-transformer.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:829e1adbd2ce122250bf5d2d2cd1357887b5c61e0aa4bf0f8d6932624cdf3567
|
| 3 |
+
size 23782836760
|
t5-v1_1-xxl/config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/home/patrick/t5/t5-v1_1-xxl",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"T5ForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"d_ff": 10240,
|
| 7 |
+
"d_kv": 64,
|
| 8 |
+
"d_model": 4096,
|
| 9 |
+
"decoder_start_token_id": 0,
|
| 10 |
+
"dropout_rate": 0.1,
|
| 11 |
+
"eos_token_id": 1,
|
| 12 |
+
"feed_forward_proj": "gated-gelu",
|
| 13 |
+
"initializer_factor": 1.0,
|
| 14 |
+
"is_encoder_decoder": true,
|
| 15 |
+
"layer_norm_epsilon": 1e-06,
|
| 16 |
+
"model_type": "t5",
|
| 17 |
+
"num_decoder_layers": 24,
|
| 18 |
+
"num_heads": 64,
|
| 19 |
+
"num_layers": 24,
|
| 20 |
+
"output_past": true,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"relative_attention_num_buckets": 32,
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"vocab_size": 32128
|
| 25 |
+
}
|
t5-v1_1-xxl/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddb494dd69feb64e81a34e5782eb9218b455acdfdfcf0910525057f5912bfc8a
|
| 3 |
+
size 9524650848
|
t5-v1_1-xxl/special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "additional_special_tokens": ["<extra_id_0>", "<extra_id_1>", "<extra_id_2>", "<extra_id_3>", "<extra_id_4>", "<extra_id_5>", "<extra_id_6>", "<extra_id_7>", "<extra_id_8>", "<extra_id_9>", "<extra_id_10>", "<extra_id_11>", "<extra_id_12>", "<extra_id_13>", "<extra_id_14>", "<extra_id_15>", "<extra_id_16>", "<extra_id_17>", "<extra_id_18>", "<extra_id_19>", "<extra_id_20>", "<extra_id_21>", "<extra_id_22>", "<extra_id_23>", "<extra_id_24>", "<extra_id_25>", "<extra_id_26>", "<extra_id_27>", "<extra_id_28>", "<extra_id_29>", "<extra_id_30>", "<extra_id_31>", "<extra_id_32>", "<extra_id_33>", "<extra_id_34>", "<extra_id_35>", "<extra_id_36>", "<extra_id_37>", "<extra_id_38>", "<extra_id_39>", "<extra_id_40>", "<extra_id_41>", "<extra_id_42>", "<extra_id_43>", "<extra_id_44>", "<extra_id_45>", "<extra_id_46>", "<extra_id_47>", "<extra_id_48>", "<extra_id_49>", "<extra_id_50>", "<extra_id_51>", "<extra_id_52>", "<extra_id_53>", "<extra_id_54>", "<extra_id_55>", "<extra_id_56>", "<extra_id_57>", "<extra_id_58>", "<extra_id_59>", "<extra_id_60>", "<extra_id_61>", "<extra_id_62>", "<extra_id_63>", "<extra_id_64>", "<extra_id_65>", "<extra_id_66>", "<extra_id_67>", "<extra_id_68>", "<extra_id_69>", "<extra_id_70>", "<extra_id_71>", "<extra_id_72>", "<extra_id_73>", "<extra_id_74>", "<extra_id_75>", "<extra_id_76>", "<extra_id_77>", "<extra_id_78>", "<extra_id_79>", "<extra_id_80>", "<extra_id_81>", "<extra_id_82>", "<extra_id_83>", "<extra_id_84>", "<extra_id_85>", "<extra_id_86>", "<extra_id_87>", "<extra_id_88>", "<extra_id_89>", "<extra_id_90>", "<extra_id_91>", "<extra_id_92>", "<extra_id_93>", "<extra_id_94>", "<extra_id_95>", "<extra_id_96>", "<extra_id_97>", "<extra_id_98>", "<extra_id_99>"]}
|
t5-v1_1-xxl/spiece.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
|
| 3 |
+
size 791656
|
t5-v1_1-xxl/tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "extra_ids": 100, "additional_special_tokens": ["<extra_id_0>", "<extra_id_1>", "<extra_id_2>", "<extra_id_3>", "<extra_id_4>", "<extra_id_5>", "<extra_id_6>", "<extra_id_7>", "<extra_id_8>", "<extra_id_9>", "<extra_id_10>", "<extra_id_11>", "<extra_id_12>", "<extra_id_13>", "<extra_id_14>", "<extra_id_15>", "<extra_id_16>", "<extra_id_17>", "<extra_id_18>", "<extra_id_19>", "<extra_id_20>", "<extra_id_21>", "<extra_id_22>", "<extra_id_23>", "<extra_id_24>", "<extra_id_25>", "<extra_id_26>", "<extra_id_27>", "<extra_id_28>", "<extra_id_29>", "<extra_id_30>", "<extra_id_31>", "<extra_id_32>", "<extra_id_33>", "<extra_id_34>", "<extra_id_35>", "<extra_id_36>", "<extra_id_37>", "<extra_id_38>", "<extra_id_39>", "<extra_id_40>", "<extra_id_41>", "<extra_id_42>", "<extra_id_43>", "<extra_id_44>", "<extra_id_45>", "<extra_id_46>", "<extra_id_47>", "<extra_id_48>", "<extra_id_49>", "<extra_id_50>", "<extra_id_51>", "<extra_id_52>", "<extra_id_53>", "<extra_id_54>", "<extra_id_55>", "<extra_id_56>", "<extra_id_57>", "<extra_id_58>", "<extra_id_59>", "<extra_id_60>", "<extra_id_61>", "<extra_id_62>", "<extra_id_63>", "<extra_id_64>", "<extra_id_65>", "<extra_id_66>", "<extra_id_67>", "<extra_id_68>", "<extra_id_69>", "<extra_id_70>", "<extra_id_71>", "<extra_id_72>", "<extra_id_73>", "<extra_id_74>", "<extra_id_75>", "<extra_id_76>", "<extra_id_77>", "<extra_id_78>", "<extra_id_79>", "<extra_id_80>", "<extra_id_81>", "<extra_id_82>", "<extra_id_83>", "<extra_id_84>", "<extra_id_85>", "<extra_id_86>", "<extra_id_87>", "<extra_id_88>", "<extra_id_89>", "<extra_id_90>", "<extra_id_91>", "<extra_id_92>", "<extra_id_93>", "<extra_id_94>", "<extra_id_95>", "<extra_id_96>", "<extra_id_97>", "<extra_id_98>", "<extra_id_99>"], "model_max_length": 512, "name_or_path": "t5-small"}
|