diff --git a/apps/multistick_cpp/cpp/run.cpp b/apps/multistick_cpp/cpp/run.cpp deleted file mode 100644 index 3101514a..00000000 --- a/apps/multistick_cpp/cpp/run.cpp +++ /dev/null @@ -1,222 +0,0 @@ -#include -#include - -#define STB_IMAGE_IMPLEMENTATION -#include "stb_image.h" - -#define STB_IMAGE_RESIZE_IMPLEMENTATION -#include "stb_image_resize.h" - -#include "fp16.h" -#include - - -// somewhat arbitrary buffer size for the device name -#define NAME_SIZE 100 - -// graph file name - assume we are running in this directory: ncsdk/examples/caffe/GoogLeNet/cpp -#define GRAPH_FILE_NAME "../graph" - -// image file name - assume we are running in this directory: ncsdk/examples/caffe/GoogLeNet/cpp -#define IMAGE_FILE_NAME "../../../data/images/nps_electric_guitar.png" - - -// 16 bits. will use this to store half precision floats since C++ has no -// built in support for it. -typedef unsigned short half; - -// GoogleNet image dimensions, network mean values for each channel in BGR order. -const int networkDim = 224; -float networkMean[] = {0.40787054*255.0, 0.45752458*255.0, 0.48109378*255.0}; - -// Load a graph file -// caller must free the buffer returned. -void *LoadFile(const char *path, unsigned int *length) -{ - FILE *fp; - char *buf; - - fp = fopen(path, "rb"); - if(fp == NULL) - return 0; - fseek(fp, 0, SEEK_END); - *length = ftell(fp); - rewind(fp); - if(!(buf = (char*) malloc(*length))) - { - fclose(fp); - return 0; - } - if(fread(buf, 1, *length, fp) != *length) - { - fclose(fp); - free(buf); - return 0; - } - fclose(fp); - return buf; -} - - -half *LoadImage(const char *path, int reqsize, float *mean) -{ - int width, height, cp, i; - unsigned char *img, *imgresized; - float *imgfp32; - half *imgfp16; - - img = stbi_load(path, &width, &height, &cp, 3); - if(!img) - { - printf("The picture %s could not be loaded\n", path); - return 0; - } - imgresized = (unsigned char*) malloc(3*reqsize*reqsize); - if(!imgresized) - { - free(img); - perror("malloc"); - return 0; - } - stbir_resize_uint8(img, width, height, 0, imgresized, reqsize, reqsize, 0, 3); - free(img); - imgfp32 = (float*) malloc(sizeof(*imgfp32) * reqsize * reqsize * 3); - if(!imgfp32) - { - free(imgresized); - perror("malloc"); - return 0; - } - for(i = 0; i < reqsize * reqsize * 3; i++) - imgfp32[i] = imgresized[i]; - free(imgresized); - imgfp16 = (half*) malloc(sizeof(*imgfp16) * reqsize * reqsize * 3); - if(!imgfp16) - { - free(imgfp32); - perror("malloc"); - return 0; - } - for(i = 0; i < reqsize*reqsize; i++) - { - float blue, green, red; - blue = imgfp32[3*i+2]; - green = imgfp32[3*i+1]; - red = imgfp32[3*i+0]; - - imgfp32[3*i+0] = blue-mean[0]; - imgfp32[3*i+1] = green-mean[1]; - imgfp32[3*i+2] = red-mean[2]; - - // uncomment to see what values are getting passed to mvncLoadTensor() before conversion to half float - //printf("Blue: %f, Grean: %f, Red: %f \n", imgfp32[3*i+0], imgfp32[3*i+1], imgfp32[3*i+2]); - } - floattofp16((unsigned char *)imgfp16, imgfp32, 3*reqsize*reqsize); - free(imgfp32); - return imgfp16; -} - - -int main(int argc, char** argv) -{ - mvncStatus retCode; - void *deviceHandle; - char devName[NAME_SIZE]; - retCode = mvncGetDeviceName(0, devName, NAME_SIZE); - if (retCode != MVNC_OK) - { // failed to get device name, maybe none plugged in. - printf("No NCS devices found\n"); - exit(-1); - } - - // Try to open the NCS device via the device name - retCode = mvncOpenDevice(devName, &deviceHandle); - if (retCode != MVNC_OK) - { // failed to open the device. - printf("Could not open NCS device\n"); - exit(-1); - } - - // deviceHandle is ready to use now. - // Pass it to other NC API calls as needed and close it when finished. - printf("Successfully opened NCS device!\n"); - - // Now read in a graph file - unsigned int graphFileLen; - void* graphFileBuf = LoadFile(GRAPH_FILE_NAME, &graphFileLen); - - // allocate the graph - void* graphHandle; - retCode = mvncAllocateGraph(deviceHandle, &graphHandle, graphFileBuf, graphFileLen); - if (retCode != MVNC_OK) - { // error allocating graph - printf("Could not allocate graph for file: %s\n", GRAPH_FILE_NAME); - printf("Error from mvncAllocateGraph is: %d\n", retCode); - } - else - { // successfully allocated graph. Now graphHandle is ready to go. - // use graphHandle for other API calls and call mvncDeallocateGraph - // when done with it. - printf("Successfully allocated graph for %s\n", GRAPH_FILE_NAME); - - // LoadImage will read image from disk, convert channels to floats - // subtract network mean for each value in each channel. Then, convert - // floats to half precision floats and return pointer to the buffer - // of half precision floats (Fp16s) - half* imageBufFp16 = LoadImage(IMAGE_FILE_NAME, networkDim, networkMean); - - // calculate the length of the buffer that contains the half precision floats. - // 3 channels * width * height * sizeof a 16bit float - unsigned int lenBufFp16 = 3*networkDim*networkDim*sizeof(*imageBufFp16); - - // start the inference with mvncLoadTensor() - retCode = mvncLoadTensor(graphHandle, imageBufFp16, lenBufFp16, NULL); - if (retCode != MVNC_OK) - { // error loading tensor - printf("Could not load tensor\n"); - printf("Error from mvncLoadTensor is: %d\n", retCode); - } - else - { // the inference has been started, now call mvncGetResult() for the - // inference result - printf("Successfully loaded the tensor for image %s\n", IMAGE_FILE_NAME); - - void* resultData16; - void* userParam; - unsigned int lenResultData; - retCode = mvncGetResult(graphHandle, &resultData16, &lenResultData, &userParam); - if (retCode == MVNC_OK) - { // Successfully got the result. The inference result is in the buffer pointed to by resultData - printf("Successfully got the inference result for image %s\n", IMAGE_FILE_NAME); - printf("resultData is %d bytes which is %d 16-bit floats.\n", lenResultData, lenResultData/(int)sizeof(half)); - - // convert half precision floats to full floats - int numResults = lenResultData / sizeof(half); - float* resultData32; - resultData32 = (float*)malloc(numResults * sizeof(*resultData32)); - fp16tofloat(resultData32, (unsigned char*)resultData16, numResults); - - float maxResult = 0.0; - int maxIndex = -1; - for (int index = 0; index < numResults; index++) - { - // printf("Category %d is: %f\n", index, resultData32[index]); - if (resultData32[index] > maxResult) - { - maxResult = resultData32[index]; - maxIndex = index; - } - } - printf("Index of top result is: %d\n", maxIndex); - printf("Probability of top result is: %f\n", resultData32[maxIndex]); - } - } - - retCode = mvncDeallocateGraph(graphHandle); - graphHandle = NULL; - } - - free(graphFileBuf); - retCode = mvncCloseDevice(deviceHandle); - deviceHandle = NULL; -} diff --git a/apps/multistick_cpp/cpp/run_cpp b/apps/multistick_cpp/cpp/run_cpp deleted file mode 100644 index a19ec8f4..00000000 Binary files a/apps/multistick_cpp/cpp/run_cpp and /dev/null differ diff --git a/apps/multistick_cpp/readme.md b/apps/multistick_cpp/readme.md index 6705cfb4..44905200 100644 --- a/apps/multistick_cpp/readme.md +++ b/apps/multistick_cpp/readme.md @@ -22,6 +22,22 @@ After building the example you can run the example code by doing the following : When the application runs normally and is able to connect to the NCS device the output will be similar to this: +~~~ +--- NCS 1 inference --- +Successfully loaded the tensor for image ../../../data/images/nps_electric_guitar.png +Successfully got the inference result for image ../../../data/images/nps_electric_guitar.png +Index of top result is: 546 +Probability of top result is: 0.994141 +----------------------- + +--- NCS 2 inference --- +Successfully loaded the tensor for image ../../../data/images/nps_baseball.png +Successfully got the inference result for image ../../../data/images/nps_baseball.png +Index of top result is: 429 +Probability of top result is: 1.000000 +----------------------- + +~~~ diff --git a/apps/stream_infer/stream_infer.py b/apps/stream_infer/stream_infer.py index 4ea5af0d..84da6446 100644 --- a/apps/stream_infer/stream_infer.py +++ b/apps/stream_infer/stream_infer.py @@ -1,4 +1,8 @@ -#!/usr/bin/python3 +#! /usr/bin/python3 + +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + # Python script to start a USB camera and feed frames to # the Movidius Neural Compute Stick that is loaded with a # CNN graph file and report the inferred results diff --git a/caffe/AgeNet/run.py b/caffe/AgeNet/run.py index df13f1c8..37d54b5b 100644 --- a/caffe/AgeNet/run.py +++ b/caffe/AgeNet/run.py @@ -1,5 +1,8 @@ #! /usr/bin/env python3 +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + from mvnc import mvncapi as mvnc import sys import numpy diff --git a/caffe/AlexNet/cpp/LICENSES/numpy.txt b/caffe/AlexNet/cpp/LICENSES/numpy.txt new file mode 100644 index 00000000..24a28057 --- /dev/null +++ b/caffe/AlexNet/cpp/LICENSES/numpy.txt @@ -0,0 +1,48 @@ +LIBRARY NAME: +NumPy + +LIBRARY DESCRIPTION: +NumPy is the fundamental package for scientific computing with Python. It contains among other things: + +a powerful N-dimensional array object +sophisticated (broadcasting) functions +tools for integrating C/C++ and Fortran code +useful linear algebra, Fourier transform, and random number capabilities +Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. + +NumPy is licensed under the BSD license, enabling reuse with few restrictions. + +HOMEPAGE: +http://www.numpy.org/ + +LICENSE: +Copyright (c) 2005-2017, NumPy Developers. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of the NumPy Developers nor the names of any + 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 +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/caffe/AlexNet/cpp/LICENSES/stb_image.txt b/caffe/AlexNet/cpp/LICENSES/stb_image.txt new file mode 100644 index 00000000..d36b174f --- /dev/null +++ b/caffe/AlexNet/cpp/LICENSES/stb_image.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image - v2.15 - public domain image loader + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/AlexNet/cpp/LICENSES/stb_image_resize.txt b/caffe/AlexNet/cpp/LICENSES/stb_image_resize.txt new file mode 100644 index 00000000..a56b77f1 --- /dev/null +++ b/caffe/AlexNet/cpp/LICENSES/stb_image_resize.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image_resize - v0.94 - public domain image resizing by Jorge L Rodriguez (@VinoBS) + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image_resize.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/AlexNet/cpp/run.cpp b/caffe/AlexNet/cpp/run.cpp index 16fddc9f..b302ea8b 100644 --- a/caffe/AlexNet/cpp/run.cpp +++ b/caffe/AlexNet/cpp/run.cpp @@ -1,18 +1,5 @@ -// Copyright 2017 Intel Corporation. -// The source code, information and material ("Material") contained herein is -// owned by Intel Corporation or its suppliers or licensors, and title to such -// Material remains with Intel Corporation or its suppliers or licensors. -// The Material contains proprietary information of Intel or its suppliers and -// licensors. The Material is protected by worldwide copyright laws and treaty -// provisions. -// No part of the Material may be used, copied, reproduced, modified, published, -// uploaded, posted, transmitted, distributed or disclosed in any way without -// Intel's prior express written permission. No license under any patent, -// copyright or other intellectual property rights in the Material is granted to -// or conferred upon you, either expressly, by implication, inducement, estoppel -// or otherwise. -// Any license under such intellectual property rights must be express and -// approved by Intel in writing. +// Copyright(c) 2017 Intel Corporation. +// License: MIT See LICENSE file in root directory. #include #include diff --git a/caffe/AlexNet/run.py b/caffe/AlexNet/run.py index e948803b..6ea319c6 100644 --- a/caffe/AlexNet/run.py +++ b/caffe/AlexNet/run.py @@ -1,20 +1,7 @@ #! /usr/bin/env python3 -# Copyright 2017 Intel Corporation. -# The source code, information and material ("Material") contained herein is -# owned by Intel Corporation or its suppliers or licensors, and title to such -# Material remains with Intel Corporation or its suppliers or licensors. -# The Material contains proprietary information of Intel or its suppliers and -# licensors. The Material is protected by worldwide copyright laws and treaty -# provisions. -# No part of the Material may be used, copied, reproduced, modified, published, -# uploaded, posted, transmitted, distributed or disclosed in any way without -# Intel's prior express written permission. No license under any patent, -# copyright or other intellectual property rights in the Material is granted to -# or conferred upon you, either expressly, by implication, inducement, estoppel -# or otherwise. -# Any license under such intellectual property rights must be express and -# approved by Intel in writing. +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. from mvnc import mvncapi as mvnc import sys diff --git a/caffe/GenderNet/run.py b/caffe/GenderNet/run.py index 7bdd9032..adda5331 100644 --- a/caffe/GenderNet/run.py +++ b/caffe/GenderNet/run.py @@ -1,5 +1,8 @@ #! /usr/bin/env python3 +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + from mvnc import mvncapi as mvnc import sys import numpy diff --git a/caffe/GoogLeNet/cpp/LICENSES/numpy.txt b/caffe/GoogLeNet/cpp/LICENSES/numpy.txt new file mode 100644 index 00000000..24a28057 --- /dev/null +++ b/caffe/GoogLeNet/cpp/LICENSES/numpy.txt @@ -0,0 +1,48 @@ +LIBRARY NAME: +NumPy + +LIBRARY DESCRIPTION: +NumPy is the fundamental package for scientific computing with Python. It contains among other things: + +a powerful N-dimensional array object +sophisticated (broadcasting) functions +tools for integrating C/C++ and Fortran code +useful linear algebra, Fourier transform, and random number capabilities +Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. + +NumPy is licensed under the BSD license, enabling reuse with few restrictions. + +HOMEPAGE: +http://www.numpy.org/ + +LICENSE: +Copyright (c) 2005-2017, NumPy Developers. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of the NumPy Developers nor the names of any + 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 +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/caffe/GoogLeNet/cpp/LICENSES/stb_image.txt b/caffe/GoogLeNet/cpp/LICENSES/stb_image.txt new file mode 100644 index 00000000..d36b174f --- /dev/null +++ b/caffe/GoogLeNet/cpp/LICENSES/stb_image.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image - v2.15 - public domain image loader + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/GoogLeNet/cpp/LICENSES/stb_image_resize.txt b/caffe/GoogLeNet/cpp/LICENSES/stb_image_resize.txt new file mode 100644 index 00000000..a56b77f1 --- /dev/null +++ b/caffe/GoogLeNet/cpp/LICENSES/stb_image_resize.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image_resize - v0.94 - public domain image resizing by Jorge L Rodriguez (@VinoBS) + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image_resize.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/GoogLeNet/cpp/run.cpp b/caffe/GoogLeNet/cpp/run.cpp index 62b23cd9..355b9bad 100644 --- a/caffe/GoogLeNet/cpp/run.cpp +++ b/caffe/GoogLeNet/cpp/run.cpp @@ -1,18 +1,5 @@ -// Copyright 2017 Intel Corporation. -// The source code, information and material ("Material") contained herein is -// owned by Intel Corporation or its suppliers or licensors, and title to such -// Material remains with Intel Corporation or its suppliers or licensors. -// The Material contains proprietary information of Intel or its suppliers and -// licensors. The Material is protected by worldwide copyright laws and treaty -// provisions. -// No part of the Material may be used, copied, reproduced, modified, published, -// uploaded, posted, transmitted, distributed or disclosed in any way without -// Intel's prior express written permission. No license under any patent, -// copyright or other intellectual property rights in the Material is granted to -// or conferred upon you, either expressly, by implication, inducement, estoppel -// or otherwise. -// Any license under such intellectual property rights must be express and -// approved by Intel in writing. +// Copyright(c) 2017 Intel Corporation. +// License: MIT See LICENSE file in root directory. #include #include diff --git a/caffe/GoogLeNet/run.py b/caffe/GoogLeNet/run.py index b61a3f02..e81b6e73 100644 --- a/caffe/GoogLeNet/run.py +++ b/caffe/GoogLeNet/run.py @@ -1,20 +1,8 @@ #! /usr/bin/env python3 -# Copyright 2017 Intel Corporation. -# The source code, information and material ("Material") contained herein is -# owned by Intel Corporation or its suppliers or licensors, and title to such -# Material remains with Intel Corporation or its suppliers or licensors. -# The Material contains proprietary information of Intel or its suppliers and -# licensors. The Material is protected by worldwide copyright laws and treaty -# provisions. -# No part of the Material may be used, copied, reproduced, modified, published, -# uploaded, posted, transmitted, distributed or disclosed in any way without -# Intel's prior express written permission. No license under any patent, -# copyright or other intellectual property rights in the Material is granted to -# or conferred upon you, either expressly, by implication, inducement, estoppel -# or otherwise. -# Any license under such intellectual property rights must be express and -# approved by Intel in writing. +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + from mvnc import mvncapi as mvnc import sys diff --git a/caffe/SqueezeNet/cpp/LICENSES/numpy.txt b/caffe/SqueezeNet/cpp/LICENSES/numpy.txt new file mode 100644 index 00000000..24a28057 --- /dev/null +++ b/caffe/SqueezeNet/cpp/LICENSES/numpy.txt @@ -0,0 +1,48 @@ +LIBRARY NAME: +NumPy + +LIBRARY DESCRIPTION: +NumPy is the fundamental package for scientific computing with Python. It contains among other things: + +a powerful N-dimensional array object +sophisticated (broadcasting) functions +tools for integrating C/C++ and Fortran code +useful linear algebra, Fourier transform, and random number capabilities +Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. + +NumPy is licensed under the BSD license, enabling reuse with few restrictions. + +HOMEPAGE: +http://www.numpy.org/ + +LICENSE: +Copyright (c) 2005-2017, NumPy Developers. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of the NumPy Developers nor the names of any + 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 +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/caffe/SqueezeNet/cpp/LICENSES/stb_image.txt b/caffe/SqueezeNet/cpp/LICENSES/stb_image.txt new file mode 100644 index 00000000..d36b174f --- /dev/null +++ b/caffe/SqueezeNet/cpp/LICENSES/stb_image.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image - v2.15 - public domain image loader + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/SqueezeNet/cpp/LICENSES/stb_image_resize.txt b/caffe/SqueezeNet/cpp/LICENSES/stb_image_resize.txt new file mode 100644 index 00000000..a56b77f1 --- /dev/null +++ b/caffe/SqueezeNet/cpp/LICENSES/stb_image_resize.txt @@ -0,0 +1,28 @@ +LIBRARY NAME: +stb_image_resize - v0.94 - public domain image resizing by Jorge L Rodriguez (@VinoBS) + +LIBRARY DESCRIPTION: +Single-file public domain (or MIT licensed) libraries for C/C++. +Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen, stb_image_resize by Jorge L. "VinoBS" Rodriguez, and stb_sprintf by Jeff Roberts. + +HOMEPAGE: +https://github.com/nothings/stb/blob/master/stb_image_resize.h + +LICENSE: +Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. \ No newline at end of file diff --git a/caffe/SqueezeNet/cpp/run.cpp b/caffe/SqueezeNet/cpp/run.cpp index 16fddc9f..59eb5d50 100644 --- a/caffe/SqueezeNet/cpp/run.cpp +++ b/caffe/SqueezeNet/cpp/run.cpp @@ -1,18 +1,5 @@ -// Copyright 2017 Intel Corporation. -// The source code, information and material ("Material") contained herein is -// owned by Intel Corporation or its suppliers or licensors, and title to such -// Material remains with Intel Corporation or its suppliers or licensors. -// The Material contains proprietary information of Intel or its suppliers and -// licensors. The Material is protected by worldwide copyright laws and treaty -// provisions. -// No part of the Material may be used, copied, reproduced, modified, published, -// uploaded, posted, transmitted, distributed or disclosed in any way without -// Intel's prior express written permission. No license under any patent, -// copyright or other intellectual property rights in the Material is granted to -// or conferred upon you, either expressly, by implication, inducement, estoppel -// or otherwise. -// Any license under such intellectual property rights must be express and -// approved by Intel in writing. +// Copyright(c) 2017 Intel Corporation. +// License: MIT See LICENSE file in root directory. #include #include diff --git a/caffe/SqueezeNet/run.py b/caffe/SqueezeNet/run.py index 9e61940a..e2c52837 100644 --- a/caffe/SqueezeNet/run.py +++ b/caffe/SqueezeNet/run.py @@ -1,20 +1,8 @@ #! /usr/bin/env python3 -# Copyright 2017 Intel Corporation. -# The source code, information and material ("Material") contained herein is -# owned by Intel Corporation or its suppliers or licensors, and title to such -# Material remains with Intel Corporation or its suppliers or licensors. -# The Material contains proprietary information of Intel or its suppliers and -# licensors. The Material is protected by worldwide copyright laws and treaty -# provisions. -# No part of the Material may be used, copied, reproduced, modified, published, -# uploaded, posted, transmitted, distributed or disclosed in any way without -# Intel's prior express written permission. No license under any patent, -# copyright or other intellectual property rights in the Material is granted to -# or conferred upon you, either expressly, by implication, inducement, estoppel -# or otherwise. -# Any license under such intellectual property rights must be express and -# approved by Intel in writing. +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + from mvnc import mvncapi as mvnc import sys diff --git a/tensorflow/inception_v1/inception-v1.py b/tensorflow/inception_v1/inception-v1.py index 124df7ba..54d9e936 100644 --- a/tensorflow/inception_v1/inception-v1.py +++ b/tensorflow/inception_v1/inception-v1.py @@ -1,5 +1,8 @@ #! /usr/bin/env python3 +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + import numpy as np import tensorflow as tf diff --git a/tensorflow/inception_v1/run.py b/tensorflow/inception_v1/run.py index 30afa697..85de3900 100644 --- a/tensorflow/inception_v1/run.py +++ b/tensorflow/inception_v1/run.py @@ -1,20 +1,7 @@ #! /usr/bin/env python3 -# Copyright 2017 Intel Corporation. -# The source code, information and material ("Material") contained herein is -# owned by Intel Corporation or its suppliers or licensors, and title to such -# Material remains with Intel Corporation or its suppliers or licensors. -# The Material contains proprietary information of Intel or its suppliers and -# licensors. The Material is protected by worldwide copyright laws and treaty -# provisions. -# No part of the Material may be used, copied, reproduced, modified, published, -# uploaded, posted, transmitted, distributed or disclosed in any way without -# Intel's prior express written permission. No license under any patent, -# copyright or other intellectual property rights in the Material is granted to -# or conferred upon you, either expressly, by implication, inducement, estoppel -# or otherwise. -# Any license under such intellectual property rights must be express and -# approved by Intel in writing. +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. from mvnc import mvncapi as mvnc import sys diff --git a/tensorflow/inception_v3/inception-v3.py b/tensorflow/inception_v3/inception-v3.py index 42c186b5..e950d2d1 100644 --- a/tensorflow/inception_v3/inception-v3.py +++ b/tensorflow/inception_v3/inception-v3.py @@ -1,5 +1,8 @@ #! /usr/bin/env python3 +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. + import numpy as np import tensorflow as tf diff --git a/tensorflow/inception_v3/run.py b/tensorflow/inception_v3/run.py index 56758b2e..7266d3f9 100644 --- a/tensorflow/inception_v3/run.py +++ b/tensorflow/inception_v3/run.py @@ -1,20 +1,7 @@ #! /usr/bin/env python3 -# Copyright 2017 Intel Corporation. -# The source code, information and material ("Material") contained herein is -# owned by Intel Corporation or its suppliers or licensors, and title to such -# Material remains with Intel Corporation or its suppliers or licensors. -# The Material contains proprietary information of Intel or its suppliers and -# licensors. The Material is protected by worldwide copyright laws and treaty -# provisions. -# No part of the Material may be used, copied, reproduced, modified, published, -# uploaded, posted, transmitted, distributed or disclosed in any way without -# Intel's prior express written permission. No license under any patent, -# copyright or other intellectual property rights in the Material is granted to -# or conferred upon you, either expressly, by implication, inducement, estoppel -# or otherwise. -# Any license under such intellectual property rights must be express and -# approved by Intel in writing. +# Copyright(c) 2017 Intel Corporation. +# License: MIT See LICENSE file in root directory. from mvnc import mvncapi as mvnc import sys