From 6476dc9dc2650fe1979db983b60725542de2dd9b Mon Sep 17 00:00:00 2001 From: Francesco Paci Date: Tue, 8 Jun 2021 11:29:04 +0200 Subject: [PATCH] updated lincese in files --- Makefile | 17 +++++++++++++---- README.md | 2 +- main.c | 3 +-- model_decl.mk | 6 +++++- model_rules.mk | 2 +- python_scripts/anchors.py | 16 ++++++++++++++++ python_scripts/script_detection.py | 16 ++++++++++++++++ 7 files changed, 53 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 1c5e815..e600976 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,17 @@ -# Copyright (C) 2017 GreenWaves Technologies -# All rights reserved. +# Copyright 2021 GreenWaves Technologies, SAS +# +# 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. -# This software may be modified and distributed under the terms -# of the BSD license. See the LICENSE file for details. ifndef GAP_SDK_HOME $(error Source sourceme in gap_sdk first) diff --git a/README.md b/README.md index 3938ed7..5852867 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a repository showing Blaze Face face detector + Facial Landmarks on GAP Processors. -The tflite file is take from Media Pipe Repository. +The tflite file comes from (Media Pipe Repository)[https://google.github.io/mediapipe/solutions/face_detection.html]. The build command is: diff --git a/main.c b/main.c index 024124e..b776a83 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,5 @@ /* - * Copyright 2019 GreenWaves Technologies, SAS + * Copyright 2021 GreenWaves Technologies, SAS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ #include "face_detection_front.h" #include "post_process.h" - /* Defines */ #define NUM_CLASSES 2 #define AT_INPUT_SIZE (AT_INPUT_WIDTH*AT_INPUT_HEIGHT*AT_INPUT_COLORS) diff --git a/model_decl.mk b/model_decl.mk index a609f38..af7d30f 100644 --- a/model_decl.mk +++ b/model_decl.mk @@ -1,9 +1,13 @@ -# Copyright (C) 2017 GreenWaves Technologies +# Copyright (C) 2021 GreenWaves Technologies # All rights reserved. # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. +# The training of the model is slightly different depending on +# the quantization. This is because in 8 bit mode we used signed +# 8 bit so the input to the model needs to be shifted 1 bit + MODEL_SUFFIX?= MODEL_PREFIX?=GapFlow diff --git a/model_rules.mk b/model_rules.mk index a76e13d..672d15e 100644 --- a/model_rules.mk +++ b/model_rules.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2017 GreenWaves Technologies +# Copyright (C) 2021 GreenWaves Technologies # All rights reserved. # This software may be modified and distributed under the terms diff --git a/python_scripts/anchors.py b/python_scripts/anchors.py index 5063a0b..2c45aa3 100644 --- a/python_scripts/anchors.py +++ b/python_scripts/anchors.py @@ -1,3 +1,19 @@ +""" + Copyright (C) 2021 GreenWaves Technologies + + 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. +""" + from collections import namedtuple Anchor = namedtuple('Anchor', ['center_x', 'center_y', 'width', 'height']) diff --git a/python_scripts/script_detection.py b/python_scripts/script_detection.py index 4d379e1..78afc0a 100644 --- a/python_scripts/script_detection.py +++ b/python_scripts/script_detection.py @@ -1,3 +1,19 @@ +""" + Copyright (C) 2021 GreenWaves Technologies + + 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. +""" + import sys import argparse from pathlib import Path