From 4b44ba26a4baeff675a82f325b6b255652219bfd Mon Sep 17 00:00:00 2001 From: Microsoft Open Source Date: Fri, 24 Jan 2020 12:15:29 -0800 Subject: [PATCH] microsoft oss compliance --- CONTRIBUTING.md | 15 +++++++++++++++ README.md | 16 +--------------- airsim/__init__.py | 3 +++ airsim/client.py | 3 +++ airsim/pfm.py | 4 +++- airsim/types.py | 3 +++ airsim/utils.py | 3 +++ evaluation/average_fids.py | 3 +++ evaluation/generate_heatmap.py | 3 +++ evaluation/get_avg_fid.sh | 3 +++ evaluation/get_coverage_results.py | 3 +++ evaluation/get_fid.py | 3 +++ evaluation/plot_loss_per_episodes_graph.py | 3 +++ evaluation/plot_loss_per_layers_graph.py | 3 +++ evaluation/plot_samples.py | 3 +++ evaluation/store_drive_random.py | 3 +++ evaluation/train_decoder_episodes.sh | 3 +++ evaluation/train_restoration_episodes.sh | 3 +++ methods/imitation_learning/drive.py | 3 +++ methods/imitation_learning/model.py | 3 +++ methods/imitation_learning/train.py | 3 +++ methods/vae/model.py | 3 +++ methods/vae/predict.py | 3 +++ methods/vae/train.py | 3 +++ methods/vae/train_decoder.py | 3 +++ methods/visceral_model/model.py | 3 +++ methods/visceral_model/test.py | 3 +++ methods/visceral_model/train.py | 3 +++ setup_path.py | 3 +++ utils/coverage_map.py | 3 +++ utils/import_data.py | 3 +++ utils/record_cam_driving.py | 3 +++ utils/record_cam_random.py | 3 +++ utils/shift_steering.py | 3 +++ 34 files changed, 112 insertions(+), 16 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..3c4a4d7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,15 @@ +# Contributing + +This project welcomes contributions and suggestions. Most contributions require you to +agree to a Contributor License Agreement (CLA) declaring that you have the right to, +and actually do, grant us the rights to use your contribution. For details, visit +https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether you need +to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the +instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + diff --git a/README.md b/README.md index 8a839b4..74dd9eb 100644 --- a/README.md +++ b/README.md @@ -104,18 +104,4 @@ If this repository helped you in your research, please consider citing: ### Acknowledgments -We thank the subjects that helped us creating the dataset for the affect-based reward model, and the rest of the team for the help with the simulation and the experiments. - -### Contributing - -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. - -When you submit a pull request, a CLA bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +We thank the subjects that helped us creating the dataset for the affect-based reward model, and the rest of the team for the help with the simulation and the experiments. \ No newline at end of file diff --git a/airsim/__init__.py b/airsim/__init__.py index 4e89c22..2e51bb2 100644 --- a/airsim/__init__.py +++ b/airsim/__init__.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from .client import * from .utils import * from .types import * diff --git a/airsim/client.py b/airsim/client.py index 24ee9a8..36c60e6 100644 --- a/airsim/client.py +++ b/airsim/client.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import print_function from .utils import * diff --git a/airsim/pfm.py b/airsim/pfm.py index d3acbd8..6209f7b 100644 --- a/airsim/pfm.py +++ b/airsim/pfm.py @@ -1,10 +1,12 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import numpy as np import matplotlib.pyplot as plt import re import sys import pdb - def read_pfm(file): """ Read a pfm file """ file = open(file, 'rb') diff --git a/airsim/types.py b/airsim/types.py index af46031..bcc62f3 100644 --- a/airsim/types.py +++ b/airsim/types.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import print_function import msgpackrpc #install as admin: pip install msgpack-rpc-python import numpy as np #pip install numpy diff --git a/airsim/utils.py b/airsim/utils.py index 8e8533e..ae5b89d 100644 --- a/airsim/utils.py +++ b/airsim/utils.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import numpy as np #pip install numpy import math import time diff --git a/evaluation/average_fids.py b/evaluation/average_fids.py index d8e0d15..4dfb378 100644 --- a/evaluation/average_fids.py +++ b/evaluation/average_fids.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/evaluation/generate_heatmap.py b/evaluation/generate_heatmap.py index 7c5d2ae..51ca28a 100644 --- a/evaluation/generate_heatmap.py +++ b/evaluation/generate_heatmap.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import argparse import pandas as pd diff --git a/evaluation/get_avg_fid.sh b/evaluation/get_avg_fid.sh index 6bd1e9d..e1baded 100644 --- a/evaluation/get_avg_fid.sh +++ b/evaluation/get_avg_fid.sh @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + #!/bin/bash task="con_rgb" diff --git a/evaluation/get_coverage_results.py b/evaluation/get_coverage_results.py index 3d26432..5248300 100644 --- a/evaluation/get_coverage_results.py +++ b/evaluation/get_coverage_results.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import argparse import pandas as pd diff --git a/evaluation/get_fid.py b/evaluation/get_fid.py index 6f7f12b..cbcb44b 100644 --- a/evaluation/get_fid.py +++ b/evaluation/get_fid.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/evaluation/plot_loss_per_episodes_graph.py b/evaluation/plot_loss_per_episodes_graph.py index 0972b16..1c3fddf 100644 --- a/evaluation/plot_loss_per_episodes_graph.py +++ b/evaluation/plot_loss_per_episodes_graph.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import math import argparse diff --git a/evaluation/plot_loss_per_layers_graph.py b/evaluation/plot_loss_per_layers_graph.py index 3131fb4..ae17d50 100644 --- a/evaluation/plot_loss_per_layers_graph.py +++ b/evaluation/plot_loss_per_layers_graph.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import math import argparse diff --git a/evaluation/plot_samples.py b/evaluation/plot_samples.py index d2d228e..b28f0d5 100644 --- a/evaluation/plot_samples.py +++ b/evaluation/plot_samples.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/evaluation/store_drive_random.py b/evaluation/store_drive_random.py index 7feab9e..b695d9c 100644 --- a/evaluation/store_drive_random.py +++ b/evaluation/store_drive_random.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/evaluation/train_decoder_episodes.sh b/evaluation/train_decoder_episodes.sh index 3d3ef74..b268ed1 100644 --- a/evaluation/train_decoder_episodes.sh +++ b/evaluation/train_decoder_episodes.sh @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + #!/bin/bash method="random" diff --git a/evaluation/train_restoration_episodes.sh b/evaluation/train_restoration_episodes.sh index 4c00f0c..68dff77 100644 --- a/evaluation/train_restoration_episodes.sh +++ b/evaluation/train_restoration_episodes.sh @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + #!/bin/bash method="straight" diff --git a/methods/imitation_learning/drive.py b/methods/imitation_learning/drive.py index b7c53d4..98c364f 100644 --- a/methods/imitation_learning/drive.py +++ b/methods/imitation_learning/drive.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/methods/imitation_learning/model.py b/methods/imitation_learning/model.py index 64277da..f8b6767 100644 --- a/methods/imitation_learning/model.py +++ b/methods/imitation_learning/model.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import tensorflow as tf from tensorflow.keras.layers import Dense, Flatten, Conv2D from tensorflow.keras import Model diff --git a/methods/imitation_learning/train.py b/methods/imitation_learning/train.py index 801534a..d8e9a17 100644 --- a/methods/imitation_learning/train.py +++ b/methods/imitation_learning/train.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/methods/vae/model.py b/methods/vae/model.py index c9a9af1..2153d4f 100644 --- a/methods/vae/model.py +++ b/methods/vae/model.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.activations import softplus, relu diff --git a/methods/vae/predict.py b/methods/vae/predict.py index 5073a80..a30eb30 100644 --- a/methods/vae/predict.py +++ b/methods/vae/predict.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/methods/vae/train.py b/methods/vae/train.py index 4196ef4..550ef70 100644 --- a/methods/vae/train.py +++ b/methods/vae/train.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/methods/vae/train_decoder.py b/methods/vae/train_decoder.py index d704d50..4160b35 100644 --- a/methods/vae/train_decoder.py +++ b/methods/vae/train_decoder.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/methods/visceral_model/model.py b/methods/visceral_model/model.py index 655dfbb..4472fad 100644 --- a/methods/visceral_model/model.py +++ b/methods/visceral_model/model.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Dense, Flatten, Conv2D, BatchNormalization, Concatenate diff --git a/methods/visceral_model/test.py b/methods/visceral_model/test.py index d6db3fd..db54d9d 100644 --- a/methods/visceral_model/test.py +++ b/methods/visceral_model/test.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/methods/visceral_model/train.py b/methods/visceral_model/train.py index c6592ed..b4b42e6 100644 --- a/methods/visceral_model/train.py +++ b/methods/visceral_model/train.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.append('.') diff --git a/setup_path.py b/setup_path.py index 362113f..3b308a3 100644 --- a/setup_path.py +++ b/setup_path.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + # Import this module to automatically setup path to local airsim module # This module first tries to see if airsim module is installed via pip # If it does then we don't do anything else diff --git a/utils/coverage_map.py b/utils/coverage_map.py index 484f843..b4ac094 100644 --- a/utils/coverage_map.py +++ b/utils/coverage_map.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/utils/import_data.py b/utils/import_data.py index b1a7bf3..fd82e8e 100644 --- a/utils/import_data.py +++ b/utils/import_data.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import h5py import math diff --git a/utils/record_cam_driving.py b/utils/record_cam_driving.py index d8cca94..ed5a408 100644 --- a/utils/record_cam_driving.py +++ b/utils/record_cam_driving.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/utils/record_cam_random.py b/utils/record_cam_random.py index 965605f..8ff6f30 100644 --- a/utils/record_cam_random.py +++ b/utils/record_cam_random.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import sys sys.path.append('.') import airsim diff --git a/utils/shift_steering.py b/utils/shift_steering.py index 763c0e0..11afad4 100644 --- a/utils/shift_steering.py +++ b/utils/shift_steering.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + import os import argparse