Skip to content

Commit 5c42e61

Browse files
authored
Add description for non-MIT licensed codes (#1000)
* Add license description for non-MIT files. * Fix link. * Add .md to license files. * Fix link to md in licenses.
1 parent 5a1a8f1 commit 5c42e61

File tree

4 files changed

+136
-1
lines changed

4 files changed

+136
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,4 @@ make table # generate a table with encoders and print to stdout
503503
```
504504

505505
### 🛡️ License <a name="license"></a>
506-
The project is distributed under [MIT License](https://github.com/qubvel/segmentation_models.pytorch/blob/main/LICENSE)
506+
The project is primarily distributed under [MIT License](https://github.com/qubvel/segmentation_models.pytorch/blob/main/LICENSE), while some files are subject to other licenses. Please refer to [LICENSES](licenses/LICENSES.md) and license statements in each file for careful check, especially for commercial use.

licenses/LICENSES.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
LICENSES for specific files
2+
===========================
3+
4+
The majority of the code is licensed under the [MIT License](LICENSE). However, some files are licensed under different terms. Please check each file for file-specific license.
5+
6+
7+
**Component-Specific Licenses**
8+
9+
- NVIDIA License
10+
11+
* Applies to the Mix Vision Transformer (SegFormer) encoder
12+
* This is for non-commercial use only
13+
* [segmentation_models_pytorch/encoders/mix_transformer.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/mix_transformer.py)
14+
* [LICENSE_nvidia](LICENSE_nvidia.md)
15+
16+
17+
- Apple License
18+
* Applies to the MobileOne encoder
19+
* [segmentation_models_pytorch/encoders/mobileone.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/encoders/mobileone.py)
20+
* [LICENSE_apple](LICENSE_apple.md)
21+
22+
- BSD 3-Clause License
23+
* Applies to the DeepLabV3 decoder
24+
* [segmentation_models_pytorch/decoders/deeplabv3/decoder.py](https://github.com/qubvel/segmentation_models.pytorch/blob/main/segmentation_models_pytorch/decoders/deeplabv3/decoder.py)
25+

licenses/LICENSE_apple.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Copyright (C) 2022 Apple Inc. All Rights Reserved.
2+
3+
IMPORTANT: This Apple software is supplied to you by Apple
4+
Inc. ("Apple") in consideration of your agreement to the following
5+
terms, and your use, installation, modification or redistribution of
6+
this Apple software constitutes acceptance of these terms. If you do
7+
not agree with these terms, please do not use, install, modify or
8+
redistribute this Apple software.
9+
10+
In consideration of your agreement to abide by the following terms, and
11+
subject to these terms, Apple grants you a personal, non-exclusive
12+
license, under Apple's copyrights in this original Apple software (the
13+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
14+
Software, with or without modifications, in source and/or binary forms;
15+
provided that if you redistribute the Apple Software in its entirety and
16+
without modifications, you must retain this notice and the following
17+
text and disclaimers in all such redistributions of the Apple Software.
18+
Neither the name, trademarks, service marks or logos of Apple Inc. may
19+
be used to endorse or promote products derived from the Apple Software
20+
without specific prior written permission from Apple. Except as
21+
expressly stated in this notice, no other rights or licenses, express or
22+
implied, are granted by Apple herein, including but not limited to any
23+
patent rights that may be infringed by your derivative works or by other
24+
works in which the Apple Software may be incorporated.
25+
26+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
27+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
28+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
29+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
30+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
31+
32+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
33+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
36+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
37+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
38+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
39+
POSSIBILITY OF SUCH DAMAGE.
40+
41+
-------------------------------------------------------------------------------
42+
SOFTWARE DISTRIBUTED WITH ML-MobileOne:
43+
44+
The ML-MobileOne software includes a number of subcomponents with separate
45+
copyright notices and license terms - please see the file ACKNOWLEDGEMENTS.
46+
-------------------------------------------------------------------------------

licenses/LICENSE_nvidia.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
NVIDIA Source Code License for SegFormer
2+
3+
1. Definitions
4+
5+
“Licensor” means any person or entity that distributes its Work.
6+
7+
“Software” means the original work of authorship made available under this License.
8+
9+
“Work” means the Software and any additions to or derivative works of the Software that are made available under
10+
this License.
11+
12+
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the meaning as provided under
13+
U.S. copyright law; provided, however, that for the purposes of this License, derivative works shall not include
14+
works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work.
15+
16+
Works, including the Software, are “made available” under this License by including in or with the Work either
17+
(a) a copyright notice referencing the applicability of this License to the Work, or (b) a copy of this License.
18+
19+
2. License Grant
20+
21+
2.1 Copyright Grant. Subject to the terms and conditions of this License, each Licensor grants to you a perpetual,
22+
worldwide, non-exclusive, royalty-free, copyright license to reproduce, prepare derivative works of, publicly
23+
display, publicly perform, sublicense and distribute its Work and any resulting derivative works in any form.
24+
25+
3. Limitations
26+
27+
3.1 Redistribution. You may reproduce or distribute the Work only if (a) you do so under this License, (b) you
28+
include a complete copy of this License with your distribution, and (c) you retain without modification any
29+
copyright, patent, trademark, or attribution notices that are present in the Work.
30+
31+
3.2 Derivative Works. You may specify that additional or different terms apply to the use, reproduction, and
32+
distribution of your derivative works of the Work (“Your Terms”) only if (a) Your Terms provide that the use
33+
limitation in Section 3.3 applies to your derivative works, and (b) you identify the specific derivative works
34+
that are subject to Your Terms. Notwithstanding Your Terms, this License (including the redistribution
35+
requirements in Section 3.1) will continue to apply to the Work itself.
36+
37+
3.3 Use Limitation. The Work and any derivative works thereof only may be used or intended for use
38+
non-commercially. Notwithstanding the foregoing, NVIDIA and its affiliates may use the Work and any derivative
39+
works commercially. As used herein, “non-commercially” means for research or evaluation purposes only.
40+
41+
3.4 Patent Claims. If you bring or threaten to bring a patent claim against any Licensor (including any claim,
42+
cross-claim or counterclaim in a lawsuit) to enforce any patents that you allege are infringed by any Work, then
43+
your rights under this License from such Licensor (including the grant in Section 2.1) will terminate immediately.
44+
45+
3.5 Trademarks. This License does not grant any rights to use any Licensor’s or its affiliates’ names, logos,
46+
or trademarks, except as necessary to reproduce the notices described in this License.
47+
48+
3.6 Termination. If you violate any term of this License, then your rights under this License (including the
49+
grant in Section 2.1) will terminate immediately.
50+
51+
4. Disclaimer of Warranty.
52+
53+
THE WORK IS PROVIDED “AS IS” WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
54+
WARRANTIES OR CONDITIONS OF M ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT. YOU
55+
BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER THIS LICENSE.
56+
57+
5. Limitation of Liability.
58+
59+
EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING
60+
NEGLIGENCE), CONTRACT, OR OTHERWISE SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,
61+
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATED TO THIS LICENSE, THE USE OR
62+
INABILITY TO USE THE WORK (INCLUDING BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOST PROFITS OR
63+
DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER COMM ERCIAL DAMAGES OR LOSSES), EVEN IF THE LICENSOR HAS BEEN
64+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

0 commit comments

Comments
 (0)