Albertchen96 commited on
Commit
24f66da
·
verified ·
1 Parent(s): 6f1ed3b

Add model card and license

Browse files
Files changed (2) hide show
  1. LICENSE +311 -0
  2. README.md +67 -0
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,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: picsart-flowdis-model-license
4
+ license_link: LICENSE
5
+ base_model: PAIR/FlowDIS
6
+ tags:
7
+ - image-segmentation
8
+ - dichotomous-image-segmentation
9
+ - quantization
10
+ - int8
11
+ - flux
12
+ ---
13
+
14
+ # FlowDIS transformer — INT8 ConvRot
15
+
16
+ INT8 quantization of the [FlowDIS](https://huggingface.co/PAIR/FlowDIS) DiT
17
+ (12B, FLUX.1-schnell architecture) with group-wise Hadamard rotations
18
+ ([ConvRot, arXiv:2512.03673](https://arxiv.org/abs/2512.03673)), in the
19
+ ComfyUI-native quantized checkpoint format produced by
20
+ [convert_to_quant](https://pypi.org/project/convert-to-quant/).
21
+
22
+ Made for [Any Prompt DIS](https://github.com/Albertchen98/any-prompt-dis), whose
23
+ low-VRAM mode (`--int8 --t5-int4`) runs the full segmentation pipeline in
24
+ **~21 GiB peak VRAM at 1024²** (~18.4 GiB at 512²) — it fits a 24 GB card, which the
25
+ bf16 pipeline (~35 GiB peak) does not. Quantizing this checkpoint yourself requires
26
+ loading the bf16 transformer, so a 24 GB card also cannot produce it locally —
27
+ hence this pre-quantized upload.
28
+
29
+ ## Details
30
+
31
+ - 228 `double_blocks`/`single_blocks` linear layers quantized to INT8
32
+ (row-wise scales, ConvRot group size 256, rotations pre-applied to weights);
33
+ input/modulation/final layers kept in bf16.
34
+ - End-to-end relative error vs bf16: ~1.2% on mask latents; visually
35
+ indistinguishable masks in our tests.
36
+ - Runtime: `flowdis/quant.py` in the repo above — uses the fused
37
+ `comfy-kitchen` INT8 kernel when available (quantized linears ~1.5× faster
38
+ than bf16), otherwise a `torch.compile` fallback.
39
+
40
+ Reproduce from the bf16 checkpoint:
41
+
42
+ ```bash
43
+ pip install convert-to-quant
44
+ ctq -i flowdis-transformer.safetensors \
45
+ -o flowdis-transformer-int8-convrot.safetensors \
46
+ --comfy_quant --int8 --convrot --convrot-group-size 256 \
47
+ --exclude-layers "img_in|txt_in|time_in|vector_in|mod|final_layer" \
48
+ --save-quant-metadata
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ```bash
54
+ # place it next to the other FlowDIS weights:
55
+ hf download Albertchen96/FlowDIS-int8-convrot flowdis-transformer-int8-convrot.safetensors \
56
+ --local-dir <root_model_dir>
57
+
58
+ # then, in the any-prompt-dis repo:
59
+ python inference_si.py --root-model-dir <root_model_dir> --int8 \
60
+ --image-path input.jpg --prompt "dog" --output-path mask.png
61
+ ```
62
+
63
+ ## License
64
+
65
+ Derivative of the FlowDIS weights by Picsart AI Research; distributed under the
66
+ same [PicsArt Inc. FlowDIS Model License](LICENSE) (non-commercial). Review it
67
+ before redistribution or commercial use.