Skip to content

Commit

Permalink
updated lincese in files
Browse files Browse the repository at this point in the history
  • Loading branch information
Pafrak committed Jun 8, 2021
1 parent ac261f3 commit 6476dc9
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 9 deletions.
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 1 addition & 2 deletions main.c
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion model_decl.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion model_rules.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 16 additions & 0 deletions python_scripts/anchors.py
Original file line number Diff line number Diff line change
@@ -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'])
Expand Down
16 changes: 16 additions & 0 deletions python_scripts/script_detection.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6476dc9

Please sign in to comment.