From 7eeb9dcefbecf242159868743ff41b34fe5c4ca2 Mon Sep 17 00:00:00 2001 From: vraidu Date: Wed, 25 Sep 2024 11:56:55 +0530 Subject: [PATCH] Resolve QuIC Repolinter issue: Copyright and licences updated. --- .../ExampleInstrumentedTest.java | 7 ++- .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../app/src/main/cpp/native-lib.cpp | 5 ++ .../ASRHelper.java | 51 ++----------------- .../MainActivity.java | 7 ++- .../app/src/main/python/model.py | 5 ++ .../ExampleUnitTest.java | 7 ++- .../class/CustomHardsigmoid.py | 5 ++ .../class/CustomHardswish.py | 5 ++ .../generatedModels/getModel.py | 5 ++ .../scripts/bash_fun_device.sh | 5 ++ .../selu_cpp_implementation/Selu.cpp | 5 ++ QHCI/hvx_cv/qhci_api_generator.py | 5 ++ QHCI/hvx_cv/src/FFT16_16/cpu/FFT16_16.cpp | 5 ++ QHCI/hvx_cv/src/FFT16_16/dsp/hexagon_hvx.h | 4 ++ QHCI/hvx_cv/src/FFT16_16/dsp/rfft16x16_asm.S | 4 ++ QHCI/hvx_cv/src/base/cpu/QhciBase.hpp | 5 ++ QHCI/hvx_cv/src/div16/cpu/div16.cpp | 5 ++ .../hvx_cv/src/div16/dsp/div_fractional_asm.S | 4 ++ .../src/div16/dsp/div_integer_denome0_asm.S | 4 ++ .../src/div16/dsp/div_integer_signed_asm.S | 5 ++ QHCI/hvx_cv/src/dummy/cpu/dummy.cpp | 5 ++ .../src/gaussian5x5/cpu/gaussian5x5.cpp | 5 ++ .../dsp/gaussian5x5_C_intrinsics.c | 5 ++ QHCI/hvx_cv/src/matmul/cpu/matmul.cpp | 5 ++ QHCI/hvx_cv/src/rgb2yuv/cpu/rgb2yuv.cpp | 5 ++ .../htpoppackage/qhci/src/ops/InputPack.cpp | 5 ++ .../htpoppackage/qhci/src/qhciInterface.cpp | 5 ++ QHCI/qnn_udo/InputPack/run_qnn_2_12.sh | 5 ++ QHCI/qnn_udo/InputPack/udo_generate.py | 5 ++ .../src/RandomNormalLikeInterface.cpp | 5 ++ .../src/ops/RandomNormalLike.cpp | 5 ++ .../src/RandomNormalLikeInterface.cpp | 5 ++ .../src/ops/RandomNormalLike.cpp | 5 ++ .../bert/src/main/cpp/inc/hpp/inference.h | 5 ++ .../bert/src/main/cpp/inference.cpp | 5 ++ .../bert/src/main/cpp/inference_helper.cpp | 5 ++ .../bert/src/main/cpp/native-lib.cpp | 5 ++ .../ExampleInstrumentedTest.java | 7 ++- .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../app/src/main/cpp/native-lib.cpp | 5 ++ .../qti/sentimentanalysis/MainActivity.java | 7 ++- .../sentimentanalysis/ExampleUnitTest.java | 7 ++- .../ExampleInstrumentedTest.java | 7 ++- .../app/src/main/cpp/dr_wav.h | 27 ++++++++++ .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../app/src/main/cpp/input_features.h | 27 ++++++++++ .../app/src/main/cpp/native-lib_pre_post.cpp | 34 ++++++++++++- .../app/src/main/cpp/whisper.h | 26 ++++++++++ .../MainActivity.java | 7 ++- .../TFLiteInference.java | 5 ++ .../ExampleUnitTest.java | 7 ++- .../app/src/main/cpp/DETR.cpp | 5 ++ .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../main/java/com/qc/DETR/CameraFragment.java | 17 +++++++ .../main/java/com/qc/DETR/FragmentRender.java | 5 ++ .../main/java/com/qc/DETR/MainActivity.java | 20 +++++++- .../main/java/com/qc/DETR/RectangleBox.java | 5 ++ .../src/main/java/com/qc/DETR/SNPEHelper.java | 5 ++ .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../src/main/cpp/objectdetectionYoloNas.cpp | 5 ++ .../CameraFragment.java | 17 +++++++ .../FragmentRender.java | 5 ++ .../objectdetectionYoloNas/MainActivity.java | 20 +++++++- .../objectdetectionYoloNas/RectangleBox.java | 5 ++ .../qc/objectdetectionYoloNas/SNPEHelper.java | 7 ++- .../com/qc/objectdetection/BitmapUtility.java | 5 ++ .../qc/objectdetection/CameraFragment.java | 17 +++++++ .../qc/objectdetection/FragmentRender.java | 5 ++ .../com/qc/objectdetection/MainActivity.java | 20 +++++++- .../com/qc/objectdetection/RectangleBox.java | 5 ++ .../com/qc/objectdetection/SNPEHelper.java | 5 ++ .../qcom/imagesuperres/ModelConstants.java | 6 +++ .../qcom/imagesuperres/PrePostProcess.java | 6 +++ .../java/com/qcom/imagesuperres/Result.java | 6 +++ .../com/qcom/imagesuperres/SNPEActivity.java | 5 ++ .../qcom/imagesuperres/SuperResolution.java | 5 ++ .../imagesuperres/SuperResolutionResult.java | 6 +++ .../java/com/qcom/enhancement/EnhancOps.java | 5 ++ .../com/qcom/enhancement/EnhancedResults.java | 4 ++ .../com/qcom/enhancement/ModelConstants.java | 5 ++ .../com/qcom/enhancement/PrePostProcess.java | 5 ++ .../java/com/qcom/enhancement/Result.java | 5 ++ .../com/qcom/enhancement/SNPEActivity.java | 5 ++ .../app/src/main/cpp/inc/hpp/inference.h | 5 ++ .../app/src/main/cpp/inference.cpp | 5 ++ .../app/src/main/cpp/inference_helper.cpp | 5 ++ .../app/src/main/cpp/posedetectionYoloNAS.cpp | 5 ++ .../posedetectionYoloNAS/BitmapUtility.java | 5 ++ .../posedetectionYoloNAS/CameraFragment.java | 17 +++++++ .../posedetectionYoloNAS/FragmentRender.java | 5 ++ .../qc/posedetectionYoloNAS/MainActivity.java | 20 +++++++- .../qc/posedetectionYoloNAS/RectangleBox.java | 5 ++ .../qc/posedetectionYoloNAS/SNPEHelper.java | 5 ++ .../pysnpe_utils/asset_manager.py | 5 ++ .../pysnpe_utils/pysnpe_utils/dlc_executor.py | 5 ++ .../pysnpe_utils/dlc_generator.py | 5 ++ .../pysnpe_utils/env_setup_checker.py | 6 +++ Tools/pysnpe_utils/pysnpe_utils/exec_utils.py | 5 ++ .../pysnpe_utils/logger_config.py | 5 ++ .../pysnpe_utils/modelio/HrnetIO.py | 5 ++ .../pysnpe_utils/modelio/MidasIO.py | 5 ++ .../pysnpe_utils/modelio/MobilenetIO.py | 5 ++ .../pysnpe_utils/modelio/ModelIO.py | 5 ++ .../pysnpe_utils/modelio/composer.py | 5 ++ Tools/pysnpe_utils/pysnpe_utils/pysnpe.py | 5 ++ .../pysnpe_utils/pysnpe_utils/pysnpe_enums.py | 5 ++ Tools/pysnpe_utils/tests/test_pysnpe.py | 5 ++ Tools/pysnpe_utils/tests/test_targetdevice.py | 5 ++ .../tutorials/bertLarge_tf_semanticSearch.py | 5 ++ .../detr_onnx_panopticSegmentation.py | 5 ++ .../esrgan_tflite_imageSuperResolution.py | 5 ++ .../midasV2_onnx_monocularDepthEstimation.py | 5 ++ .../multiHeadAttention_onnx_nnModule.py | 5 ++ .../resnet50_tf_imagenetClassifier.py | 5 ++ ...squeezenet_torch_imagenetClassification.py | 5 ++ .../tinyBert_tf_sentimentAnalysis.py | 5 ++ 127 files changed, 841 insertions(+), 62 deletions(-) diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java index 32080ac..02ed06c 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; import android.content.Context; @@ -23,4 +28,4 @@ public void useAppContext() { Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.automatic_speech_recognition", appContext.getPackageName()); } -} \ No newline at end of file +} diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inc/hpp/inference.h b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inc/hpp/inference.h index 6998d95..e0194a9 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inc/hpp/inference.h +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference.cpp b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference.cpp index e989cc4..ba73c69 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference.cpp +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference_helper.cpp b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference_helper.cpp index 7843359..86417b7 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference_helper.cpp +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/native-lib.cpp b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/native-lib.cpp index 8568073..0e41050 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/native-lib.cpp +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/cpp/native-lib.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/ASRHelper.java b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/ASRHelper.java index 4d8a314..4552021 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/ASRHelper.java +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/ASRHelper.java @@ -1,50 +1,7 @@ -/* Copyright 2019 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 - -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. -==============================================================================*/ - -/* Changes from QuIC are provided under the following license: - -Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -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. - -SPDX-License-Identifier: BSD-3-Clause -==============================================================================*/ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ package com.example.automatic_speech_recognition; diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java index 2d9b4a5..c83e782 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; @@ -239,4 +244,4 @@ private void stopRecording() { } } -} \ No newline at end of file +} diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/python/model.py b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/python/model.py index f06a3ff..81c8758 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/python/model.py +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/main/python/model.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import os import torch import numpy as np diff --git a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java index 8d813cd..b895140 100644 --- a/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java +++ b/Examples/Python-ASR-wav2vec2/automatic_speech_recognition_android_app/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; import org.junit.Test; @@ -14,4 +19,4 @@ public class ExampleUnitTest { public void addition_isCorrect() { assertEquals(4, 2 + 2); } -} \ No newline at end of file +} diff --git a/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardsigmoid.py b/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardsigmoid.py index 8825c16..6dd5e7f 100644 --- a/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardsigmoid.py +++ b/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardsigmoid.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + class CustomHardsigmoid(Module): __constants__ = ['inplace'] inplace: bool diff --git a/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardswish.py b/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardswish.py index 3390182..fa94122 100644 --- a/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardswish.py +++ b/Model-Enablement/Model-Conversion-Layer-Replacement/class/CustomHardswish.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + class CustomHardswish(Module): __constants__ = ['inplace'] diff --git a/Model-Enablement/Model-Conversion-Layer-Replacement/generatedModels/getModel.py b/Model-Enablement/Model-Conversion-Layer-Replacement/generatedModels/getModel.py index bb34eea..d3b662a 100644 --- a/Model-Enablement/Model-Conversion-Layer-Replacement/generatedModels/getModel.py +++ b/Model-Enablement/Model-Conversion-Layer-Replacement/generatedModels/getModel.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import os import sys import torch diff --git a/Model-Enablement/Model-Conversion-UDO-SELU/scripts/bash_fun_device.sh b/Model-Enablement/Model-Conversion-UDO-SELU/scripts/bash_fun_device.sh index e17f750..751b307 100644 --- a/Model-Enablement/Model-Conversion-UDO-SELU/scripts/bash_fun_device.sh +++ b/Model-Enablement/Model-Conversion-UDO-SELU/scripts/bash_fun_device.sh @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + function sample_fun { export SNPE_TARGET_ARCH="aarch64-android-clang8.0" diff --git a/Model-Enablement/Model-Conversion-UDO-SELU/selu_cpp_implementation/Selu.cpp b/Model-Enablement/Model-Conversion-UDO-SELU/selu_cpp_implementation/Selu.cpp index 2dab0c2..0dacc0f 100644 --- a/Model-Enablement/Model-Conversion-UDO-SELU/selu_cpp_implementation/Selu.cpp +++ b/Model-Enablement/Model-Conversion-UDO-SELU/selu_cpp_implementation/Selu.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for SeluUdoPackage //============================================================================== diff --git a/QHCI/hvx_cv/qhci_api_generator.py b/QHCI/hvx_cv/qhci_api_generator.py index 2abc4e4..0134cf1 100644 --- a/QHCI/hvx_cv/qhci_api_generator.py +++ b/QHCI/hvx_cv/qhci_api_generator.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import os import sys import re diff --git a/QHCI/hvx_cv/src/FFT16_16/cpu/FFT16_16.cpp b/QHCI/hvx_cv/src/FFT16_16/cpu/FFT16_16.cpp index e4ef47d..6b07da1 100644 --- a/QHCI/hvx_cv/src/FFT16_16/cpu/FFT16_16.cpp +++ b/QHCI/hvx_cv/src/FFT16_16/cpu/FFT16_16.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #include diff --git a/QHCI/hvx_cv/src/FFT16_16/dsp/hexagon_hvx.h b/QHCI/hvx_cv/src/FFT16_16/dsp/hexagon_hvx.h index 9ce40c2..f204356 100644 --- a/QHCI/hvx_cv/src/FFT16_16/dsp/hexagon_hvx.h +++ b/QHCI/hvx_cv/src/FFT16_16/dsp/hexagon_hvx.h @@ -1,3 +1,7 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ #ifndef __HEXAGON_HVX__ #define __HEXAGON_HVX__ diff --git a/QHCI/hvx_cv/src/FFT16_16/dsp/rfft16x16_asm.S b/QHCI/hvx_cv/src/FFT16_16/dsp/rfft16x16_asm.S index b64addd..71baaaa 100644 --- a/QHCI/hvx_cv/src/FFT16_16/dsp/rfft16x16_asm.S +++ b/QHCI/hvx_cv/src/FFT16_16/dsp/rfft16x16_asm.S @@ -1,3 +1,7 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ .file "rfft16x16.s" diff --git a/QHCI/hvx_cv/src/base/cpu/QhciBase.hpp b/QHCI/hvx_cv/src/base/cpu/QhciBase.hpp index 2c48dc8..4dac27a 100644 --- a/QHCI/hvx_cv/src/base/cpu/QhciBase.hpp +++ b/QHCI/hvx_cv/src/base/cpu/QhciBase.hpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #pragma once #include diff --git a/QHCI/hvx_cv/src/div16/cpu/div16.cpp b/QHCI/hvx_cv/src/div16/cpu/div16.cpp index ddc7c08..ae3e54e 100644 --- a/QHCI/hvx_cv/src/div16/cpu/div16.cpp +++ b/QHCI/hvx_cv/src/div16/cpu/div16.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #define FEATURE_NAME "div16" diff --git a/QHCI/hvx_cv/src/div16/dsp/div_fractional_asm.S b/QHCI/hvx_cv/src/div16/dsp/div_fractional_asm.S index 3a6341f..08f9d46 100644 --- a/QHCI/hvx_cv/src/div16/dsp/div_fractional_asm.S +++ b/QHCI/hvx_cv/src/div16/dsp/div_fractional_asm.S @@ -1,3 +1,7 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ /*___________________________________________________________________________ | | diff --git a/QHCI/hvx_cv/src/div16/dsp/div_integer_denome0_asm.S b/QHCI/hvx_cv/src/div16/dsp/div_integer_denome0_asm.S index 3e78fb3..9652f40 100644 --- a/QHCI/hvx_cv/src/div16/dsp/div_integer_denome0_asm.S +++ b/QHCI/hvx_cv/src/div16/dsp/div_integer_denome0_asm.S @@ -1,3 +1,7 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ /*___________________________________________________________________________ | | diff --git a/QHCI/hvx_cv/src/div16/dsp/div_integer_signed_asm.S b/QHCI/hvx_cv/src/div16/dsp/div_integer_signed_asm.S index a9b965a..0fb8a60 100644 --- a/QHCI/hvx_cv/src/div16/dsp/div_integer_signed_asm.S +++ b/QHCI/hvx_cv/src/div16/dsp/div_integer_signed_asm.S @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + /*___________________________________________________________________________ | | | Function Name : div_integer_signed | diff --git a/QHCI/hvx_cv/src/dummy/cpu/dummy.cpp b/QHCI/hvx_cv/src/dummy/cpu/dummy.cpp index 6b32294..ed1cdd7 100644 --- a/QHCI/hvx_cv/src/dummy/cpu/dummy.cpp +++ b/QHCI/hvx_cv/src/dummy/cpu/dummy.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #define FEATURE_NAME "dummy" diff --git a/QHCI/hvx_cv/src/gaussian5x5/cpu/gaussian5x5.cpp b/QHCI/hvx_cv/src/gaussian5x5/cpu/gaussian5x5.cpp index ac178cf..aa8ac26 100644 --- a/QHCI/hvx_cv/src/gaussian5x5/cpu/gaussian5x5.cpp +++ b/QHCI/hvx_cv/src/gaussian5x5/cpu/gaussian5x5.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #define FEATURE_NAME "gaussian5x5" diff --git a/QHCI/hvx_cv/src/gaussian5x5/dsp/gaussian5x5_C_intrinsics.c b/QHCI/hvx_cv/src/gaussian5x5/dsp/gaussian5x5_C_intrinsics.c index 73cc12d..548682e 100644 --- a/QHCI/hvx_cv/src/gaussian5x5/dsp/gaussian5x5_C_intrinsics.c +++ b/QHCI/hvx_cv/src/gaussian5x5/dsp/gaussian5x5_C_intrinsics.c @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "hexagon_types.h" #include "hexagon_protos.h" // part of Q6 tools, contains intrinsics definitions diff --git a/QHCI/hvx_cv/src/matmul/cpu/matmul.cpp b/QHCI/hvx_cv/src/matmul/cpu/matmul.cpp index 48b53ab..c993d0c 100644 --- a/QHCI/hvx_cv/src/matmul/cpu/matmul.cpp +++ b/QHCI/hvx_cv/src/matmul/cpu/matmul.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #define FEATURE_NAME "matmul" diff --git a/QHCI/hvx_cv/src/rgb2yuv/cpu/rgb2yuv.cpp b/QHCI/hvx_cv/src/rgb2yuv/cpu/rgb2yuv.cpp index 79214c9..3afd0ae 100644 --- a/QHCI/hvx_cv/src/rgb2yuv/cpu/rgb2yuv.cpp +++ b/QHCI/hvx_cv/src/rgb2yuv/cpu/rgb2yuv.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include "QhciBase.hpp" #define FEATURE_NAME "rgb2yuv" diff --git a/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/ops/InputPack.cpp b/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/ops/InputPack.cpp index 642809a..28c56da 100644 --- a/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/ops/InputPack.cpp +++ b/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/ops/InputPack.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for qhci //============================================================================== diff --git a/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/qhciInterface.cpp b/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/qhciInterface.cpp index b0f119d..53a259a 100644 --- a/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/qhciInterface.cpp +++ b/QHCI/qnn_udo/InputPack/htpoppackage/qhci/src/qhciInterface.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for qhci //============================================================================== diff --git a/QHCI/qnn_udo/InputPack/run_qnn_2_12.sh b/QHCI/qnn_udo/InputPack/run_qnn_2_12.sh index 73d4c36..b7d6528 100644 --- a/QHCI/qnn_udo/InputPack/run_qnn_2_12.sh +++ b/QHCI/qnn_udo/InputPack/run_qnn_2_12.sh @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + QUANT_DIR=qnn_libs compile_udo(){ diff --git a/QHCI/qnn_udo/InputPack/udo_generate.py b/QHCI/qnn_udo/InputPack/udo_generate.py index 1fc61bf..7311e80 100644 --- a/QHCI/qnn_udo/InputPack/udo_generate.py +++ b/QHCI/qnn_udo/InputPack/udo_generate.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import numpy as np import onnx from onnx import helper diff --git a/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/RandomNormalLikeInterface.cpp b/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/RandomNormalLikeInterface.cpp index cfcf8ad..f8e7b04 100644 --- a/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/RandomNormalLikeInterface.cpp +++ b/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/RandomNormalLikeInterface.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for RandomNormalLike //============================================================================== diff --git a/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/ops/RandomNormalLike.cpp b/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/ops/RandomNormalLike.cpp index 906b06f..501f297 100644 --- a/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/ops/RandomNormalLike.cpp +++ b/QHCI/qnn_udo/RandomNormalLike/cpu/RandomNormalLike/src/ops/RandomNormalLike.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for RandomNormalLike //============================================================================== diff --git a/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/RandomNormalLikeInterface.cpp b/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/RandomNormalLikeInterface.cpp index 4da80f9..1d7e486 100644 --- a/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/RandomNormalLikeInterface.cpp +++ b/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/RandomNormalLikeInterface.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for RandomNormalLike //============================================================================== diff --git a/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/ops/RandomNormalLike.cpp b/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/ops/RandomNormalLike.cpp index b7749f9..681ba90 100644 --- a/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/ops/RandomNormalLike.cpp +++ b/QHCI/qnn_udo/RandomNormalLike/htp/RandomNormalLike/src/ops/RandomNormalLike.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + //============================================================================== // Auto Generated Code for RandomNormalLike //============================================================================== diff --git a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inc/hpp/inference.h b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inc/hpp/inference.h index ed936fb..6bae56e 100755 --- a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inc/hpp/inference.h +++ b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference.cpp b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference.cpp index d9f989c..148d0cb 100755 --- a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference.cpp +++ b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference_helper.cpp b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference_helper.cpp index d3e1569..1842dec 100755 --- a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference_helper.cpp +++ b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/native-lib.cpp b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/native-lib.cpp index 1887914..263fc1a 100755 --- a/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/native-lib.cpp +++ b/Solutions/NLPSolution1-QuestionAnswering/QuestionAnswering/bert/src/main/cpp/native-lib.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/androidTest/java/com/qualcomm/qti/sentimentanalysis/ExampleInstrumentedTest.java b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/androidTest/java/com/qualcomm/qti/sentimentanalysis/ExampleInstrumentedTest.java index 465d3d8..a6e1256 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/androidTest/java/com/qualcomm/qti/sentimentanalysis/ExampleInstrumentedTest.java +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/androidTest/java/com/qualcomm/qti/sentimentanalysis/ExampleInstrumentedTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qualcomm.qti.sentimentanalysis; import android.content.Context; @@ -23,4 +28,4 @@ public void useAppContext() { Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.qualcomm.qti.sentimentanalysis", appContext.getPackageName()); } -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inc/hpp/inference.h b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inc/hpp/inference.h index dd1fbed..4274d40 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inc/hpp/inference.h +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference.cpp b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference.cpp index 6900165..8fd4a00 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference.cpp +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference_helper.cpp b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference_helper.cpp index 273995a..6c8144d 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference_helper.cpp +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/native-lib.cpp b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/native-lib.cpp index ab9b573..27d8623 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/native-lib.cpp +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/cpp/native-lib.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/java/com/qualcomm/qti/sentimentanalysis/MainActivity.java b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/java/com/qualcomm/qti/sentimentanalysis/MainActivity.java index 8fa9e08..ac08066 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/java/com/qualcomm/qti/sentimentanalysis/MainActivity.java +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/main/java/com/qualcomm/qti/sentimentanalysis/MainActivity.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qualcomm.qti.sentimentanalysis; import androidx.appcompat.app.AppCompatActivity; @@ -225,4 +230,4 @@ public void onTextChanged(CharSequence s, int start, int before, int count){} public native String queryRuntimes(String nativeDirPath); public native String initSNPE(AssetManager assetManager); public native String inferSNPE(String runtime, float[] input_ids, float[] attn_masks, int[] arraySizes); -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/test/java/com/qualcomm/qti/sentimentanalysis/ExampleUnitTest.java b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/test/java/com/qualcomm/qti/sentimentanalysis/ExampleUnitTest.java index a65e7ba..e0bae31 100755 --- a/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/test/java/com/qualcomm/qti/sentimentanalysis/ExampleUnitTest.java +++ b/Solutions/NLPSolution2-SentimentAnalysis/SentimentAnalysis/app/src/test/java/com/qualcomm/qti/sentimentanalysis/ExampleUnitTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qualcomm.qti.sentimentanalysis; import org.junit.Test; @@ -14,4 +19,4 @@ public class ExampleUnitTest { public void addition_isCorrect() { assertEquals(4, 2 + 2); } -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java index 8c5157c..ef9b70e 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/androidTest/java/com/example/automatic_speech_recognition/ExampleInstrumentedTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; import android.content.Context; @@ -23,4 +28,4 @@ public void useAppContext() { Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.example.automatic_speech_recognition", appContext.getPackageName()); } -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/dr_wav.h b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/dr_wav.h index 1ac81c2..f13043a 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/dr_wav.h +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/dr_wav.h @@ -1,3 +1,30 @@ +//============================================================================ +/* + MIT License + + Copyright (c) 2022 usefulsensors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +//============================================================================ + + /* WAV audio loader and writer. Choice of public domain or MIT-0. See license statements at the end of this file. dr_wav - v0.12.16 - 2020-12-02 diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inc/hpp/inference.h b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inc/hpp/inference.h index 07f8099..e829e7c 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inc/hpp/inference.h +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference.cpp b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference.cpp index 7abd1e7..6812914 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference.cpp +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference_helper.cpp b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference_helper.cpp index f20fa10..f9f31b5 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference_helper.cpp +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/input_features.h b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/input_features.h index e385cae..155bd1f 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/input_features.h +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/input_features.h @@ -1,3 +1,30 @@ +//============================================================================ +/* + MIT License + + Copyright (c) 2022 usefulsensors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +//============================================================================ + + #ifndef INPUT_FEATURES_H_ #define INPUT_FEATURES_H_ unsigned char _content_input_features_bin[] = { diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/native-lib_pre_post.cpp b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/native-lib_pre_post.cpp index 6f6adb1..6313668 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/native-lib_pre_post.cpp +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/native-lib_pre_post.cpp @@ -1,3 +1,35 @@ +//============================================================================ +/* + MIT License + + Copyright (c) 2022 usefulsensors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +//============================================================================ + +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + + #include #include @@ -373,4 +405,4 @@ Java_com_example_automatic_1speech_1recognition_MainActivity_Transcribe(JNIEnv * return env->NewStringUTF(text.c_str()); -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/whisper.h b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/whisper.h index 329156a..87af8f4 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/whisper.h +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/cpp/whisper.h @@ -1,3 +1,29 @@ +//============================================================================ +/* + MIT License + + Copyright (c) 2022 usefulsensors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +//============================================================================ + //Courtesy from @ggerganov https://github.com/ggerganov/whisper.cpp #include #include diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java index 61808fd..174fc41 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/MainActivity.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; @@ -493,4 +498,4 @@ private void stopRecording() { private native String loadModelJNI(AssetManager assetManager, int is_recorded, String audio_data, float[] inputFeature, float[] encoder_hidden_state, String runtime); -} \ No newline at end of file +} diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/TFLiteInference.java b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/TFLiteInference.java index 1bfe0f4..109eae7 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/TFLiteInference.java +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/main/java/com/example/automatic_speech_recognition/TFLiteInference.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; diff --git a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java index 586bb95..2c68694 100755 --- a/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java +++ b/Solutions/NLPSolution3-AutomaticSpeechRecognition-Whisper/Android_App_Whisper/app/src/test/java/com/example/automatic_speech_recognition/ExampleUnitTest.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.example.automatic_speech_recognition; import org.junit.Test; @@ -14,4 +19,4 @@ public class ExampleUnitTest { public void addition_isCorrect() { assertEquals(4, 2 + 2); } -} \ No newline at end of file +} diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/DETR.cpp b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/DETR.cpp index 28a281a..83ddec4 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/DETR.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/DETR.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include using namespace cv; #include diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inc/hpp/inference.h b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inc/hpp/inference.h index c0311e7..684d910 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inc/hpp/inference.h +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference.cpp b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference.cpp index 5888d63..0a8db9a 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference_helper.cpp b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference_helper.cpp index 27194a2..08798ba 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference_helper.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/CameraFragment.java b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/CameraFragment.java index 00a8fd2..08ca2b9 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/CameraFragment.java +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/CameraFragment.java @@ -1,3 +1,20 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ package com.qc.DETR; diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/FragmentRender.java b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/FragmentRender.java index 0832b7a..d113d24 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/FragmentRender.java +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/FragmentRender.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.DETR; import android.content.Context; diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/MainActivity.java b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/MainActivity.java index 56edcb1..2b3e21d 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/MainActivity.java +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/MainActivity.java @@ -1,3 +1,21 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ + package com.qc.DETR; import android.Manifest; @@ -101,4 +119,4 @@ protected void onResume() { protected void onStop() { super.onStop(); } -} \ No newline at end of file +} diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/RectangleBox.java b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/RectangleBox.java index 986a07a..415d960 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/RectangleBox.java +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/RectangleBox.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.DETR; import java.util.ArrayList; diff --git a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/SNPEHelper.java b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/SNPEHelper.java index f617253..ca04e22 100755 --- a/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/SNPEHelper.java +++ b/Solutions/VisionSolution1-ObjectDetection-DETR/app/src/main/java/com/qc/DETR/SNPEHelper.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.DETR; import android.app.Application; diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inc/hpp/inference.h b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inc/hpp/inference.h index 82bdf05..bd62829 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inc/hpp/inference.h +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inc/hpp/inference.h @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + // // Created by shubpate on 12/11/2021. // diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference.cpp b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference.cpp index 6b2912b..67037f2 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference_helper.cpp b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference_helper.cpp index df3c9cc..3c96f6f 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference_helper.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/objectdetectionYoloNas.cpp b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/objectdetectionYoloNas.cpp index a4d4705..eaf43db 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/objectdetectionYoloNas.cpp +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/cpp/objectdetectionYoloNas.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include using namespace cv; #include diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/CameraFragment.java b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/CameraFragment.java index 9a5a82e..5b113de 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/CameraFragment.java +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/CameraFragment.java @@ -1,3 +1,20 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ package com.qc.objectdetectionYoloNas; diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/FragmentRender.java b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/FragmentRender.java index 864c3ea..b490a34 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/FragmentRender.java +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/FragmentRender.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.objectdetectionYoloNas; import android.content.Context; diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/MainActivity.java b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/MainActivity.java index e1de9c6..efe4851 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/MainActivity.java +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/MainActivity.java @@ -1,3 +1,21 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ + package com.qc.objectdetectionYoloNas; import android.Manifest; @@ -98,4 +116,4 @@ protected void onResume() { protected void onStop() { super.onStop(); } -} \ No newline at end of file +} diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/RectangleBox.java b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/RectangleBox.java index 95e432a..b6fda0f 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/RectangleBox.java +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/RectangleBox.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.objectdetectionYoloNas; import java.util.ArrayList; diff --git a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/SNPEHelper.java b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/SNPEHelper.java index 8ced68b..471a0ec 100755 --- a/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/SNPEHelper.java +++ b/Solutions/VisionSolution1-ObjectDetection-YoloNas/app/src/main/java/com/qc/objectdetectionYoloNas/SNPEHelper.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.objectdetectionYoloNas; import android.app.Application; @@ -84,4 +89,4 @@ public void snpeInference(Bitmap modelInputBitmap, int fps, ArrayList #include #include diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/inference_helper.cpp b/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/inference_helper.cpp index d41c8e6..729a186 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/inference_helper.cpp +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/inference_helper.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include #include #include diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/posedetectionYoloNAS.cpp b/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/posedetectionYoloNAS.cpp index 72d28cb..5349840 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/posedetectionYoloNAS.cpp +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/cpp/posedetectionYoloNAS.cpp @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + #include using namespace cv; #include diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/BitmapUtility.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/BitmapUtility.java index 78290fc..15fe982 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/BitmapUtility.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/BitmapUtility.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.posedetectionYoloNAS; import android.graphics.Bitmap; diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/CameraFragment.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/CameraFragment.java index 17ee9e6..d46870f 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/CameraFragment.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/CameraFragment.java @@ -1,3 +1,20 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ package com.qc.posedetectionYoloNAS; diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/FragmentRender.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/FragmentRender.java index 95934aa..39cd867 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/FragmentRender.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/FragmentRender.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.posedetectionYoloNAS; import android.content.Context; diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/MainActivity.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/MainActivity.java index 5f1b7d5..dae0ec6 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/MainActivity.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/MainActivity.java @@ -1,3 +1,21 @@ +//============================================================================ +/* + Copyright (C) 2017 The Android Open Source Project + + 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. +*/ +//============================================================================ + package com.qc.posedetectionYoloNAS; import android.Manifest; @@ -98,4 +116,4 @@ protected void onResume() { protected void onStop() { super.onStop(); } -} \ No newline at end of file +} diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/RectangleBox.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/RectangleBox.java index 13499bd..767a063 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/RectangleBox.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/RectangleBox.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.posedetectionYoloNAS; import java.util.ArrayList; diff --git a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/SNPEHelper.java b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/SNPEHelper.java index 010bb8d..c2951d0 100755 --- a/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/SNPEHelper.java +++ b/Solutions/VisionSolution4-PoseEstimation/app/src/main/java/com/qc/posedetectionYoloNAS/SNPEHelper.java @@ -1,3 +1,8 @@ +//============================================================================ +// Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause-Clear +//============================================================================ + package com.qc.posedetectionYoloNAS; import android.app.Application; diff --git a/Tools/pysnpe_utils/pysnpe_utils/asset_manager.py b/Tools/pysnpe_utils/pysnpe_utils/asset_manager.py index f814ed8..a98cd6d 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/asset_manager.py +++ b/Tools/pysnpe_utils/pysnpe_utils/asset_manager.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + from logging import raiseExceptions import os import hashlib diff --git a/Tools/pysnpe_utils/pysnpe_utils/dlc_executor.py b/Tools/pysnpe_utils/pysnpe_utils/dlc_executor.py index 5804b72..c2ee9a6 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/dlc_executor.py +++ b/Tools/pysnpe_utils/pysnpe_utils/dlc_executor.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python Helper Snippets over SNPE-NET_RUN Tool and APIs for Auto DLC Execution """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/dlc_generator.py b/Tools/pysnpe_utils/pysnpe_utils/dlc_generator.py index 8926047..9d5d9c9 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/dlc_generator.py +++ b/Tools/pysnpe_utils/pysnpe_utils/dlc_generator.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python Helper Snippets over SNPE-CONVERTER, QUANTIZER and GRAPH-PREPARE Tool and APIs for Auto DLC Generation, Quantization and DSP caching """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/env_setup_checker.py b/Tools/pysnpe_utils/pysnpe_utils/env_setup_checker.py index 6c7a925..f0cc815 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/env_setup_checker.py +++ b/Tools/pysnpe_utils/pysnpe_utils/env_setup_checker.py @@ -1,3 +1,9 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + + """ SNPE Environment Setup and Sanity Checks for needed dependencies versions. """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/exec_utils.py b/Tools/pysnpe_utils/pysnpe_utils/exec_utils.py index 5bb1e55..7b604c7 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/exec_utils.py +++ b/Tools/pysnpe_utils/pysnpe_utils/exec_utils.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import subprocess import os, platform, sys from typing import List diff --git a/Tools/pysnpe_utils/pysnpe_utils/logger_config.py b/Tools/pysnpe_utils/pysnpe_utils/logger_config.py index e5b7371..a5ead64 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/logger_config.py +++ b/Tools/pysnpe_utils/pysnpe_utils/logger_config.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import logging # Create a logger object diff --git a/Tools/pysnpe_utils/pysnpe_utils/modelio/HrnetIO.py b/Tools/pysnpe_utils/pysnpe_utils/modelio/HrnetIO.py index 14ca0d5..40cd9ce 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/modelio/HrnetIO.py +++ b/Tools/pysnpe_utils/pysnpe_utils/modelio/HrnetIO.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python Helper for Hrnet model pre and post processing """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/modelio/MidasIO.py b/Tools/pysnpe_utils/pysnpe_utils/modelio/MidasIO.py index cd042de..fc6ced5 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/modelio/MidasIO.py +++ b/Tools/pysnpe_utils/pysnpe_utils/modelio/MidasIO.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python Helper for Midas model pre and post processing """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/modelio/MobilenetIO.py b/Tools/pysnpe_utils/pysnpe_utils/modelio/MobilenetIO.py index 054ab8a..c2a044b 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/modelio/MobilenetIO.py +++ b/Tools/pysnpe_utils/pysnpe_utils/modelio/MobilenetIO.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python Helper for Mobilenet model pre and post processing """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/modelio/ModelIO.py b/Tools/pysnpe_utils/pysnpe_utils/modelio/ModelIO.py index d2a79ff..b4424b7 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/modelio/ModelIO.py +++ b/Tools/pysnpe_utils/pysnpe_utils/modelio/ModelIO.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ ModelIO abstract class having preprocess and postprocess methods needs to be implement for any new model. """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/modelio/composer.py b/Tools/pysnpe_utils/pysnpe_utils/modelio/composer.py index 68dbc8e..0e04865 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/modelio/composer.py +++ b/Tools/pysnpe_utils/pysnpe_utils/modelio/composer.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python helper for misc utility like clickfromcamera using adb """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/pysnpe.py b/Tools/pysnpe_utils/pysnpe_utils/pysnpe.py index 4614b55..6d5ca6f 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/pysnpe.py +++ b/Tools/pysnpe_utils/pysnpe_utils/pysnpe.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + """ Python API wrapper over SNPE Tools and APIs for Auto DLC Generation, its Execution, Easy Integration and On-Device Prototyping of your DNN project. """ diff --git a/Tools/pysnpe_utils/pysnpe_utils/pysnpe_enums.py b/Tools/pysnpe_utils/pysnpe_utils/pysnpe_enums.py index d6bcdcd..7d127d3 100755 --- a/Tools/pysnpe_utils/pysnpe_utils/pysnpe_enums.py +++ b/Tools/pysnpe_utils/pysnpe_utils/pysnpe_enums.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + from enum import Enum from typing import Tuple, Union import numpy as np diff --git a/Tools/pysnpe_utils/tests/test_pysnpe.py b/Tools/pysnpe_utils/tests/test_pysnpe.py index 8040204..a6aa8eb 100755 --- a/Tools/pysnpe_utils/tests/test_pysnpe.py +++ b/Tools/pysnpe_utils/tests/test_pysnpe.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import os import pytest from icecream import ic diff --git a/Tools/pysnpe_utils/tests/test_targetdevice.py b/Tools/pysnpe_utils/tests/test_targetdevice.py index 7959fcc..925431c 100755 --- a/Tools/pysnpe_utils/tests/test_targetdevice.py +++ b/Tools/pysnpe_utils/tests/test_targetdevice.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import pytest from ppadb.client import Client as AdbClient from icecream import ic diff --git a/Tools/pysnpe_utils/tutorials/bertLarge_tf_semanticSearch.py b/Tools/pysnpe_utils/tutorials/bertLarge_tf_semanticSearch.py index f95c9fd..d4b31c9 100755 --- a/Tools/pysnpe_utils/tutorials/bertLarge_tf_semanticSearch.py +++ b/Tools/pysnpe_utils/tutorials/bertLarge_tf_semanticSearch.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + from transformers import TFAutoModel, AutoTokenizer from pysnpe_utils import pysnpe from pysnpe_utils.pysnpe_enums import * diff --git a/Tools/pysnpe_utils/tutorials/detr_onnx_panopticSegmentation.py b/Tools/pysnpe_utils/tutorials/detr_onnx_panopticSegmentation.py index 23fdc61..01bcda5 100755 --- a/Tools/pysnpe_utils/tutorials/detr_onnx_panopticSegmentation.py +++ b/Tools/pysnpe_utils/tutorials/detr_onnx_panopticSegmentation.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + # Reference: # https://colab.research.google.com/github/facebookresearch/detr/blob/colab/notebooks/DETR_panoptic.ipynb#scrollTo=-5ytUV_qsVhL diff --git a/Tools/pysnpe_utils/tutorials/esrgan_tflite_imageSuperResolution.py b/Tools/pysnpe_utils/tutorials/esrgan_tflite_imageSuperResolution.py index dd87fdd..daed5df 100755 --- a/Tools/pysnpe_utils/tutorials/esrgan_tflite_imageSuperResolution.py +++ b/Tools/pysnpe_utils/tutorials/esrgan_tflite_imageSuperResolution.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import sys, io, os import numpy as np import requests diff --git a/Tools/pysnpe_utils/tutorials/midasV2_onnx_monocularDepthEstimation.py b/Tools/pysnpe_utils/tutorials/midasV2_onnx_monocularDepthEstimation.py index 6afae69..8cfd254 100755 --- a/Tools/pysnpe_utils/tutorials/midasV2_onnx_monocularDepthEstimation.py +++ b/Tools/pysnpe_utils/tutorials/midasV2_onnx_monocularDepthEstimation.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + # !pip install timm import cv2 import torch diff --git a/Tools/pysnpe_utils/tutorials/multiHeadAttention_onnx_nnModule.py b/Tools/pysnpe_utils/tutorials/multiHeadAttention_onnx_nnModule.py index 896811c..3c48a1a 100755 --- a/Tools/pysnpe_utils/tutorials/multiHeadAttention_onnx_nnModule.py +++ b/Tools/pysnpe_utils/tutorials/multiHeadAttention_onnx_nnModule.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import torch import torch.nn as nn diff --git a/Tools/pysnpe_utils/tutorials/resnet50_tf_imagenetClassifier.py b/Tools/pysnpe_utils/tutorials/resnet50_tf_imagenetClassifier.py index 9be9eed..dced9a4 100755 --- a/Tools/pysnpe_utils/tutorials/resnet50_tf_imagenetClassifier.py +++ b/Tools/pysnpe_utils/tutorials/resnet50_tf_imagenetClassifier.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import numpy as np from tensorflow.keras.applications import ResNet50 from tensorflow.keras.preprocessing import image diff --git a/Tools/pysnpe_utils/tutorials/squeezenet_torch_imagenetClassification.py b/Tools/pysnpe_utils/tutorials/squeezenet_torch_imagenetClassification.py index b068459..cef7442 100755 --- a/Tools/pysnpe_utils/tutorials/squeezenet_torch_imagenetClassification.py +++ b/Tools/pysnpe_utils/tutorials/squeezenet_torch_imagenetClassification.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import torchvision.models as models import torch from torchvision import transforms diff --git a/Tools/pysnpe_utils/tutorials/tinyBert_tf_sentimentAnalysis.py b/Tools/pysnpe_utils/tutorials/tinyBert_tf_sentimentAnalysis.py index a078936..f68ddfd 100755 --- a/Tools/pysnpe_utils/tutorials/tinyBert_tf_sentimentAnalysis.py +++ b/Tools/pysnpe_utils/tutorials/tinyBert_tf_sentimentAnalysis.py @@ -1,3 +1,8 @@ +#============================================================================ +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause-Clear +#============================================================================ + import os os.environ["TOKENIZERS_PARALLELISM"] = "false"