提交 0c8afa45 编写于 作者: R Ross Girshick

change MSR-LA to BSD 2-clause

上级 d3517172
Copyright (c) 2015, Microsoft
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
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.
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.
# Fast R-CNN
### Requirements
0. Requirements for Caffe and pycaffe
0. cython and python-opencv (`sudo apt-get install cython python-opencv` on Ubuntu)
0. Matlab (required for PASCAL VOC evaluation only)
### Installation
0. Extract the source code: `$ tar zxvf fast-rcnn.tgz`; call the source directory `$FRCNN`
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
import fast_rcnn_config as conf
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
from .imdb import imdb
from .pascal_voc import pascal_voc
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import os
import PIL
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import datasets.pascal_voc
import os
......
#!/usr/bin/env python
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import fast_rcnn_config as conf
import caffe
import argparse
......
#!/usr/bin/env python
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import fast_rcnn_config as conf
import fast_rcnn_test
......
#!/usr/bin/env python
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import fast_rcnn_config as conf
import fast_rcnn_train
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import os
import sys
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import fast_rcnn_config as conf
import argparse
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import fast_rcnn_config as conf
import numpy as np
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
import cv2
......
MICROSOFT RESEARCH LICENSE TERMS
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received, if any. The terms also apply to any Microsoft:
* updates,
* supplements,
* Internet-based services, and
* support services
for this software, unless other terms accompany those items. If so, those terms apply.
By using the software you accept these terms. If you do not accept them, do not use the software. If you comply with these license terms, you have the rights below.
SCOPE OF RIGHTS:
* License Grant. You may use, copy, modify, creative derivative works, and distribute the Software for non-commercial purposes, subject to the restrictions in this MSR-LA. Examples of non-commercial uses are teaching, academic research, public demonstrations and personal experimentation.
* Publication. You may publish (or present papers or articles) on your results from using the software, provided that no software source code or object code or documentation is included in any such publication or presentation.
* Third Party Programs. The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party program are included for your information only.
In return, we simply require that you agree:
* If you distribute the Software or any derivative works of the Software, you will distribute them under the same terms and conditions as in this license, and you will not grant other rights to the Software or derivative works that are different from those provided by this MSR-LA.
* If you have created derivative works of the software, and distribute such derivative works, you will cause the modified files to carry prominent notices so that recipients know that they are not receiving the original software. Such notices must state: (i) that you have changed the software; and (ii) the date of any changes.
* That Microsoft is granted back, without any restrictions or limitations, a non-exclusive, perpetual, irrevocable, royalty-free, assignable and sub-licensable license, to reproduce, publicly perform or display, install, use, modify, post, distribute, make and have made, sell and transfer your modifications to and/or derivative works of the Software source code or data, for any purpose.
* Not to alter any copyright, trademark or patent notice in the software;
* Not to use Microsoft's trademarks in your programs' names or in a way that suggests your derivative works or modifications come from or are endorsed by Microsoft;
* Not to include the software in malicious, deceptive or unlawful programs;
TERM; TERMINATION. The term of this Agreement will commence upon your acceptance of these license terms and will continue indefinitely unless terminated as provided herein. If you breach this agreement or if you sue anyone over patents that you think may apply to or read on the software or anyone's use of the software, this agreement (and your license and rights obtained herein) terminate automatically. If this agreement is terminated, you must cease using and distributing any derivative works or modifications of the Software. Any sections that are intended to survive termination of this agreement shall survive.
FEEDBACK. That any feedback about the Software provided by you to us is voluntarily given, and Microsoft shall be free to use the feedback as it sees fit without obligation or restriction of any kind, even if the feedback is designated by you as confidential.
SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. The patent rights, if any, granted to you in this MSR-LA only apply to the Software, not to any derivative works you make. In using the Software, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not:
* work around any technical limitations in the software;
* reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
* make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation;
* rent, lease or lend the software;
* transfer the software or this agreement to any third party; or
* use the software for commercial software hosting services.
EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting.
ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
Governing Law and Venue. This Agreement is governed by and construed in accordance with the laws of the state of Washington, without reference to its choice of law principles to the contrary. Each party hereby consents to the jurisdiction and venue of the state and federal courts located in King County, Washington, with regard to any suit or claim arising under or by reason of this Agreement.
DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED "AS-IS." YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
THAT NEITHER MICROSOFT NOR ANY CONTRIBUTOR TO THE SOFTWARE WILL BE LIABLE FOR ANY DAMAGES RELATED TO THE SOFTWARE OR THIS MSR-LA, INCLUDING DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL OR INCIDENTAL DAMAGES, TO THE MAXIMUM EXTENT THE LAW PERMITS, NO MATTER WHAT LEGAL THEORY IT IS BASED
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
from distutils.core import setup
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Sergey Karayev and used with permission
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
cimport cython
import numpy as np
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
import cv2
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import numpy as np
cimport numpy as np
......
# ---------------------------------------------------------------
# Fast R-CNN version 1.0
# Written by Ross Girshick, 2015
# Licensed under the MSR-LA Full Rights License [see license.txt]
# ---------------------------------------------------------------
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# --------------------------------------------------------
import time
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册