diff --git a/examples/cpp/asynchronous_api/main.cpp b/examples/cpp/asynchronous_api/main.cpp index d5ad738b..acd361a2 100644 --- a/examples/cpp/asynchronous_api/main.cpp +++ b/examples/cpp/asynchronous_api/main.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include #include diff --git a/examples/cpp/synchronous_api/main.cpp b/examples/cpp/synchronous_api/main.cpp index 81997109..ec4ef869 100644 --- a/examples/cpp/synchronous_api/main.cpp +++ b/examples/cpp/synchronous_api/main.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2018-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/examples/python/asynchronous_api/run.py b/examples/python/asynchronous_api/run.py index 6fb1d8cf..27856080 100644 --- a/examples/python/asynchronous_api/run.py +++ b/examples/python/asynchronous_api/run.py @@ -1,19 +1,8 @@ #!/usr/bin/env python3 -""" -Copyright (C) 2018-2022 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import sys diff --git a/examples/python/serving_api/run.py b/examples/python/serving_api/run.py index c2c35437..9f1850f7 100755 --- a/examples/python/serving_api/run.py +++ b/examples/python/serving_api/run.py @@ -1,19 +1,8 @@ #!/usr/bin/env python3 -""" -Copyright (C) 2018-2022 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import sys diff --git a/examples/python/synchronous_api/run.py b/examples/python/synchronous_api/run.py index 7a9bdd8e..65e71681 100755 --- a/examples/python/synchronous_api/run.py +++ b/examples/python/synchronous_api/run.py @@ -1,19 +1,8 @@ #!/usr/bin/env python3 -""" -Copyright (C) 2018-2022 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import sys diff --git a/examples/python/visual_prompting/run.py b/examples/python/visual_prompting/run.py index 20f2bc04..6b7258a7 100644 --- a/examples/python/visual_prompting/run.py +++ b/examples/python/visual_prompting/run.py @@ -1,19 +1,8 @@ #!/usr/bin/env python3 -""" -Copyright (C) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import argparse import colorsys diff --git a/examples/python/zsl_visual_prompting/run.py b/examples/python/zsl_visual_prompting/run.py index 6bfcf09b..d4b4fed1 100644 --- a/examples/python/zsl_visual_prompting/run.py +++ b/examples/python/zsl_visual_prompting/run.py @@ -1,19 +1,8 @@ #!/usr/bin/env python3 -""" -Copyright (C) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import argparse import colorsys diff --git a/model_api/cpp/adapters/include/adapters/inference_adapter.h b/model_api/cpp/adapters/include/adapters/inference_adapter.h index cec2ffd8..5bc566f4 100644 --- a/model_api/cpp/adapters/include/adapters/inference_adapter.h +++ b/model_api/cpp/adapters/include/adapters/inference_adapter.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/adapters/include/adapters/openvino_adapter.h b/model_api/cpp/adapters/include/adapters/openvino_adapter.h index 1ac53973..f54fcac4 100644 --- a/model_api/cpp/adapters/include/adapters/openvino_adapter.h +++ b/model_api/cpp/adapters/include/adapters/openvino_adapter.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/adapters/src/openvino_adapter.cpp b/model_api/cpp/adapters/src/openvino_adapter.cpp index 3ead7918..1f77383f 100644 --- a/model_api/cpp/adapters/src/openvino_adapter.cpp +++ b/model_api/cpp/adapters/src/openvino_adapter.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "adapters/openvino_adapter.h" diff --git a/model_api/cpp/models/include/models/anomaly_model.h b/model_api/cpp/models/include/models/anomaly_model.h index 0a648bf8..9efa0ede 100644 --- a/model_api/cpp/models/include/models/anomaly_model.h +++ b/model_api/cpp/models/include/models/anomaly_model.h @@ -1,18 +1,7 @@ /* - Copyright (C) 2020-2024 Intel Corporation - - 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include "models/image_model.h" diff --git a/model_api/cpp/models/include/models/classification_model.h b/model_api/cpp/models/include/models/classification_model.h index 484123e5..5b1a1be2 100644 --- a/model_api/cpp/models/include/models/classification_model.h +++ b/model_api/cpp/models/include/models/classification_model.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/detection_model.h b/model_api/cpp/models/include/models/detection_model.h index eff58797..36bd1c8f 100644 --- a/model_api/cpp/models/include/models/detection_model.h +++ b/model_api/cpp/models/include/models/detection_model.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once diff --git a/model_api/cpp/models/include/models/detection_model_ext.h b/model_api/cpp/models/include/models/detection_model_ext.h index 77c11659..8c6d46c7 100644 --- a/model_api/cpp/models/include/models/detection_model_ext.h +++ b/model_api/cpp/models/include/models/detection_model_ext.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/detection_model_ssd.h b/model_api/cpp/models/include/models/detection_model_ssd.h index dba5ddbd..acb3060f 100644 --- a/model_api/cpp/models/include/models/detection_model_ssd.h +++ b/model_api/cpp/models/include/models/detection_model_ssd.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/detection_model_yolo.h b/model_api/cpp/models/include/models/detection_model_yolo.h index e365339a..56055588 100644 --- a/model_api/cpp/models/include/models/detection_model_yolo.h +++ b/model_api/cpp/models/include/models/detection_model_yolo.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/detection_model_yolov3_onnx.h b/model_api/cpp/models/include/models/detection_model_yolov3_onnx.h index e650d2d6..9dead24d 100644 --- a/model_api/cpp/models/include/models/detection_model_yolov3_onnx.h +++ b/model_api/cpp/models/include/models/detection_model_yolov3_onnx.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2022-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once diff --git a/model_api/cpp/models/include/models/detection_model_yolox.h b/model_api/cpp/models/include/models/detection_model_yolox.h index 5e22b1f0..bc747ee5 100644 --- a/model_api/cpp/models/include/models/detection_model_yolox.h +++ b/model_api/cpp/models/include/models/detection_model_yolox.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2022-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/image_model.h b/model_api/cpp/models/include/models/image_model.h index 5d1af76c..dfb274bb 100644 --- a/model_api/cpp/models/include/models/image_model.h +++ b/model_api/cpp/models/include/models/image_model.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/input_data.h b/model_api/cpp/models/include/models/input_data.h index b88c066c..6d02e287 100644 --- a/model_api/cpp/models/include/models/input_data.h +++ b/model_api/cpp/models/include/models/input_data.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/instance_segmentation.h b/model_api/cpp/models/include/models/instance_segmentation.h index 27994a0b..f88b9f53 100644 --- a/model_api/cpp/models/include/models/instance_segmentation.h +++ b/model_api/cpp/models/include/models/instance_segmentation.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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 writingb 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/internal_model_data.h b/model_api/cpp/models/include/models/internal_model_data.h index 276291c7..2f1b84f7 100644 --- a/model_api/cpp/models/include/models/internal_model_data.h +++ b/model_api/cpp/models/include/models/internal_model_data.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once diff --git a/model_api/cpp/models/include/models/keypoint_detection.h b/model_api/cpp/models/include/models/keypoint_detection.h index be038c8b..6e95731a 100644 --- a/model_api/cpp/models/include/models/keypoint_detection.h +++ b/model_api/cpp/models/include/models/keypoint_detection.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/model_base.h b/model_api/cpp/models/include/models/model_base.h index 65135ebe..6fe3525d 100644 --- a/model_api/cpp/models/include/models/model_base.h +++ b/model_api/cpp/models/include/models/model_base.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/results.h b/model_api/cpp/models/include/models/results.h index 3e325f2f..8be7b873 100644 --- a/model_api/cpp/models/include/models/results.h +++ b/model_api/cpp/models/include/models/results.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/include/models/segmentation_model.h b/model_api/cpp/models/include/models/segmentation_model.h index aebd0c24..ed296e92 100644 --- a/model_api/cpp/models/include/models/segmentation_model.h +++ b/model_api/cpp/models/include/models/segmentation_model.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/models/src/anomaly_model.cpp b/model_api/cpp/models/src/anomaly_model.cpp index 4eb1e82b..4feadb9f 100644 --- a/model_api/cpp/models/src/anomaly_model.cpp +++ b/model_api/cpp/models/src/anomaly_model.cpp @@ -1,18 +1,7 @@ /* - Copyright (C) 2020-2024 Intel Corporation - - 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/anomaly_model.h" diff --git a/model_api/cpp/models/src/classification_model.cpp b/model_api/cpp/models/src/classification_model.cpp index d22e99ba..207c7a62 100644 --- a/model_api/cpp/models/src/classification_model.cpp +++ b/model_api/cpp/models/src/classification_model.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/classification_model.h" diff --git a/model_api/cpp/models/src/detection_model.cpp b/model_api/cpp/models/src/detection_model.cpp index 858e77aa..963760d6 100644 --- a/model_api/cpp/models/src/detection_model.cpp +++ b/model_api/cpp/models/src/detection_model.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model.h" diff --git a/model_api/cpp/models/src/detection_model_ext.cpp b/model_api/cpp/models/src/detection_model_ext.cpp index d1d7792a..134d2a9c 100644 --- a/model_api/cpp/models/src/detection_model_ext.cpp +++ b/model_api/cpp/models/src/detection_model_ext.cpp @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model_ext.h" #include diff --git a/model_api/cpp/models/src/detection_model_ssd.cpp b/model_api/cpp/models/src/detection_model_ssd.cpp index 815ca01f..20ed396a 100644 --- a/model_api/cpp/models/src/detection_model_ssd.cpp +++ b/model_api/cpp/models/src/detection_model_ssd.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model_ssd.h" diff --git a/model_api/cpp/models/src/detection_model_yolo.cpp b/model_api/cpp/models/src/detection_model_yolo.cpp index ccea2db2..d43e903c 100644 --- a/model_api/cpp/models/src/detection_model_yolo.cpp +++ b/model_api/cpp/models/src/detection_model_yolo.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model_yolo.h" diff --git a/model_api/cpp/models/src/detection_model_yolov3_onnx.cpp b/model_api/cpp/models/src/detection_model_yolov3_onnx.cpp index a454286b..d7974f41 100644 --- a/model_api/cpp/models/src/detection_model_yolov3_onnx.cpp +++ b/model_api/cpp/models/src/detection_model_yolov3_onnx.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2022-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model_yolov3_onnx.h" diff --git a/model_api/cpp/models/src/detection_model_yolox.cpp b/model_api/cpp/models/src/detection_model_yolox.cpp index 5ba3d891..3c4df1fe 100644 --- a/model_api/cpp/models/src/detection_model_yolox.cpp +++ b/model_api/cpp/models/src/detection_model_yolox.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2022-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/detection_model_yolox.h" diff --git a/model_api/cpp/models/src/image_model.cpp b/model_api/cpp/models/src/image_model.cpp index 51997223..f87d8029 100644 --- a/model_api/cpp/models/src/image_model.cpp +++ b/model_api/cpp/models/src/image_model.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/image_model.h" diff --git a/model_api/cpp/models/src/instance_segmentation.cpp b/model_api/cpp/models/src/instance_segmentation.cpp index fe553a13..2b20e806 100644 --- a/model_api/cpp/models/src/instance_segmentation.cpp +++ b/model_api/cpp/models/src/instance_segmentation.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/instance_segmentation.h" diff --git a/model_api/cpp/models/src/keypoint_detection.cpp b/model_api/cpp/models/src/keypoint_detection.cpp index a8daa337..f1ba35ed 100644 --- a/model_api/cpp/models/src/keypoint_detection.cpp +++ b/model_api/cpp/models/src/keypoint_detection.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/keypoint_detection.h" diff --git a/model_api/cpp/models/src/model_base.cpp b/model_api/cpp/models/src/model_base.cpp index 7fead2ef..3e2f817f 100644 --- a/model_api/cpp/models/src/model_base.cpp +++ b/model_api/cpp/models/src/model_base.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/model_base.h" diff --git a/model_api/cpp/models/src/segmentation_model.cpp b/model_api/cpp/models/src/segmentation_model.cpp index 0687e252..25fae273 100644 --- a/model_api/cpp/models/src/segmentation_model.cpp +++ b/model_api/cpp/models/src/segmentation_model.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2020-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "models/segmentation_model.h" diff --git a/model_api/cpp/tilers/include/tilers/detection.h b/model_api/cpp/tilers/include/tilers/detection.h index 7799961a..5f9a27ba 100644 --- a/model_api/cpp/tilers/include/tilers/detection.h +++ b/model_api/cpp/tilers/include/tilers/detection.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/tilers/include/tilers/instance_segmentation.h b/model_api/cpp/tilers/include/tilers/instance_segmentation.h index c87fa03e..79ca97f0 100644 --- a/model_api/cpp/tilers/include/tilers/instance_segmentation.h +++ b/model_api/cpp/tilers/include/tilers/instance_segmentation.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/tilers/include/tilers/semantic_segmentation.h b/model_api/cpp/tilers/include/tilers/semantic_segmentation.h index 74701f87..98ef1815 100644 --- a/model_api/cpp/tilers/include/tilers/semantic_segmentation.h +++ b/model_api/cpp/tilers/include/tilers/semantic_segmentation.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/tilers/include/tilers/tiler_base.h b/model_api/cpp/tilers/include/tilers/tiler_base.h index 976fd3b4..aef9615e 100644 --- a/model_api/cpp/tilers/include/tilers/tiler_base.h +++ b/model_api/cpp/tilers/include/tilers/tiler_base.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once #include diff --git a/model_api/cpp/tilers/src/detection.cpp b/model_api/cpp/tilers/src/detection.cpp index 2e53556c..1fc74c1b 100644 --- a/model_api/cpp/tilers/src/detection.cpp +++ b/model_api/cpp/tilers/src/detection.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/model_api/cpp/tilers/src/instance_segmentation.cpp b/model_api/cpp/tilers/src/instance_segmentation.cpp index e7d90ff5..61013430 100644 --- a/model_api/cpp/tilers/src/instance_segmentation.cpp +++ b/model_api/cpp/tilers/src/instance_segmentation.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/model_api/cpp/tilers/src/semantic_segmentation.cpp b/model_api/cpp/tilers/src/semantic_segmentation.cpp index 60d58514..9c4c2ab3 100644 --- a/model_api/cpp/tilers/src/semantic_segmentation.cpp +++ b/model_api/cpp/tilers/src/semantic_segmentation.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/model_api/cpp/tilers/src/tiler_base.cpp b/model_api/cpp/tilers/src/tiler_base.cpp index 889e79e0..ecdd26eb 100644 --- a/model_api/cpp/tilers/src/tiler_base.cpp +++ b/model_api/cpp/tilers/src/tiler_base.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/model_api/cpp/utils/include/utils/image_utils.h b/model_api/cpp/utils/include/utils/image_utils.h index a3641e7f..59ba39e9 100644 --- a/model_api/cpp/utils/include/utils/image_utils.h +++ b/model_api/cpp/utils/include/utils/image_utils.h @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #pragma once diff --git a/model_api/cpp/utils/src/args_helper.cpp b/model_api/cpp/utils/src/args_helper.cpp index 0fad68e2..085ca237 100644 --- a/model_api/cpp/utils/src/args_helper.cpp +++ b/model_api/cpp/utils/src/args_helper.cpp @@ -1,6 +1,7 @@ -// Copyright (C) 2018-2024 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "utils/args_helper.hpp" diff --git a/model_api/cpp/utils/src/async_infer_queue.cpp b/model_api/cpp/utils/src/async_infer_queue.cpp index 148d53be..afebfe52 100644 --- a/model_api/cpp/utils/src/async_infer_queue.cpp +++ b/model_api/cpp/utils/src/async_infer_queue.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "utils/async_infer_queue.hpp" diff --git a/model_api/cpp/utils/src/image_utils.cpp b/model_api/cpp/utils/src/image_utils.cpp index aeb4f2a9..b74588d9 100644 --- a/model_api/cpp/utils/src/image_utils.cpp +++ b/model_api/cpp/utils/src/image_utils.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2021-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "utils/image_utils.h" diff --git a/model_api/cpp/utils/src/kuhn_munkres.cpp b/model_api/cpp/utils/src/kuhn_munkres.cpp index e6000abe..350c2ffb 100644 --- a/model_api/cpp/utils/src/kuhn_munkres.cpp +++ b/model_api/cpp/utils/src/kuhn_munkres.cpp @@ -1,6 +1,7 @@ -// Copyright (C) 2018-2024 Intel Corporation -// SPDX-License-Identifier: Apache-2.0 -// +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include diff --git a/model_api/cpp/utils/src/nms.cpp b/model_api/cpp/utils/src/nms.cpp index e37317e9..192354ad 100644 --- a/model_api/cpp/utils/src/nms.cpp +++ b/model_api/cpp/utils/src/nms.cpp @@ -1,18 +1,7 @@ /* -// Copyright (C) 2023-2024 Intel Corporation -// -// 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. -*/ + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include "utils/nms.hpp" diff --git a/model_api/python/model_api/__init__.py b/model_api/python/model_api/__init__.py index e69de29b..e585bb28 100644 --- a/model_api/python/model_api/__init__.py +++ b/model_api/python/model_api/__init__.py @@ -0,0 +1,4 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# diff --git a/model_api/python/model_api/adapters/__init__.py b/model_api/python/model_api/adapters/__init__.py index 7c7a1f31..5d108556 100644 --- a/model_api/python/model_api/adapters/__init__.py +++ b/model_api/python/model_api/adapters/__init__.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from .onnx_adapter import ONNXRuntimeAdapter from .openvino_adapter import OpenvinoAdapter, create_core, get_user_config diff --git a/model_api/python/model_api/adapters/inference_adapter.py b/model_api/python/model_api/adapters/inference_adapter.py index c9421537..c8b93a0d 100644 --- a/model_api/python/model_api/adapters/inference_adapter.py +++ b/model_api/python/model_api/adapters/inference_adapter.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import abc from dataclasses import dataclass, field diff --git a/model_api/python/model_api/adapters/onnx_adapter.py b/model_api/python/model_api/adapters/onnx_adapter.py index 2a75c4b5..08af61e6 100644 --- a/model_api/python/model_api/adapters/onnx_adapter.py +++ b/model_api/python/model_api/adapters/onnx_adapter.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2023-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import sys from functools import partial, reduce diff --git a/model_api/python/model_api/adapters/openvino_adapter.py b/model_api/python/model_api/adapters/openvino_adapter.py index 5ea897a4..0fa536cb 100644 --- a/model_api/python/model_api/adapters/openvino_adapter.py +++ b/model_api/python/model_api/adapters/openvino_adapter.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import logging as log from pathlib import Path diff --git a/model_api/python/model_api/adapters/ovms_adapter.py b/model_api/python/model_api/adapters/ovms_adapter.py index b18ef372..7548264a 100644 --- a/model_api/python/model_api/adapters/ovms_adapter.py +++ b/model_api/python/model_api/adapters/ovms_adapter.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import re diff --git a/model_api/python/model_api/adapters/utils.py b/model_api/python/model_api/adapters/utils.py index 32ceecc8..9b2850c9 100644 --- a/model_api/python/model_api/adapters/utils.py +++ b/model_api/python/model_api/adapters/utils.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2022-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/__init__.py b/model_api/python/model_api/models/__init__.py index a2d4a54e..7e87edd9 100644 --- a/model_api/python/model_api/models/__init__.py +++ b/model_api/python/model_api/models/__init__.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from .action_classification import ActionClassificationModel from .anomaly import AnomalyDetection diff --git a/model_api/python/model_api/models/action_classification.py b/model_api/python/model_api/models/action_classification.py index 89a37637..2ac6d975 100644 --- a/model_api/python/model_api/models/action_classification.py +++ b/model_api/python/model_api/models/action_classification.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations diff --git a/model_api/python/model_api/models/anomaly.py b/model_api/python/model_api/models/anomaly.py index e0bb36cf..812bef8d 100644 --- a/model_api/python/model_api/models/anomaly.py +++ b/model_api/python/model_api/models/anomaly.py @@ -1,20 +1,10 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# """Definition for anomaly models. Note: This file will change when anomalib is upgraded in OTX. CVS-114640 - - Copyright (c) 2021-2024 Intel Corporation - - 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 __future__ import annotations diff --git a/model_api/python/model_api/models/classification.py b/model_api/python/model_api/models/classification.py index d952692b..6e065615 100644 --- a/model_api/python/model_api/models/classification.py +++ b/model_api/python/model_api/models/classification.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/detection_model.py b/model_api/python/model_api/models/detection_model.py index 0e833af9..40c19753 100644 --- a/model_api/python/model_api/models/detection_model.py +++ b/model_api/python/model_api/models/detection_model.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from .image_model import ImageModel from .types import ListValue, NumericalValue, StringValue diff --git a/model_api/python/model_api/models/image_model.py b/model_api/python/model_api/models/image_model.py index ffa7511c..4e6407a9 100644 --- a/model_api/python/model_api/models/image_model.py +++ b/model_api/python/model_api/models/image_model.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from model_api.adapters.utils import RESIZE_TYPES, InputTransform diff --git a/model_api/python/model_api/models/instance_segmentation.py b/model_api/python/model_api/models/instance_segmentation.py index fb173cf0..7fd4a982 100644 --- a/model_api/python/model_api/models/instance_segmentation.py +++ b/model_api/python/model_api/models/instance_segmentation.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import cv2 import numpy as np diff --git a/model_api/python/model_api/models/keypoint_detection.py b/model_api/python/model_api/models/keypoint_detection.py index 120ec150..84566f45 100644 --- a/model_api/python/model_api/models/keypoint_detection.py +++ b/model_api/python/model_api/models/keypoint_detection.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations diff --git a/model_api/python/model_api/models/model.py b/model_api/python/model_api/models/model.py index ab43efbd..72fad593 100644 --- a/model_api/python/model_api/models/model.py +++ b/model_api/python/model_api/models/model.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import logging as log import re diff --git a/model_api/python/model_api/models/sam_models.py b/model_api/python/model_api/models/sam_models.py index f73d1684..80485c65 100644 --- a/model_api/python/model_api/models/sam_models.py +++ b/model_api/python/model_api/models/sam_models.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/segmentation.py b/model_api/python/model_api/models/segmentation.py index e3937148..3faf030b 100644 --- a/model_api/python/model_api/models/segmentation.py +++ b/model_api/python/model_api/models/segmentation.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/ssd.py b/model_api/python/model_api/models/ssd.py index 9d197cfb..f52d9fb7 100644 --- a/model_api/python/model_api/models/ssd.py +++ b/model_api/python/model_api/models/ssd.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import numpy as np diff --git a/model_api/python/model_api/models/types.py b/model_api/python/model_api/models/types.py index 7a451a8e..5fa8794a 100644 --- a/model_api/python/model_api/models/types.py +++ b/model_api/python/model_api/models/types.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2021-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# class ConfigurableValueError(ValueError): diff --git a/model_api/python/model_api/models/utils.py b/model_api/python/model_api/models/utils.py index 86a5714d..030b6f08 100644 --- a/model_api/python/model_api/models/utils.py +++ b/model_api/python/model_api/models/utils.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/visual_prompting.py b/model_api/python/model_api/models/visual_prompting.py index 60c3f42e..65c636f7 100644 --- a/model_api/python/model_api/models/visual_prompting.py +++ b/model_api/python/model_api/models/visual_prompting.py @@ -1,14 +1,7 @@ -"""Copyright (C) 2024 Intel Corporation -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations # TODO: remove when Python3.9 support is dropped diff --git a/model_api/python/model_api/models/yolo.py b/model_api/python/model_api/models/yolo.py index 02ffded7..7a4dd12c 100644 --- a/model_api/python/model_api/models/yolo.py +++ b/model_api/python/model_api/models/yolo.py @@ -1,14 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from collections import namedtuple from itertools import starmap diff --git a/model_api/python/model_api/performance_metrics.py b/model_api/python/model_api/performance_metrics.py index fff1598c..e3c52a42 100644 --- a/model_api/python/model_api/performance_metrics.py +++ b/model_api/python/model_api/performance_metrics.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import logging as log from time import perf_counter diff --git a/model_api/python/model_api/pipelines/__init__.py b/model_api/python/model_api/pipelines/__init__.py index efbb27ab..b4237f43 100644 --- a/model_api/python/model_api/pipelines/__init__.py +++ b/model_api/python/model_api/pipelines/__init__.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from .async_pipeline import AsyncPipeline __all__ = ["AsyncPipeline"] diff --git a/model_api/python/model_api/pipelines/async_pipeline.py b/model_api/python/model_api/pipelines/async_pipeline.py index 8d262216..040a2684 100644 --- a/model_api/python/model_api/pipelines/async_pipeline.py +++ b/model_api/python/model_api/pipelines/async_pipeline.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2020-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from time import perf_counter diff --git a/model_api/python/model_api/tilers/__init__.py b/model_api/python/model_api/tilers/__init__.py index 879c1be6..8caf4852 100644 --- a/model_api/python/model_api/tilers/__init__.py +++ b/model_api/python/model_api/tilers/__init__.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2023-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from .detection import DetectionTiler from .instance_segmentation import InstanceSegmentationTiler diff --git a/model_api/python/model_api/tilers/detection.py b/model_api/python/model_api/tilers/detection.py index bd4a4159..3536eb3f 100644 --- a/model_api/python/model_api/tilers/detection.py +++ b/model_api/python/model_api/tilers/detection.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2023-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import cv2 as cv import numpy as np diff --git a/model_api/python/model_api/tilers/instance_segmentation.py b/model_api/python/model_api/tilers/instance_segmentation.py index f7b5df86..3ddfa353 100644 --- a/model_api/python/model_api/tilers/instance_segmentation.py +++ b/model_api/python/model_api/tilers/instance_segmentation.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2023-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from contextlib import contextmanager diff --git a/model_api/python/model_api/tilers/semantic_segmentation.py b/model_api/python/model_api/tilers/semantic_segmentation.py index c00c346e..0579acd5 100644 --- a/model_api/python/model_api/tilers/semantic_segmentation.py +++ b/model_api/python/model_api/tilers/semantic_segmentation.py @@ -1,17 +1,7 @@ -"""Copyright (C) 2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from __future__ import annotations diff --git a/model_api/python/model_api/tilers/tiler.py b/model_api/python/model_api/tilers/tiler.py index 99e48004..8d99b996 100644 --- a/model_api/python/model_api/tilers/tiler.py +++ b/model_api/python/model_api/tilers/tiler.py @@ -1,17 +1,7 @@ -"""Copyright (c) 2023-2024 Intel Corporation - -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. -""" +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import abc import logging as log diff --git a/model_api/python/pyproject.toml b/model_api/python/pyproject.toml index 62285df7..6193d2e5 100644 --- a/model_api/python/pyproject.toml +++ b/model_api/python/pyproject.toml @@ -1,3 +1,4 @@ +# # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # diff --git a/tests/cpp/accuracy/test_YOLOv8.cpp b/tests/cpp/accuracy/test_YOLOv8.cpp index 0d5ef870..c4ee90bd 100644 --- a/tests/cpp/accuracy/test_YOLOv8.cpp +++ b/tests/cpp/accuracy/test_YOLOv8.cpp @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include #include diff --git a/tests/cpp/accuracy/test_accuracy.cpp b/tests/cpp/accuracy/test_accuracy.cpp index 7dc358c7..fcd01237 100644 --- a/tests/cpp/accuracy/test_accuracy.cpp +++ b/tests/cpp/accuracy/test_accuracy.cpp @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include #include diff --git a/tests/cpp/precommit/test_model_config.cpp b/tests/cpp/precommit/test_model_config.cpp index 0572ecdb..f3587696 100644 --- a/tests/cpp/precommit/test_model_config.cpp +++ b/tests/cpp/precommit/test_model_config.cpp @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include #include diff --git a/tests/cpp/precommit/test_sanity.cpp b/tests/cpp/precommit/test_sanity.cpp index 12401887..9aa5a5c6 100644 --- a/tests/cpp/precommit/test_sanity.cpp +++ b/tests/cpp/precommit/test_sanity.cpp @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2020-2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ #include #include #include diff --git a/tests/python/accuracy/conftest.py b/tests/python/accuracy/conftest.py index 25f6633a..1afca4bc 100644 --- a/tests/python/accuracy/conftest.py +++ b/tests/python/accuracy/conftest.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import json import pytest diff --git a/tests/python/accuracy/prepare_data.py b/tests/python/accuracy/prepare_data.py index 152b20a5..ba7e9b4d 100644 --- a/tests/python/accuracy/prepare_data.py +++ b/tests/python/accuracy/prepare_data.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import argparse import asyncio from io import BytesIO diff --git a/tests/python/accuracy/test_YOLOv8.py b/tests/python/accuracy/test_YOLOv8.py index 629e247e..8ff97b80 100644 --- a/tests/python/accuracy/test_YOLOv8.py +++ b/tests/python/accuracy/test_YOLOv8.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import functools import os import types diff --git a/tests/python/accuracy/test_accuracy.py b/tests/python/accuracy/test_accuracy.py index e926d1a0..8a9cbfbc 100644 --- a/tests/python/accuracy/test_accuracy.py +++ b/tests/python/accuracy/test_accuracy.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import json import os from pathlib import Path diff --git a/tests/python/precommit/test_load.py b/tests/python/precommit/test_load.py index a089619b..a0d79e0c 100644 --- a/tests/python/precommit/test_load.py +++ b/tests/python/precommit/test_load.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from model_api.models import Model diff --git a/tests/python/precommit/test_save.py b/tests/python/precommit/test_save.py index 57775aa6..b69a9b48 100644 --- a/tests/python/precommit/test_save.py +++ b/tests/python/precommit/test_save.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# from model_api.models import Model diff --git a/tests/python/precommit/test_utils.py b/tests/python/precommit/test_utils.py index eb390ad5..5392adac 100644 --- a/tests/python/precommit/test_utils.py +++ b/tests/python/precommit/test_utils.py @@ -1,3 +1,7 @@ +# +# Copyright (C) 2020-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 +# import numpy as np import openvino.runtime as ov from model_api.adapters.utils import (