thuzhaowang commited on
Commit
94a6f7a
1 Parent(s): 6319ac4
Files changed (2) hide show
  1. License.txt +519 -0
  2. app.py +1 -1
License.txt ADDED
@@ -0,0 +1,519 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved. The below software and/or models in this distribution may have been modified by THL A29 Limited ("Tencent Modifications"). All Tencent Modifications are Copyright (C) THL A29 Limited.
2
+
3
+ DI-PCG is licensed under the License Terms of the DI-PCG except for the third-party components listed below, which is licensed under different terms. DI-PCG does not impose any additional limitations beyond what is outlined in the respective licenses of these third-party components. Users must comply with all terms and conditions of original licenses of these third-party components and must ensure that the usage of the third party components adheres to all relevant laws and regulations.
4
+
5
+
6
+ License Terms of the DI-PCG:
7
+ ------------------------------------------------------------------
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this Software and associated documentation files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ - You agree to use the DI-PCG only for academic, research and education purposes, and refrain from using it for any commercial or production purposes under any circumstances.
11
+
12
+ - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ For avoidance of doubts, “Software” means the DI-PCG model inference code, training code, parameters and weights made available under this license.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+
18
+
19
+
20
+ Other dependencies and licenses:
21
+
22
+ Open Source Software Licensed under the Apache Licence Version 2.0:
23
+ The DI-PCG is built on and with the aid of the outputs of the model listed below.
24
+
25
+ All Tencent Modifications are Copyright (C) 2024 THL A29 Limited.
26
+ --------------------------------------------------------------------
27
+ 1. dinov2
28
+ Copyright (c) Meta Platforms, Inc. and affiliates.
29
+
30
+
31
+ Terms of the Apache License Version 2.0:
32
+ --------------------------------------------------------------------
33
+ Apache License
34
+
35
+ Version 2.0, January 2004
36
+
37
+ http://www.apache.org/licenses/
38
+
39
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
40
+ 1. Definitions.
41
+
42
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
43
+
44
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
45
+
46
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
47
+
48
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
49
+
50
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
51
+
52
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
53
+
54
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
55
+
56
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
57
+
58
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
59
+
60
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
63
+
64
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
65
+
66
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
67
+
68
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
69
+
70
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
71
+
72
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
73
+
74
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
75
+
76
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
77
+
78
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
79
+
80
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
81
+
82
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
83
+
84
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
85
+
86
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
87
+
88
+ END OF TERMS AND CONDITIONS
89
+
90
+
91
+
92
+ Open Source Software Licensed under the BSD 3-Clause License:
93
+ --------------------------------------------------------------------
94
+ 1. infinigen
95
+ Copyright (c) 2023, Princeton University
96
+
97
+
98
+ Terms of the BSD 3-Clause License:
99
+ --------------------------------------------------------------------
100
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
101
+
102
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
103
+
104
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
105
+
106
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
107
+
108
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
109
+
110
+
111
+
112
+ Open Source Software Licensed under the Attribution-NonCommercial 4.0 International License:
113
+ --------------------------------------------------------------------
114
+ 1. DiT
115
+ Copyright (c) Meta Platforms, Inc. and affiliates.
116
+ All rights reserved.
117
+ Source code of this software can be obtained from: https://github.com/facebookresearch/DiT/tree/main
118
+
119
+ Terms of the Attribution-NonCommercial 4.0 International License:
120
+ --------------------------------------------------------------------
121
+ Attribution-NonCommercial 4.0 International
122
+
123
+ =======================================================================
124
+
125
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
126
+ does not provide legal services or legal advice. Distribution of
127
+ Creative Commons public licenses does not create a lawyer-client or
128
+ other relationship. Creative Commons makes its licenses and related
129
+ information available on an "as-is" basis. Creative Commons gives no
130
+ warranties regarding its licenses, any material licensed under their
131
+ terms and conditions, or any related information. Creative Commons
132
+ disclaims all liability for damages resulting from their use to the
133
+ fullest extent possible.
134
+
135
+ Using Creative Commons Public Licenses
136
+
137
+ Creative Commons public licenses provide a standard set of terms and
138
+ conditions that creators and other rights holders may use to share
139
+ original works of authorship and other material subject to copyright
140
+ and certain other rights specified in the public license below. The
141
+ following considerations are for informational purposes only, are not
142
+ exhaustive, and do not form part of our licenses.
143
+
144
+ Considerations for licensors: Our public licenses are
145
+ intended for use by those authorized to give the public
146
+ permission to use material in ways otherwise restricted by
147
+ copyright and certain other rights. Our licenses are
148
+ irrevocable. Licensors should read and understand the terms
149
+ and conditions of the license they choose before applying it.
150
+ Licensors should also secure all rights necessary before
151
+ applying our licenses so that the public can reuse the
152
+ material as expected. Licensors should clearly mark any
153
+ material not subject to the license. This includes other CC-
154
+ licensed material, or material used under an exception or
155
+ limitation to copyright. More considerations for licensors:
156
+ wiki.creativecommons.org/Considerations_for_licensors
157
+
158
+ Considerations for the public: By using one of our public
159
+ licenses, a licensor grants the public permission to use the
160
+ licensed material under specified terms and conditions. If
161
+ the licensor's permission is not necessary for any reason--for
162
+ example, because of any applicable exception or limitation to
163
+ copyright--then that use is not regulated by the license. Our
164
+ licenses grant only permissions under copyright and certain
165
+ other rights that a licensor has authority to grant. Use of
166
+ the licensed material may still be restricted for other
167
+ reasons, including because others have copyright or other
168
+ rights in the material. A licensor may make special requests,
169
+ such as asking that all changes be marked or described.
170
+ Although not required by our licenses, you are encouraged to
171
+ respect those requests where reasonable. More_considerations
172
+ for the public:
173
+ wiki.creativecommons.org/Considerations_for_licensees
174
+
175
+ =======================================================================
176
+
177
+ Creative Commons Attribution-NonCommercial 4.0 International Public
178
+ License
179
+
180
+ By exercising the Licensed Rights (defined below), You accept and agree
181
+ to be bound by the terms and conditions of this Creative Commons
182
+ Attribution-NonCommercial 4.0 International Public License ("Public
183
+ License"). To the extent this Public License may be interpreted as a
184
+ contract, You are granted the Licensed Rights in consideration of Your
185
+ acceptance of these terms and conditions, and the Licensor grants You
186
+ such rights in consideration of benefits the Licensor receives from
187
+ making the Licensed Material available under these terms and
188
+ conditions.
189
+
190
+ Section 1 -- Definitions.
191
+
192
+ a. Adapted Material means material subject to Copyright and Similar
193
+ Rights that is derived from or based upon the Licensed Material
194
+ and in which the Licensed Material is translated, altered,
195
+ arranged, transformed, or otherwise modified in a manner requiring
196
+ permission under the Copyright and Similar Rights held by the
197
+ Licensor. For purposes of this Public License, where the Licensed
198
+ Material is a musical work, performance, or sound recording,
199
+ Adapted Material is always produced where the Licensed Material is
200
+ synched in timed relation with a moving image.
201
+
202
+ b. Adapter's License means the license You apply to Your Copyright
203
+ and Similar Rights in Your contributions to Adapted Material in
204
+ accordance with the terms and conditions of this Public License.
205
+
206
+ c. Copyright and Similar Rights means copyright and/or similar rights
207
+ closely related to copyright including, without limitation,
208
+ performance, broadcast, sound recording, and Sui Generis Database
209
+ Rights, without regard to how the rights are labeled or
210
+ categorized. For purposes of this Public License, the rights
211
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
212
+ Rights.
213
+ d. Effective Technological Measures means those measures that, in the
214
+ absence of proper authority, may not be circumvented under laws
215
+ fulfilling obligations under Article 11 of the WIPO Copyright
216
+ Treaty adopted on December 20, 1996, and/or similar international
217
+ agreements.
218
+
219
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
220
+ any other exception or limitation to Copyright and Similar Rights
221
+ that applies to Your use of the Licensed Material.
222
+
223
+ f. Licensed Material means the artistic or literary work, database,
224
+ or other material to which the Licensor applied this Public
225
+ License.
226
+
227
+ g. Licensed Rights means the rights granted to You subject to the
228
+ terms and conditions of this Public License, which are limited to
229
+ all Copyright and Similar Rights that apply to Your use of the
230
+ Licensed Material and that the Licensor has authority to license.
231
+
232
+ h. Licensor means the individual(s) or entity(ies) granting rights
233
+ under this Public License.
234
+
235
+ i. NonCommercial means not primarily intended for or directed towards
236
+ commercial advantage or monetary compensation. For purposes of
237
+ this Public License, the exchange of the Licensed Material for
238
+ other material subject to Copyright and Similar Rights by digital
239
+ file-sharing or similar means is NonCommercial provided there is
240
+ no payment of monetary compensation in connection with the
241
+ exchange.
242
+
243
+ j. Share means to provide material to the public by any means or
244
+ process that requires permission under the Licensed Rights, such
245
+ as reproduction, public display, public performance, distribution,
246
+ dissemination, communication, or importation, and to make material
247
+ available to the public including in ways that members of the
248
+ public may access the material from a place and at a time
249
+ individually chosen by them.
250
+
251
+ k. Sui Generis Database Rights means rights other than copyright
252
+ resulting from Directive 96/9/EC of the European Parliament and of
253
+ the Council of 11 March 1996 on the legal protection of databases,
254
+ as amended and/or succeeded, as well as other essentially
255
+ equivalent rights anywhere in the world.
256
+
257
+ l. You means the individual or entity exercising the Licensed Rights
258
+ under this Public License. Your has a corresponding meaning.
259
+
260
+ Section 2 -- Scope.
261
+
262
+ a. License grant.
263
+
264
+ 1. Subject to the terms and conditions of this Public License,
265
+ the Licensor hereby grants You a worldwide, royalty-free,
266
+ non-sublicensable, non-exclusive, irrevocable license to
267
+ exercise the Licensed Rights in the Licensed Material to:
268
+
269
+ a. reproduce and Share the Licensed Material, in whole or
270
+ in part, for NonCommercial purposes only; and
271
+
272
+ b. produce, reproduce, and Share Adapted Material for
273
+ NonCommercial purposes only.
274
+
275
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
276
+ Exceptions and Limitations apply to Your use, this Public
277
+ License does not apply, and You do not need to comply with
278
+ its terms and conditions.
279
+
280
+ 3. Term. The term of this Public License is specified in Section
281
+ 6(a).
282
+
283
+ 4. Media and formats; technical modifications allowed. The
284
+ Licensor authorizes You to exercise the Licensed Rights in
285
+ all media and formats whether now known or hereafter created,
286
+ and to make technical modifications necessary to do so. The
287
+ Licensor waives and/or agrees not to assert any right or
288
+ authority to forbid You from making technical modifications
289
+ necessary to exercise the Licensed Rights, including
290
+ technical modifications necessary to circumvent Effective
291
+ Technological Measures. For purposes of this Public License,
292
+ simply making modifications authorized by this Section 2(a)
293
+ (4) never produces Adapted Material.
294
+
295
+ 5. Downstream recipients.
296
+
297
+ a. Offer from the Licensor -- Licensed Material. Every
298
+ recipient of the Licensed Material automatically
299
+ receives an offer from the Licensor to exercise the
300
+ Licensed Rights under the terms and conditions of this
301
+ Public License.
302
+
303
+ b. No downstream restrictions. You may not offer or impose
304
+ any additional or different terms or conditions on, or
305
+ apply any Effective Technological Measures to, the
306
+ Licensed Material if doing so restricts exercise of the
307
+ Licensed Rights by any recipient of the Licensed
308
+ Material.
309
+
310
+ 6. No endorsement. Nothing in this Public License constitutes or
311
+ may be construed as permission to assert or imply that You
312
+ are, or that Your use of the Licensed Material is, connected
313
+ with, or sponsored, endorsed, or granted official status by,
314
+ the Licensor or others designated to receive attribution as
315
+ provided in Section 3(a)(1)(A)(i).
316
+
317
+ b. Other rights.
318
+
319
+ 1. Moral rights, such as the right of integrity, are not
320
+ licensed under this Public License, nor are publicity,
321
+ privacy, and/or other similar personality rights; however, to
322
+ the extent possible, the Licensor waives and/or agrees not to
323
+ assert any such rights held by the Licensor to the limited
324
+ extent necessary to allow You to exercise the Licensed
325
+ Rights, but not otherwise.
326
+
327
+ 2. Patent and trademark rights are not licensed under this
328
+ Public License.
329
+
330
+ 3. To the extent possible, the Licensor waives any right to
331
+ collect royalties from You for the exercise of the Licensed
332
+ Rights, whether directly or through a collecting society
333
+ under any voluntary or waivable statutory or compulsory
334
+ licensing scheme. In all other cases the Licensor expressly
335
+ reserves any right to collect such royalties, including when
336
+ the Licensed Material is used other than for NonCommercial
337
+ purposes.
338
+
339
+ Section 3 -- License Conditions.
340
+
341
+ Your exercise of the Licensed Rights is expressly made subject to the
342
+ following conditions.
343
+
344
+ a. Attribution.
345
+
346
+ 1. If You Share the Licensed Material (including in modified
347
+ form), You must:
348
+
349
+ a. retain the following if it is supplied by the Licensor
350
+ with the Licensed Material:
351
+
352
+ i. identification of the creator(s) of the Licensed
353
+ Material and any others designated to receive
354
+ attribution, in any reasonable manner requested by
355
+ the Licensor (including by pseudonym if
356
+ designated);
357
+
358
+ ii. a copyright notice;
359
+
360
+ iii. a notice that refers to this Public License;
361
+
362
+ iv. a notice that refers to the disclaimer of
363
+ warranties;
364
+
365
+ v. a URI or hyperlink to the Licensed Material to the
366
+ extent reasonably practicable;
367
+
368
+ b. indicate if You modified the Licensed Material and
369
+ retain an indication of any previous modifications; and
370
+
371
+ c. indicate the Licensed Material is licensed under this
372
+ Public License, and include the text of, or the URI or
373
+ hyperlink to, this Public License.
374
+
375
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
376
+ reasonable manner based on the medium, means, and context in
377
+ which You Share the Licensed Material. For example, it may be
378
+ reasonable to satisfy the conditions by providing a URI or
379
+ hyperlink to a resource that includes the required
380
+ information.
381
+
382
+ 3. If requested by the Licensor, You must remove any of the
383
+ information required by Section 3(a)(1)(A) to the extent
384
+ reasonably practicable.
385
+
386
+ 4. If You Share Adapted Material You produce, the Adapter's
387
+ License You apply must not prevent recipients of the Adapted
388
+ Material from complying with this Public License.
389
+
390
+ Section 4 -- Sui Generis Database Rights.
391
+
392
+ Where the Licensed Rights include Sui Generis Database Rights that
393
+ apply to Your use of the Licensed Material:
394
+
395
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
396
+ to extract, reuse, reproduce, and Share all or a substantial
397
+ portion of the contents of the database for NonCommercial purposes
398
+ only;
399
+
400
+ b. if You include all or a substantial portion of the database
401
+ contents in a database in which You have Sui Generis Database
402
+ Rights, then the database in which You have Sui Generis Database
403
+ Rights (but not its individual contents) is Adapted Material; and
404
+
405
+ c. You must comply with the conditions in Section 3(a) if You Share
406
+ all or a substantial portion of the contents of the database.
407
+
408
+ For the avoidance of doubt, this Section 4 supplements and does not
409
+ replace Your obligations under this Public License where the Licensed
410
+ Rights include other Copyright and Similar Rights.
411
+
412
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
413
+
414
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
415
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
416
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
417
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
418
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
419
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
420
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
421
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
422
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
423
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
424
+
425
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
426
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
427
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
428
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
429
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
430
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
431
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
432
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
433
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
434
+
435
+ c. The disclaimer of warranties and limitation of liability provided
436
+ above shall be interpreted in a manner that, to the extent
437
+ possible, most closely approximates an absolute disclaimer and
438
+ waiver of all liability.
439
+
440
+ Section 6 -- Term and Termination.
441
+
442
+ a. This Public License applies for the term of the Copyright and
443
+ Similar Rights licensed here. However, if You fail to comply with
444
+ this Public License, then Your rights under this Public License
445
+ terminate automatically.
446
+
447
+ b. Where Your right to use the Licensed Material has terminated under
448
+ Section 6(a), it reinstates:
449
+
450
+ 1. automatically as of the date the violation is cured, provided
451
+ it is cured within 30 days of Your discovery of the
452
+ violation; or
453
+
454
+ 2. upon express reinstatement by the Licensor.
455
+
456
+ For the avoidance of doubt, this Section 6(b) does not affect any
457
+ right the Licensor may have to seek remedies for Your violations
458
+ of this Public License.
459
+
460
+ c. For the avoidance of doubt, the Licensor may also offer the
461
+ Licensed Material under separate terms or conditions or stop
462
+ distributing the Licensed Material at any time; however, doing so
463
+ will not terminate this Public License.
464
+
465
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
466
+ License.
467
+
468
+ Section 7 -- Other Terms and Conditions.
469
+
470
+ a. The Licensor shall not be bound by any additional or different
471
+ terms or conditions communicated by You unless expressly agreed.
472
+
473
+ b. Any arrangements, understandings, or agreements regarding the
474
+ Licensed Material not stated herein are separate from and
475
+ independent of the terms and conditions of this Public License.
476
+
477
+ Section 8 -- Interpretation.
478
+
479
+ a. For the avoidance of doubt, this Public License does not, and
480
+ shall not be interpreted to, reduce, limit, restrict, or impose
481
+ conditions on any use of the Licensed Material that could lawfully
482
+ be made without permission under this Public License.
483
+
484
+ b. To the extent possible, if any provision of this Public License is
485
+ deemed unenforceable, it shall be automatically reformed to the
486
+ minimum extent necessary to make it enforceable. If the provision
487
+ cannot be reformed, it shall be severed from this Public License
488
+ without affecting the enforceability of the remaining terms and
489
+ conditions.
490
+
491
+ c. No term or condition of this Public License will be waived and no
492
+ failure to comply consented to unless expressly agreed to by the
493
+ Licensor.
494
+
495
+ d. Nothing in this Public License constitutes or may be interpreted
496
+ as a limitation upon, or waiver of, any privileges and immunities
497
+ that apply to the Licensor or You, including from the legal
498
+ processes of any jurisdiction or authority.
499
+
500
+ =======================================================================
501
+
502
+ Creative Commons is not a party to its public
503
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
504
+ its public licenses to material it publishes and in those instances
505
+ will be considered the “Licensor.” The text of the Creative Commons
506
+ public licenses is dedicated to the public domain under the CC0 Public
507
+ Domain Dedication. Except for the limited purpose of indicating that
508
+ material is shared under a Creative Commons public license or as
509
+ otherwise permitted by the Creative Commons policies published at
510
+ creativecommons.org/policies, Creative Commons does not authorize the
511
+ use of the trademark "Creative Commons" or any other trademark or logo
512
+ of Creative Commons without its prior written consent including,
513
+ without limitation, in connection with any unauthorized modifications
514
+ to any of its public licenses or any other arrangements,
515
+ understandings, or agreements concerning use of licensed material. For
516
+ the avoidance of doubt, this paragraph does not form part of the
517
+ public licenses.
518
+
519
+ Creative Commons may be contacted at creativecommons.org.
app.py CHANGED
@@ -219,7 +219,7 @@ with gr.Blocks() as demo:
219
  [os.path.join(f"examples/chair", img_name) for img_name in sorted(os.listdir(f"examples/chair"))],
220
  inputs=[input_image],
221
  label="Examples",
222
- examples_per_page=5
223
  )
224
  generator_category.change(update_examples, generator_category, outputs=examples.dataset)
225
 
 
219
  [os.path.join(f"examples/chair", img_name) for img_name in sorted(os.listdir(f"examples/chair"))],
220
  inputs=[input_image],
221
  label="Examples",
222
+ examples_per_page=10
223
  )
224
  generator_category.change(update_examples, generator_category, outputs=examples.dataset)
225