Install prerequisites:
sudo apt-get libnss-winbind winbind
Then, edit /etc/nsswitch.conf and add wins to the hosts line.
| -D CMAKE_INSTALL_PREFIX=install -D CMAKE_BUILD_TYPE=Release -D ENABLE_PYTHON=ON -D ENABLE_WHEEL=ON -D ENABLE_CPPLINT=OFF -D ENABLE_CLANG_FORMAT=OFF -D ENABLE_PROFILING_ITT=OFF |
| FROM opensuse/leap:15.3 as ov-builder | |
| ARG OPENVINO_RELEASE_BRANCH=releases/2023/2 | |
| WORKDIR /tmp | |
| RUN zypper -n install git | |
| RUN git clone --single-branch --branch ${OPENVINO_RELEASE_BRANCH} https://github.com/openvinotoolkit/openvino.git && \ | |
| cd openvino && \ | |
| git submodule update --init --recursive && \ | |
| chmod +x install_build_dependencies.sh && \ | |
| ./install_build_dependencies.sh |
| """## Loading the dataset""" | |
| from datasets import load_dataset, load_metric, load_from_disk | |
| from pathlib import Path | |
| raw_datasets = load_dataset("samsum") | |
| metric = load_metric("rouge") | |
| model_checkpoint = "lidiya/bart-large-xsum-samsum" |
| from functools import partial | |
| from transformers import AutoModelForSeq2SeqLM, AutoTokenizer | |
| from optimum.intel import OVConfig, OVQuantizer | |
| max_input_length = 512 | |
| max_target_length = 128 | |
| model_id = "lidiya/bart-large-xsum-samsum" | |
| model = AutoModelForSeq2SeqLM.from_pretrained(model_id) |
| name: "MobileNet-SSD" | |
| input: "data" | |
| input_shape { | |
| dim: 1 | |
| dim: 3 | |
| dim: 300 | |
| dim: 300 | |
| } | |
| layer { | |
| name: "conv0" |
| name: "VGG_ILSVRC_16_layers" | |
| input: "data" | |
| input_shape { | |
| dim: 1 | |
| dim: 3 | |
| dim: 224 | |
| dim: 224 | |
| } |
| from __future__ import (absolute_import, division, print_function, | |
| unicode_literals) | |
| import logging | |
| import cv2 as cv | |
| import argparse | |
| import os | |
| log = logging.getLogger('test_video') |
| Make sure PYTHONHOME is set to the right path! |