Skip to content

Commit

Permalink
Fix linters issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-treskin committed Jan 19, 2022
1 parent 5ce442d commit 8b0d4a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2020-2021 Intel Corporation
// Copyright (C) 2020-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 1 addition & 2 deletions serverless/common/openvino/model_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -69,4 +68,4 @@ def input_size(self):

@property
def layers(self):
return self._network.layers
return self._network.layers
10 changes: 4 additions & 6 deletions serverless/openvino/omz/intel/face-detection-0205/main.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# Copyright (C) 2020-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

import json
import base64
from PIL import Image
import io
from model_handler import FaceDetectorHandler, AttributesExtractorHandler
import yaml
import debugpy

def init_context(context):
context.logger.info("Init context... 0%")

# Read labels
with open("/opt/nuclio/function.yaml", 'rb') as function_file:
functionconfig = yaml.safe_load(function_file)

# Read the DL model
context.user_data.detector_model = FaceDetectorHandler()
context.user_data.attributes_model = AttributesExtractorHandler()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Copyright (C) 2020 Intel Corporation
# Copyright (C) 2020-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

import os
import cv2
import numpy as np
from model_loader import ModelLoader

Expand Down

0 comments on commit 8b0d4a7

Please sign in to comment.