Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 9cd404d

Browse files
authored
Merge pull request #413 from OpenVisualCloud/v20.4
V20.4 changes
2 parents 6859dd3 + 1e09651 commit 9cd404d

119 files changed

Lines changed: 201045 additions & 61319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,40 @@ endif()
2424
if (NOT DEFINED NANALYTICS)
2525
set(NANALYTICS "1")
2626
endif()
27+
if (NOT DEFINED NETWORK)
28+
if(PLATFORM STREQUAL "Xeon")
29+
set(NETWORK "INT8,FP32")
30+
endif()
31+
if(PLATFORM STREQUAL "VCAC-A")
32+
set(NETWORK "FP16")
33+
endif()
34+
endif()
35+
36+
if(PLATFORM STREQUAL "Xeon")
37+
if((NOT (NETWORK MATCHES "FP32")) AND (NOT (NETWORK MATCHES "INT8")))
38+
if(NOT (NETWORK MATCHES "FP32"))
39+
set(NETWORK "FP32,${NETWORK}")
40+
endif()
41+
if(NOT (NETWORK MATCHES "INT8"))
42+
set(NETWORK "INT8,${NETWORK}")
43+
endif()
44+
endif()
45+
if(NETWORK MATCHES "FP16")
46+
string(REGEX REPLACE "FP16,*" "" NETWORK ${NETWORK})
47+
endif()
48+
endif()
49+
if(PLATFORM STREQUAL "VCAC-A")
50+
if(NOT (NETWORK MATCHES "FP16"))
51+
set(NETWORK "FP16,${NETWORK}")
52+
endif()
53+
if(NETWORK MATCHES "FP32")
54+
string(REGEX REPLACE "FP32,*" "" NETWORK ${NETWORK})
55+
endif()
56+
if(NETWORK MATCHES "INT8")
57+
string(REGEX REPLACE "INT8,*" "" NETWORK ${NETWORK})
58+
endif()
59+
endif()
60+
string(REGEX REPLACE ",$" "" NETWORK ${NETWORK})
2761

2862
file(GLOB dirs "deployment" "*")
2963
list(REMOVE_DUPLICATES dirs)
@@ -37,4 +71,4 @@ endforeach()
3771
execute_process(COMMAND printf "\n\nThis script will build third party components licensed under various open source licenses into your container images. The terms under which those components may be used and distributed can be found with the license document that is provided with those components. Please familiarize yourself with those terms to ensure your distribution of those components complies with the terms of those licenses.\n\n")
3872

3973

40-
execute_process(COMMAND printf "\n-- Setting: PLATFORM=${PLATFORM}, SCENARIO=${SCENARIO}, NOFFICES=${NOFFICES}, NCAMERAS=${NCAMERAS}, NANALYTICS=${NANALYTICS}, FRAMEWORK=${FRAMEWORK}\n")
74+
execute_process(COMMAND printf "\n-- Setting: PLATFORM=${PLATFORM}, SCENARIO=${SCENARIO}, NOFFICES=${NOFFICES}, NCAMERAS=${NCAMERAS}, NANALYTICS=${NANALYTICS}, FRAMEWORK=${FRAMEWORK}, NETWORK=${NETWORK}\n")
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
# smtc_analytics_common_vcac-a_gst
22

3-
FROM smtc_analytics_common_vcac-a_gst_base
3+
FROM openvisualcloud/vcaca-ubuntu1804-analytics-gst:20.4 as build
44

5-
# Fetch python3 and Install python3
6-
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends libjson-c3 python3-gst-1.0 python3-jsonschema && rm -rf /var/lib/apt/lists/*;
7-
COPY VCAC-A/gst/frame.py /usr/lib/python3.6/gstgva/
8-
COPY app /home/
5+
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq && apt-get install -qq git ca-certificates
6+
ARG VA_SERVING_REPO=https://github.com/intel/video-analytics-serving.git
7+
ARG VA_SERVING_BRANCH="v0.3_preview"
8+
ARG VA_SERVING_TAG="1b342051b85682beadb1ec173f848697fa2f02b2"
9+
10+
RUN git clone ${VA_SERVING_REPO} -b ${VA_SERVING_BRANCH} --depth 1
11+
RUN cd video-analytics-serving; git checkout ${VA_SERVING_TAG}
12+
RUN rm -rf /home/video-analytics-serving/vaserving/__main__.py
13+
RUN rm -rf /home/video-analytics-serving/vaserving/rest_api
14+
15+
FROM openvisualcloud/vcaca-ubuntu1804-analytics-gst:20.4
16+
17+
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq && apt-get install -qq python3-gst-1.0 python3-jsonschema python3-psutil && rm -rf /var/lib/apt/lists/*
18+
19+
COPY --from=build /home/video-analytics-serving/vaserving /home/vaserving
20+
ENV FRAMEWORK=gstreamer
921
COPY *.py /home/

analytics/common/VCAC-A/gst/Dockerfile.1.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

analytics/common/VCAC-A/gst/frame.py

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)