diff --git a/LICENSES/AMBS_libraries.csv b/LICENSES/AMBS_libraries.csv new file mode 100644 index 0000000000000000000000000000000000000000..04f912bb534d6dbb9ad3dbd56d3c3d040142dfed --- /dev/null +++ b/LICENSES/AMBS_libraries.csv @@ -0,0 +1,108 @@ +Library,License,Link,,, +absl-py==0.8.0,Apache Software License (Apache 2.0),https://pypi.org/project/absl-py/,,, +anytree==2.8.0,Apache 2.0,https://pypi.org/project/anytree/,,, +appdirs==1.4.3,MIT License (MIT),https://pypi.org/project/appdirs/,,, +astor==0.8.0,BSD License (BSD-3-Clause),https://pypi.org/project/astor/,,, +atomicwrites==1.3.0,MIT License (MIT),https://pypi.org/project/atomicwrites/,,, +attrs==19.1.0,MIT License (MIT),https://pypi.org/project/attrs/,,, +cachetools==4.2.2,MIT License (MIT),https://pypi.org/project/cachetools/,,, +certifi==2019.3.9,License: Mozilla Public License 2.0 (MPL 2.0) (MPL-2.0),https://pypi.org/project/certifi/, +cffi==1.12.3,MIT License (MIT),https://pypi.org/project/cffi/,,, +cftime==1.0.3.4,MIT License (License :: OSI Approved :: MIT License),https://pypi.org/project/cftime/,,, +chardet==3.0.4,GNU Library or Lesser General Public License (LGPL) (LGPL),https://pypi.org/project/chardet/, +cloudpickle==1.2.2,BSD License (BSD 3-Clause License),https://pypi.org/project/cloudpickle/,,, +colorama==0.4.4,BSD License (BSD),https://pypi.org/project/colorama/,,, +coverage==4.5.2,Apache Software License (Apache 2.0),https://pypi.org/project/coverage/4.5.2/,,, +cycler==0.10.0, BSD,https://pypi.org/project/Cycler/,,, +decorator==4.4.1,BSD License (new BSD License),https://pypi.org/project/decorator/,,, +dill==0.3.0,BSD License (3-clause BSD),https://pypi.org/project/dill/,,, +distlib==0.3.0,Python Software Foundation License (Python license),https://pypi.org/project/distlib/,,, +docopt==0.6.2,MIT License (MIT),https://pypi.org/project/docopt/,,, +filelock==3.0.12,Public Domain (Public Domain <http://unlicense.org>),https://pypi.org/project/filelock/,,, +gast==0.3.2,BSD License (BSD 3-Clause),https://pypi.org/project/gast/,,, +google-pasta==0.1.7,Apache Software License (Apache 2.0),https://pypi.org/project/google-pasta/,,, +graphviz==0.8.4,MIT License (MIT),https://pypi.org/project/graphviz/,,, +grpcio==1.23.0,Apache Software License (Apache License 2.0),https://pypi.org/project/grpcio/1.23.0/,,, +h5py==2.9.0,BSD License (BSD),https://pypi.org/project/h5py/,,, +horovod==0.18.1,Apache Software License (Apache 2.0),https://pypi.org/project/horovod/,,, +idna==2.8,BSD License (BSD-3-Clause),https://pypi.org/project/idna/,,, +imageio==2.6.1,BSD License (BSD-2-Clause),https://pypi.org/project/imageio/,,, +imbalanced-learn==0.5.0,OSI Approved (MIT),https://pypi.org/project/imbalanced-learn/,,, +importlib-metadata==1.5.0,Apache Software License,https://pypi.org/project/importlib-metadata/,,, +joblib==0.13.2,BSD License (BSD),https://pypi.org/project/joblib/,,, +johnnydep==1.7,MIT,https://pypi.org/project/johnnydep/,,, +Keras-Applications==1.0.8,MIT License (MIT),https://pypi.org/project/Keras-Applications/,,, +Keras-Preprocessing==1.1.0,MIT License (MIT),https://pypi.org/project/Keras-Preprocessing/,,, +kiwisolver==1.1.0,BSD License (BSD),https://pypi.org/project/kiwisolver/,,, +Markdown==3.1.1,BSD License (BSD License),https://pypi.org/project/Markdown/,,, +matplotlib==3.1.2,Python Software Foundation License (PSF),https://pypi.org/project/matplotlib/,,, +mnist==0.2.2,BSD,https://pypi.org/project/python-mnist/,,, +mock==4.0.2,BSD License,https://pypi.org/project/mock/,,, +more-itertools==6.0.0,MIT License (MIT),https://pypi.org/project/more-itertools/,,, +mxnet==1.5.0,Apache Software License (Apache 2.0),https://pypi.org/project/mxnet/1.5.0/,,, +netCDF4==1.5.1.2,MIT License (License :: OSI Approved :: MIT License),https://pypi.org/project/netCDF4/,,, +networkx==2.4,BSD License,https://pypi.org/project/networkx/,,, +nose==1.3.7,GNU Library or Lesser General Public License (LGPL) (GNU LGPL),https://pypi.org/project/nose/,,Dev-Library?!, +numpy==1.16.2,OSI Approved (BSD)https://pypi.org/project/numpy/1.16.2/,https://pypi.org/project/numpy/1.16.2/,,, +opencv-python==4.1.2.30,MIT License (MIT),https://pypi.org/project/opencv-python/,,, +opencv-python-headless==4.2.0.34,MIT License (MIT),https://pypi.org/project/opencv-python-headless/,,, +oyaml==1.0,MIT,https://pypi.org/project/oyaml/,,, +packaging==20.9,"Apache Software License, BSD License (BSD-2-Clause or Apache-2.0)",https://pypi.org/project/packaging/,,, +pandas==0.24.1,BSD,https://pypi.org/project/pandas/,,, +patsy==0.5.1,BSD License (2-clause BSD),https://pypi.org/project/patsy/,,, +Pillow==6.1.0,Historical Permission Notice and Disclaimer (HPND) (HPND),https://pypi.org/project/Pillow/,,, +pipreqs==0.4.10,Apache Software License (Apache License,https://pypi.org/project/pipreqs/,,, +pkginfo==1.7.0,MIT License (MIT),https://pypi.org/project/pkginfo/,,, +plotly==4.9.0,MIT,https://pypi.org/project/plotly/,,, +pluggy==0.9.0,MIT License (MIT license),https://pypi.org/project/pluggy/,,, +protobuf==3.9.1, 3-Clause BSD License,https://pypi.org/project/protobuf/,,, +psutil==5.6.1,BSD License (BSD),https://pypi.org/project/psutil/,,, +py==1.8.0,MIT License (MIT license),https://pypi.org/project/py/,,, +pycparser==2.19,BSD License (BSD),https://pypi.org/project/pycparser/,,, +pymongo==3.10.1,"Apache Software License (Apache License, Version 2.0)",https://pypi.org/project/pymongo/,,, +pyparsing==2.4.5,MIT License (MIT License),https://pypi.org/project/pyparsing/,,, +pytest==4.3.0, MIT License (MIT),https://pypi.org/project/pytest/,,, +pytest-cov==2.6.1,MIT License (MIT),https://pypi.org/project/pytest-cov/,,, +python-dateutil==2.8.0,"Apache Software License, BSD License (Dual License)",https://pypi.org/project/python-dateutil/,,, +pytz==2018.9,MIT License (MIT),https://pypi.org/project/pytz/,,, +PyWavelets==1.1.1,MIT License (MIT),https://pypi.org/project/PyWavelets/,,, +PyYAML==5.1.2,MIT License (MIT),https://pypi.org/project/PyYAML/5.1.2/,,, +requests==2.21.0,Apache Software License (Apache 2.0),https://pypi.org/project/requests/,,, +retrying==1.3.3,Apache Software License (Apache 2.0),https://pypi.org/project/retrying/,,, +scikit-image==0.16.2, BSD License (Modified BSD),https://pypi.org/project/scikit-image/0.16.2/,,, +scikit-learn==0.21.3,OSI Approved (new BSD),https://pypi.org/project/scikit-learn/0.21.3/,,, +scipy==1.3.1,BSD License (BSD),https://pypi.org/project/scipy/,,, +six==1.12.0,: MIT License (MIT),https://pypi.org/project/six/,,, +sklearn==0.0,OSI Approved (new BSD),https://pypi.org/project/scikit-learn/,,, +statsmodels==0.9.0,BSD License (BSD License),https://pypi.org/project/statsmodels/0.9.0/,,, +structlog==21.1.0,"Apache Software License, MIT License (MIT or Apache License, Version 2.0)",https://pypi.org/project/structlog/,,, +tabulate==0.8.9,MIT License (MIT),https://pypi.org/project/tabulate/,,, +tensorboard==1.13.1,Apache Software License (Apache 2.0),https://pypi.org/project/tensorboard/,,, +tensorflow==1.13.1,Apache Software License (Apache 2.0),https://pypi.org/project/tensorflow/,,, +tensorflow-estimator==1.13.0,Apache Software License (Apache 2.0),https://pypi.org/project/tensorflow-estimator/,,, +termcolor==1.1.0,MIT License (MIT),https://pypi.org/project/termcolor/,,, +tflearn==0.3.2,MIT,https://pypi.org/project/tflearn/0.3.2/,,, +toml==0.10.2,MIT License (MIT),https://pypi.org/project/toml/,,, +torch==1.2.0,BSD License (BSD-3),https://pypi.org/project/torch/,,, +torchvision==0.4.0,BSD,https://pypi.org/project/torchvision/,,, +tornado==6.0.1,Apache Software License (http://www.apache.org/licenses/LICENSE-2.0),https://pypi.org/project/tornado/,,, +tqdm==4.36.1," MIT License, Mozilla Public License 2.0 (MPL 2.0) (MPLv2.0, MIT Licences)",https://pypi.org/project/tqdm/,,, +typing-extensions==3.10.0.0,Python Software Foundation License (PSF),https://pypi.org/project/typing-extensions/,,, +urllib3==1.24.1,MIT License (MIT),https://pypi.org/project/urllib3/,,, +virtualenv==20.0.10,MIT License (MIT),https://pypi.org/project/virtualenv/,,, +Werkzeug==0.15.6,BSD License (BSD-3-Clause),https://pypi.org/project/Werkzeug/,,, +wimpy==0.6,MIT,https://pypi.org/project/wimpy/,,, +wrapt==1.11.2,BSD License (BSD),https://pypi.org/project/wrapt/,,, +yarg==0.1.9,MIT License (MIT),https://pypi.org/project/yarg/,,, +zipp==3.1.0,MIT License,https://pypi.org/project/zipp/,,, +convLSTM,Apache License 2.0,https://github.com/loliverhennigh/Convolutional-LSTM-in-Tensorflow/blob/master/License.md,,, +SAVP,MIT License (MIT),https://github.com/alexlee-gk/video_prediction/blob/master/LICENSE,,, +TrainModel,MIT License,https://github.com/alexlee-gk/video_prediction/blob/master/LICENSE,,, +MCnet,MIT License,https://github.com/rubenvillegas/iclr2017mcnet/blob/master/LICENSE,,, +flow_ops,MIT License,https://github.com/simonmeister/UnFlow/blob/master/LICENSE,,, +GoogleRobotDataset,Creative Commons Attribution 4.0 International,https://creativecommons.org/licenses/by/4.0/,,, +SNA,Apache License 2.0,http://www.apache.org/licenses/LICENSE-2.0,,, +SV2P,Apache License 2.0,http://www.apache.org/licenses/LICENSE-2.0,,, +lpips-tensorflow,BSD 2-Clause,https://github.com/alexlee-gk/lpips-tensorflow/blob/master/LICENSE +McNet_utils,MIT,https://github.com/Newmu/dcgan_code/blob/master/LICENSE +SoftMotionDataset, ,https://sites.google.com/view/sna-visual-mpc diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt deleted file mode 100644 index 8dd4aa127ad815da7015879b867bc9d43aaaccfa..0000000000000000000000000000000000000000 --- a/LICENSES/Apache-2.0.txt +++ /dev/null @@ -1,75 +0,0 @@ -Copyright 2017 Hwalsuk Lee. All right reserved. - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"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. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"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. - -"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). - -"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. - -"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." - -"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. - -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. - -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. - -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: - - (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices stating that You changed the files; and - - (c) 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 - - (d) 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. - - 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. - -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. - -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. - -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. - -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. - -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. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - -To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. - -Copyright 2017 Hwalsuk Lee - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 0000000000000000000000000000000000000000..c7a4c9befc7bb51bbe361084d6d8b7e2dcc39f10 --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,156 @@ +Creative Commons Attribution 4.0 International + + Creative Commons Corporation (�Creative Commons�) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an �as-is� basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor�s permission is not necessary for any reason�for example, because of any applicable exception or limitation to copyright�then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 � Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 � Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor � Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 � License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. + +Section 4 � Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 � Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 � Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 � Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 � Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the �Licensor.� Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark �Creative Commons� or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/video_prediction_tools/data_preprocess/calc_climatology.py b/video_prediction_tools/data_preprocess/calc_climatology.py index 1bd3f54735da18e4a2b03dffc001c9364ff96395..d91bf48aeeecd1d9189153d80663665d07eb8451 100644 --- a/video_prediction_tools/data_preprocess/calc_climatology.py +++ b/video_prediction_tools/data_preprocess/calc_climatology.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Yan Ji, Bing Gong" diff --git a/video_prediction_tools/data_preprocess/dataset_options.py b/video_prediction_tools/data_preprocess/dataset_options.py index 5e9729d693720e0e1380170a436980fdbeb900e7..4a9141b979db610a528dcf0d200c859e75ae9a6f 100644 --- a/video_prediction_tools/data_preprocess/dataset_options.py +++ b/video_prediction_tools/data_preprocess/dataset_options.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + def known_datasets(): """ An auxilary function diff --git a/video_prediction_tools/data_preprocess/prepare_era5_data.py b/video_prediction_tools/data_preprocess/prepare_era5_data.py index fbb71bdb8b9df163d38a2bfbd06a8e8ecea4588d..9de5b07079e5f6b26bd381a46b577b7084b98529 100644 --- a/video_prediction_tools/data_preprocess/prepare_era5_data.py +++ b/video_prediction_tools/data_preprocess/prepare_era5_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Functions required for extracting ERA5 data. """ diff --git a/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py b/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py index 444a6e0bdb0c11b25d19984236a71a3cefb9a2fa..d58f705083c7735c7cfd45af524cf0fef9821deb 100644 --- a/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py +++ b/video_prediction_tools/data_preprocess/prepare_moving_mnist_data.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class and functions required for preprocessing Moving mnist data from .npz to TFRecords """ diff --git a/video_prediction_tools/data_preprocess/preprocess_data_step2.py b/video_prediction_tools/data_preprocess/preprocess_data_step2.py index 7cf1931577ce6726c6bce2baa23b8a7934b50a6e..a062ee1cefc0b0683f59a4d86736a4500243761e 100644 --- a/video_prediction_tools/data_preprocess/preprocess_data_step2.py +++ b/video_prediction_tools/data_preprocess/preprocess_data_step2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class and functions required for preprocessing ERA5 data (preprocessing substep 2) """ diff --git a/video_prediction_tools/data_preprocess/process_netCDF_v2.py b/video_prediction_tools/data_preprocess/process_netCDF_v2.py index 2d030d3e9bb65d917f8725ecbe8df740800dbbcb..ae8c142134da53ee1c37c846d63f2ef8ea9340cc 100644 --- a/video_prediction_tools/data_preprocess/process_netCDF_v2.py +++ b/video_prediction_tools/data_preprocess/process_netCDF_v2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Code for processing staged ERA5 data, this is used for the DataPreprocessing step 1 of the workflow diff --git a/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py b/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py index 3d9cf874a5d12b277f1bc8b41b277003b0e6b9b5..419960b81d5bda6811e63621f760f847e78c71b8 100644 --- a/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py +++ b/video_prediction_tools/deprecate/datasets/Download_ERA5_Variable.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import cdsapi import argparse diff --git a/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py b/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py index 0daa13b332a50f848b1d41fb8bd5c75079c88b7e..2a30c9ce59040b1f8ce9b8efa66508fd18e9be1b 100644 --- a/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py +++ b/video_prediction_tools/deprecate/datasets/extract_data/era5_dataset_v2_anomaly.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py b/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py index c8b5c3504e6b5510330b6ecda6d07dfa855a4d9e..527645626823a3d542e518eddf4e7fd4cf02c0b5 100755 --- a/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py +++ b/video_prediction_tools/deprecate/datasets/extract_data/extract_era5.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + # -*- coding: utf-8 -*- """ Spyder Editor diff --git a/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py b/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py index 112eaf31e1d9961e402ddbac1a91b37a6b7b9b90..74f3f16bf93a44981afc52155a8a07ab2ce61d92 100644 --- a/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py +++ b/video_prediction_tools/deprecate/model_modules/vanilla_GAN_model.py @@ -1,16 +1,13 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" __date__ = "2021=01-05" - -""" -This code implement take the following as references: -1) https://stackabuse.com/introduction-to-gans-with-python-and-tensorflow/ -2) cousera GAN courses -3) https://github.com/hwalsuklee/tensorflow-generative-model-collections/blob/master/GAN.py -""" - import tensorflow as tf from model_modules.video_prediction.models.model_helpers import set_and_check_pred_frames diff --git a/video_prediction_tools/deprecate/scripts/combine_results.py b/video_prediction_tools/deprecate/scripts/combine_results.py index 2b684ac1212350c8d0c630884baeb34154dd1fa3..ce6b00f420876a334b0af358e915318d03fb097f 100644 --- a/video_prediction_tools/deprecate/scripts/combine_results.py +++ b/video_prediction_tools/deprecate/scripts/combine_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/evaluate.py b/video_prediction_tools/deprecate/scripts/evaluate.py index 1f4062f7e3abe4574fa434cfbb2bc66a1b63eed3..11792bb196bf77a2aef3188ae599f8074c6d8da3 100644 --- a/video_prediction_tools/deprecate/scripts/evaluate.py +++ b/video_prediction_tools/deprecate/scripts/evaluate.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/generate_orig.py b/video_prediction_tools/deprecate/scripts/generate_orig.py index 0a9e53037d247002743593a9bed36d7f1b9b4249..52f2a1ea9a4c7119cba5b6a063fa911392800fe1 100644 --- a/video_prediction_tools/deprecate/scripts/generate_orig.py +++ b/video_prediction_tools/deprecate/scripts/generate_orig.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/plot_results.py b/video_prediction_tools/deprecate/scripts/plot_results.py index ddf49066db5c4276bfb23167bbcde35295c270d4..92019754ca03df9295a325fda4b511d137afd1d6 100644 --- a/video_prediction_tools/deprecate/scripts/plot_results.py +++ b/video_prediction_tools/deprecate/scripts/plot_results.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/deprecate/scripts/train.py b/video_prediction_tools/deprecate/scripts/train.py index 79f317ab1b6f30ab7708331ae4671de25b18167b..ee76b2066f20e575727a28f05cac7a9d8b2dffb6 100644 --- a/video_prediction_tools/deprecate/scripts/train.py +++ b/video_prediction_tools/deprecate/scripts/train.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/video_prediction_tools/external_package/lpips-tensorflow/LICENSE b/video_prediction_tools/external_package/lpips-tensorflow/LICENSE deleted file mode 100644 index afbffa507fd832d614440dd75f81c8ed731ded66..0000000000000000000000000000000000000000 --- a/video_prediction_tools/external_package/lpips-tensorflow/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -BSD 2-Clause License - -Copyright (c) 2018, alexlee-gk -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* 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. diff --git a/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py b/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py index 32681117385903e8e7bfd19d4a7154a99a7ce78f..091c2273176f09a686fbef015da9132e5f58c2d8 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/export_to_tensorflow.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import argparse import os diff --git a/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py b/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py index 5c47f90b68f3fa05b8b2f29cf6100b6d63e584aa..da8773a94f46821a22906de32a2a81627f06506f 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/lpips_tf.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import os import sys diff --git a/video_prediction_tools/external_package/lpips-tensorflow/test_network.py b/video_prediction_tools/external_package/lpips-tensorflow/test_network.py index c222ab931807b207a5ea26d2a7297429dcb7a02b..19df3bfa7414c40ae51018279835152a2e6f6cc1 100644 --- a/video_prediction_tools/external_package/lpips-tensorflow/test_network.py +++ b/video_prediction_tools/external_package/lpips-tensorflow/test_network.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018, alexlee-gk +# +# SPDX-License-Identifier: BSD-2-Clause + import argparse import cv2 diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py b/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py index cd0ec2b230169016cc10aee5ee2ff3d7e4fc611b..05b9a5f6b985ce0cddbbef9673bb160b8a5d3e17 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .base_dataset import BaseVideoDataset from .base_dataset import VideoDataset, SequenceExampleVideoDataset, VarLenFeatureVideoDataset from .google_robot_dataset import GoogleRobotVideoDataset diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py index 734cb4a545135542348fb1bb72d479036b840084..b8e4838b8003b71ad0b53bab433897bae9d10dee 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/base_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import glob import os import random diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py index 664a817a95578eb561834a5e36658e0981fd5686..1a46a99dcd1b7918f42b609d96588b3d528fb000 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/era5_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Scarlet Stadtler,Michael Langguth" diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py index fd2e975cf5bd83e7c342d7effbead68c1063498a..2cec9ce73d9e4238125eace4fafc24e7f9db47f1 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/google_robot_dataset.py @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# Google Inc. +# +# SPDX-License-Identifier: MIT +# SPDX-License-Identifier: Creative Commons Attribution 4.0 International License + import itertools import os @@ -5,9 +11,6 @@ from .base_dataset import VideoDataset class GoogleRobotVideoDataset(VideoDataset): - """ - https://sites.google.com/site/brainrobotdata/home/push-dataset - """ def __init__(self, *args, **kwargs): super(GoogleRobotVideoDataset, self).__init__(*args, **kwargs) self.state_like_names_and_shapes['images'] = 'move/%d/image/encoded', (512, 640, 3) diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py index 40df33aaaf82d4764d8b0d55c8a1bed55131e963..a5560cf9e8ed9e51cd7e8d0cdefe5a584c7f5b13 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/kth_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py b/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py index adfdf06539174a78be375fa1f2416dade078a1c5..b3b2e63baffeed58978543dc283788503b1197be 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/moving_mnist.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Karim" diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py index 2ed072297a7c853b2b389d7c1816885743bad0cf..22e0804f63cc88759037d110528f2ee909c9dd80 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/sv2p_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import itertools import os diff --git a/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py b/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py index 4273728e257207318aa91a1c0b1673f14ff7f159..adbd02974914ab92234c53511e5c10b50a8d3efe 100644 --- a/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py +++ b/video_prediction_tools/model_modules/video_prediction/datasets/ucf101_dataset.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import argparse import glob import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/flow_ops.py b/video_prediction_tools/model_modules/video_prediction/flow_ops.py index caf9bad772621d6fbbf8a28895f16d03bed0561a..43d4e3bbbacfff82548a38887e369106cfa4bef8 100644 --- a/video_prediction_tools/model_modules/video_prediction/flow_ops.py +++ b/video_prediction_tools/model_modules/video_prediction/flow_ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017 Simon Meister +# +# SPDX-License-Identifier: MIT + import tensorflow as tf @@ -9,8 +13,6 @@ def image_warp(im, flow): flow: Batch of flow vectors. [num_batch, height, width, 2] Returns: warped: transformed image of the same shape as the input image. - - Implementation taken from here: https://github.com/simonmeister/UnFlow """ with tf.variable_scope('image_warp'): diff --git a/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py b/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py index 3d806cb4ad3c195cc7b978fd2819f408edac3ce4..fd743cb9052605e009c8ed0c31c5722d32238dd7 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/BasicConvLSTMCell.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT import tensorflow as tf from .layer_def import * diff --git a/video_prediction_tools/model_modules/video_prediction/layers/__init__.py b/video_prediction_tools/model_modules/video_prediction/layers/__init__.py index 8530ffd70f0899c8d8e0832d0dcd377b78bbe349..ed4edb681f7d32169acc6377b78d5e08a00c3b7c 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/__init__.py @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .normalization import fused_instance_norm diff --git a/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py b/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py index 273b5eaee3cab703841b214ccc09ef190b6dd3ae..925f94c44156f86fe43f168e63b3bb5935c2db04 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/layer_def.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """functions used to construct different architectures """ diff --git a/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py b/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py index fbe0a3d6260366f07971d0198fc73062a73452de..0b2e41ea2ebcef4247cceaa547fc97b73799ccc1 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/mcnet_ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import math import numpy as np import tensorflow as tf diff --git a/video_prediction_tools/model_modules/video_prediction/layers/normalization.py b/video_prediction_tools/model_modules/video_prediction/layers/normalization.py index 2f2a9bb9c0cf41eb7ed10f25e606c06791e0d2a3..e6f79effdb83ec43224dcf808e8d7e7d55fcdc60 100644 --- a/video_prediction_tools/model_modules/video_prediction/layers/normalization.py +++ b/video_prediction_tools/model_modules/video_prediction/layers/normalization.py @@ -1,17 +1,17 @@ -# Copyright 2017 The TensorFlow Authors. All Rights Reserved. +# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# ============================================================================= +# ============================================================================ """Contains the normalization layer classes and their functional aliases.""" from __future__ import absolute_import from __future__ import division diff --git a/video_prediction_tools/model_modules/video_prediction/losses.py b/video_prediction_tools/model_modules/video_prediction/losses.py index 0f5c07d1ab521cd21ac4bc63ba208217e4b1f493..999257560ac1fae8b306692391d49b6122c3ce9e 100644 --- a/video_prediction_tools/model_modules/video_prediction/losses.py +++ b/video_prediction_tools/model_modules/video_prediction/losses.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf from model_modules.video_prediction.ops import sigmoid_kl_with_logits diff --git a/video_prediction_tools/model_modules/video_prediction/metrics.py b/video_prediction_tools/model_modules/video_prediction/metrics.py index 5b31919a89dfa881940dc3ab991047c146cbf8bb..991e295f2008cac0fd8f29a4806725bbf95d9dce 100644 --- a/video_prediction_tools/model_modules/video_prediction/metrics.py +++ b/video_prediction_tools/model_modules/video_prediction/metrics.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf #import lpips_tf import math diff --git a/video_prediction_tools/model_modules/video_prediction/models/__init__.py b/video_prediction_tools/model_modules/video_prediction/models/__init__.py index 71efd602d60e9a043533d3f964f63d6177cfadf7..5da12f01af9f183a68131cc283a5241ae4408e5b 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/__init__.py +++ b/video_prediction_tools/model_modules/video_prediction/models/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from .base_model import BaseVideoPredictionModel from .base_model import VideoPredictionModel from .non_trainable_model import NonTrainableVideoPredictionModel diff --git a/video_prediction_tools/model_modules/video_prediction/models/base_model.py b/video_prediction_tools/model_modules/video_prediction/models/base_model.py index 81b608495aac53615cf24f62ca4375702091bd75..2637f81e01529ec5152a5c958296997863e35512 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/base_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/base_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import functools import itertools import os diff --git a/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py b/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py index acd08cd8d6a17a602763a6d5a670cd839c61aab4..daab8d9b72f8340941b78b2b9f4237f11ffcd238 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/convLSTM_GAN_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong,Yanji" __date__ = "2021-04-13" diff --git a/video_prediction_tools/model_modules/video_prediction/models/dna_model.py b/video_prediction_tools/model_modules/video_prediction/models/dna_model.py index 8badf600f62c21d71cd81d8c2bfcde2f75e91d34..6568a13f24d684d2c85a402ea36ce3b8fcd3617b 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/dna_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/dna_model.py @@ -1,17 +1,7 @@ # Copyright 2016 The TensorFlow Authors All Rights Reserved. +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== +# SPDX-License-Identifier: MIT """Model architecture for predictive model, including CDNA, DNA, and STP.""" diff --git a/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py b/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py index 2c755417c27bca22b2a20dc6816add43f160c5a6..80a49160159840ec6219d0d5a488d676c7257d67 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/mcnet_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" __date__ = "2020-08-22" diff --git a/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py b/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py index a81f4631e3edde6efcfc807403ed9b061762e4c3..1e6b6f40bb2ee3a386ba7b3e4845fde85896792f 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py +++ b/video_prediction_tools/model_modules/video_prediction/models/model_helpers.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Michael Langguth" __date__ = "2021-20-05" @@ -25,4 +29,4 @@ def set_and_check_pred_frames(seq_length, context_frames): return seq_length - context_frames else: raise ValueError("%{0}: Sequence length ({1}) must be larger than context frames ({2})." - .format(method, seq_length, context_frames)) \ No newline at end of file + .format(method, seq_length, context_frames)) diff --git a/video_prediction_tools/model_modules/video_prediction/models/networks.py b/video_prediction_tools/model_modules/video_prediction/models/networks.py index db372ea396daed58e995fd6f7f947ef79670a26a..0ac98a34648992886519438e48536c4bf0d0bef9 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/networks.py +++ b/video_prediction_tools/model_modules/video_prediction/models/networks.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import tensorflow as tf from tensorflow.python.util import nest diff --git a/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py b/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py index cdab65c145cc99d7df261f685c65ed2588e989c0..a0b7839ed25c6e1197ac4db50e10622920d228cf 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/non_trainable_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + from collections import OrderedDict from tensorflow.python.util import nest from model_modules.video_prediction.utils.tf_utils import transpose_batch_time diff --git a/video_prediction_tools/model_modules/video_prediction/models/savp_model.py b/video_prediction_tools/model_modules/video_prediction/models/savp_model.py index 5b817106a9f4e8e4a91c7c6b7027765636411e94..eba740e2af9ececfb507719d259665e7cbfe7a47 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/savp_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/savp_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import collections import functools import itertools diff --git a/video_prediction_tools/model_modules/video_prediction/models/test_model.py b/video_prediction_tools/model_modules/video_prediction/models/test_model.py index 98b902f411aeff172563ca23e35ec1347cb127cf..f63689877b6bc6d5449cf43ead4c68aa9934eec6 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/test_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/test_model.py @@ -1,4 +1,6 @@ - +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" diff --git a/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py b/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py index 5c949c96a4f849d82143e80878bb59d8f6661965..a9e59e7584e563dd8b173337b6c91c01f9a6ffbe 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/vanilla_convLSTM_model.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong, Scarlet Stadtler,Michael Langguth" __date__ = "2020-11-05" diff --git a/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py b/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py index ae965cfb6a844de10b3b4987df292ee1cb6c027e..5365bcb8c3c6e739bb2ba6ae04813e361e297921 100644 --- a/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py +++ b/video_prediction_tools/model_modules/video_prediction/models/vanilla_vae_model.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT __email__ = "b.gong@fz-juelich.de" __author__ = "Bing Gong" diff --git a/video_prediction_tools/model_modules/video_prediction/ops.py b/video_prediction_tools/model_modules/video_prediction/ops.py index 7e41af95c2941f610235c7fa5744d326d333418d..74d922dbb59039eed6080f1e6c0fb13c94c561cd 100644 --- a/video_prediction_tools/model_modules/video_prediction/ops.py +++ b/video_prediction_tools/model_modules/video_prediction/ops.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import numpy as np import tensorflow as tf diff --git a/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py b/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py index 724933f7e1057e2e0b6174401021e6941bda5959..e9ff2c34bf19a5b0b784c0b853fe88a5a0c6cc72 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/ffmpeg_gif.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import os import numpy as np diff --git a/video_prediction_tools/model_modules/video_prediction/utils/html.py b/video_prediction_tools/model_modules/video_prediction/utils/html.py index 4334f87b56446c238d5fd15a34ecebef889e003b..a920523f6ba49d2bcda7c037a327ebaa49ff0060 100755 --- a/video_prediction_tools/model_modules/video_prediction/utils/html.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/html.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import os import dominate diff --git a/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py b/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py index 7bad0131218f02e96d0e39132bc0d677547041da..e4f2129eadaf5973130c1aa2f1262ab9cf96a036 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/mcnet_utils.py @@ -1,6 +1,7 @@ -""" -Some codes from https://github.com/Newmu/dcgan_code -""" +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# SPDX-FileCopyrightText: 2015 Alec Radford +# +# SPDX-License-Identifier: MIT import cv2 import random diff --git a/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py b/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py index 415275e8f909560cab725ecae38bb37a01809244..7933e40ef1a0b51869c1833e763c6861ed18f38f 100644 --- a/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py +++ b/video_prediction_tools/model_modules/video_prediction/utils/tf_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + import itertools import os from collections import OrderedDict diff --git a/video_prediction_tools/postprocess/plot_ambs_forecast.py b/video_prediction_tools/postprocess/plot_ambs_forecast.py index 2ba385eb5b90f2da2e8e114656a3ec899bebb7c3..1ba2a7b2f4f3ffe0c5c591e4f0f8aecbcb614a35 100644 --- a/video_prediction_tools/postprocess/plot_ambs_forecast.py +++ b/video_prediction_tools/postprocess/plot_ambs_forecast.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + +# !/usr/bin/env python # coding: utf-8 """ diff --git a/video_prediction_tools/postprocess/postprocess_plotting.py b/video_prediction_tools/postprocess/postprocess_plotting.py index 27758b75599ce83b944a91caed8b5a13c0631a43..354e0d5c3992d696a39764bb760174826b690cb7 100644 --- a/video_prediction_tools/postprocess/postprocess_plotting.py +++ b/video_prediction_tools/postprocess/postprocess_plotting.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Collection of functions to create plots """ diff --git a/video_prediction_tools/postprocess/statistical_evaluation.py b/video_prediction_tools/postprocess/statistical_evaluation.py index 96cf4a47070bd6dc36f9d5cf51c577271385a7e1..7469ee61284a25aa61d8f0ed0517403cd7534fc9 100644 --- a/video_prediction_tools/postprocess/statistical_evaluation.py +++ b/video_prediction_tools/postprocess/statistical_evaluation.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Collection of auxiliary functions for statistical evaluation and class for Score-functions """ diff --git a/video_prediction_tools/utils/external_function.py b/video_prediction_tools/utils/external_function.py index 690d1804d591a69c7f38f1d485912bf8f4e705fe..32f72637eb85c6a79724dd61277f2bec4cb66285 100644 --- a/video_prediction_tools/utils/external_function.py +++ b/video_prediction_tools/utils/external_function.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + #from mpi4py import MPI from os import walk import os diff --git a/video_prediction_tools/utils/general_utils.py b/video_prediction_tools/utils/general_utils.py index 83ed526bac9c960229a30585be61606cbf527317..64000ee95e1708ed6442947ce08f800e4e8c9526 100644 --- a/video_prediction_tools/utils/general_utils.py +++ b/video_prediction_tools/utils/general_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Some auxilary routines which may are used throughout the project. Provides: * get_unique_vars diff --git a/video_prediction_tools/utils/metadata.py b/video_prediction_tools/utils/metadata.py index 98c096f36a16c83f97e6a15867537c4b29d7aee1..403ce5555bc643229b17f5e84b811386beb22a9a 100644 --- a/video_prediction_tools/utils/metadata.py +++ b/video_prediction_tools/utils/metadata.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class to retrieve and handle meta-data """ diff --git a/video_prediction_tools/utils/netcdf_datahandling.py b/video_prediction_tools/utils/netcdf_datahandling.py index a54ce027ea560bf3966a708325ce375bc17acb30..a885a398defa4666ae693c4335d79f7e2b13c783 100644 --- a/video_prediction_tools/utils/netcdf_datahandling.py +++ b/video_prediction_tools/utils/netcdf_datahandling.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Classes to handle netCDF-data files and to extract gridded data on a subdomain (e.g. used for handling ERA5-reanalysis data) diff --git a/video_prediction_tools/utils/normalization.py b/video_prediction_tools/utils/normalization.py index e3ad06164a39b9dd3676d518e908b003af55f364..250b93056aec8ad3154bcaf59b5379cf75b2b7b1 100644 --- a/video_prediction_tools/utils/normalization.py +++ b/video_prediction_tools/utils/normalization.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class for normalizing data. The statistical data for normalization (minimum, maximum, average, standard deviation etc.) is expected to be available from a statistics-dictionary created with the calc_data_stat-class (see 'process_netCDF_v2.py'. diff --git a/video_prediction_tools/utils/runscript_generator/config_extraction.py b/video_prediction_tools/utils/runscript_generator/config_extraction.py index febd67a3b192136758d06084c1c7ad10fd4301bf..6d322e29b9e96b7ce6697381a5ce242bcdea9594 100755 --- a/video_prediction_tools/utils/runscript_generator/config_extraction.py +++ b/video_prediction_tools/utils/runscript_generator/config_extraction.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the data extraction runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_postprocess.py b/video_prediction_tools/utils/runscript_generator/config_postprocess.py index 7423e1f9ebf077727079071009ccc227432c598d..eff2694bbd1dc381726e54bb4fb46bf0af5ddb4c 100755 --- a/video_prediction_tools/utils/runscript_generator/config_postprocess.py +++ b/video_prediction_tools/utils/runscript_generator/config_postprocess.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the postprocessing runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py b/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py index 025a203b5bd7bc038239a95afea003938b811734..c0d66695d8199f86f488bafc4f87714e21a1d87a 100755 --- a/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py +++ b/video_prediction_tools/utils/runscript_generator/config_preprocess_step1.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the preprocessing step 1 runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py b/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py index 6df24f28448df5d780ebf5f1ddb8c0f01888c6db..144ac1d9398fe6acdf3f4089eedd2a988070fc8e 100755 --- a/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py +++ b/video_prediction_tools/utils/runscript_generator/config_preprocess_step2.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the preprocessing step 2 runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_training.py b/video_prediction_tools/utils/runscript_generator/config_training.py index c37c6262fc412e1fd74d4b11e7c698ba793e215c..a224148fd370023a90f87fa35f399af01c5ee230 100755 --- a/video_prediction_tools/utils/runscript_generator/config_training.py +++ b/video_prediction_tools/utils/runscript_generator/config_training.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Child class used for configuring the training runscript of the workflow. """ diff --git a/video_prediction_tools/utils/runscript_generator/config_utils.py b/video_prediction_tools/utils/runscript_generator/config_utils.py index d54aafb1285c9250352854c0dab672fa7632220b..eb4d3119a89b8dcce8bd3afde00176e20843f6cf 100755 --- a/video_prediction_tools/utils/runscript_generator/config_utils.py +++ b/video_prediction_tools/utils/runscript_generator/config_utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Parent class which contains some basic atributes and methods shared by all subclasses which are used to configure the runscripts of dedicated workflow steps (done by config_runscript.py). diff --git a/video_prediction_tools/utils/runscript_generator/configurations.py b/video_prediction_tools/utils/runscript_generator/configurations.py index 669d5c5f0f67ec83f9cb4ae7cbb13add0fd5d718..c5663bdcb4acebcec36def048c66df38ff3c3d3b 100644 --- a/video_prediction_tools/utils/runscript_generator/configurations.py +++ b/video_prediction_tools/utils/runscript_generator/configurations.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Auxiliary functions that are used in config_runscript.py. They are used for facilating the customized conversion of the preprocessing step 2- and training runscript-templates diff --git a/video_prediction_tools/utils/shiftgrid.py b/video_prediction_tools/utils/shiftgrid.py index 081e0985743de69cc5e75142dafb7004199ea8f2..9e5ac082e99a5b41e0c632a97063a51cd14208db 100644 --- a/video_prediction_tools/utils/shiftgrid.py +++ b/video_prediction_tools/utils/shiftgrid.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """shiftgrid function from mpl_toolkitsbasemap v1.1.0 This function was copied here to avoid the hassle of importing basemap. """ diff --git a/video_prediction_tools/utils/statistics.py b/video_prediction_tools/utils/statistics.py index ea537fd4928a8d6ff9019e8cafff24a6b60413ce..c23a2fc9ecf291dd5cd72fccc9e9c338e9a42c11 100644 --- a/video_prediction_tools/utils/statistics.py +++ b/video_prediction_tools/utils/statistics.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2021 Earth System Data Exploration (ESDE), Jülich Supercomputing Center (JSC) +# +# SPDX-License-Identifier: MIT + """ Class to calculate and save statistics in the ambs-workflow parallelized by PyStager. In addition to savin the statistics in json-files, it also comprises methods to read those files.