Skip to content

Instantly share code, notes, and snippets.

View dkurt's full-sized avatar

Dmitry Kurtaev dkurt

View GitHub Profile
Collecting webrtcvad (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/webrtcvad-2.0.10.tar.gz
Requirement already satisfied: numpy>=1.13.3 in c:\python36\lib\site-packages (from pandas->-r requirements.txt (line 1))
Requirement already satisfied: python-dateutil>=2.6.1 in c:\python36\lib\site-packages (from pandas->-r requirements.txt (line 1))
Requirement already satisfied: pytz>=2017.2 in c:\python36\lib\site-packages (from pandas->-r requirements.txt (line 1))
Requirement already satisfied: six>=1.5 in c:\python36\lib\site-packages (from python-dateutil>=2.6.1->pandas->-r requirements.txt (line 1))
Installing collected packages: webrtcvad
Running setup.py install for webrtcvad ... error
Complete output from command C:\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\dkurtaev\\AppData\\Local\\Temp\\pip-build-961ir8ti\\webrtcvad\\setup.py';f=getattr(tokenize, 'open', o
  1. Скачайте OpenVINO с официального сайта: https://software.seek.intel.com/openvino-toolkit
  2. Установите OpenVINO
  3. Откройте терминал (Development Command Prompt на Windows)
  4. Выставите окружение
  • Windows
    "C:\Program Files (x86)\IntelSWTools\openvino\bin\setupvars.bat"
    
    Ожидаемое сообщение:
# This is the config to install Kubeflow on an existing k8s cluster.
# If the cluster already has istio, comment out the istio install part below.
apiVersion: kfdef.apps.kubeflow.org/v1alpha1
kind: KfDef
metadata:
name: kubeflow_app
namespace: kubeflow
spec:
repos:
import numpy as np
from openvino.inference_engine import IENetwork, IECore
import cv2 as cv
PERSON_ID = 11
net = IENetwork('semantic-segmentation-adas-0001.xml', 'semantic-segmentation-adas-0001.bin')
ie = IECore()
node {
name: "normalized_input_image_tensor"
op: "Placeholder"
attr {
key: "dtype"
value {
type: DT_FLOAT
}
}
attr {
curl -o GPG-PUB-KEY-INTEL-OPENVINO-2020 https://apt.repos.intel.com/openvino/2020/GPG-PUB-KEY-INTEL-OPENVINO-2020
apt-key add GPG-PUB-KEY-INTEL-OPENVINO-2020
echo "deb https://apt.repos.intel.com/openvino/2020 all main" | tee - a /etc/apt/sources.list.d/intel-openvino-2020.list
apt-get update
apt-get install -y --no-install-recommends intel-openvino-dev-ubuntu18
from math import ceil
d = 2
h = 3
w = 4
scale_d = 3
scale_h = 3
scale_w = 2
c = 3
// g++ main.cpp -o out && ./out
#include <stdio.h>
class Counter {
public:
Counter() : i(0) {}
int next() {
i += 1;
import tensorflow as tf
from tensorflow.python.tools import optimize_for_inference_lib
pb_file = 'resnet_v2_101_299_frozen.pb'
graph_def = tf.compat.v1.GraphDef()
try:
with tf.io.gfile.GFile(pb_file, 'rb') as f:
graph_def.ParseFromString(f.read())
except:
@dkurt
dkurt / opencv_for_android_studio.md
Last active April 9, 2023 00:02
OpenCV for Android Studio