int main(int argc, char** argv) {
return 0;
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import cv2 as cv | |
| import tensorflow as tf | |
| img = cv.imread('img1.jpg') | |
| img = np.ascontiguousarray(img[:,:,[2, 1, 0]]) | |
| resized_img = cv.resize(img, (640, 640)) | |
| # | |
| # Run TensorFlow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker build raspberry_pi -t vineyard_rpi --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy | |
| # docker run -v $(pwd):/mnt vineyard_rpi cp opencv.tar.gz /mnt | |
| FROM debian:buster | |
| RUN dpkg --add-architecture armhf && \ | |
| apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| crossbuild-essential-armhf \ | |
| git \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date | value | |
|---|---|---|
| 2020-10-05 18:38:10.268021 | 59 | |
| 2020-10-05 18:43:10.119784 | 59 | |
| 2020-10-05 18:48:09.965870 | 58 | |
| 2020-10-05 18:53:09.808872 | 58 | |
| 2020-10-05 18:58:09.648668 | 58 | |
| 2020-10-05 19:03:09.487420 | 58 | |
| 2020-10-05 19:08:09.327250 | 58 | |
| 2020-10-05 19:13:09.167299 | 57 | |
| 2020-10-05 19:18:09.007362 | 57 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.4.3) | |
| project(sample CXX) | |
| find_package(InferenceEngine REQUIRED) | |
| add_executable(${CMAKE_PROJECT_NAME} main.cpp) | |
| target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_range_for) | |
| target_link_libraries(${CMAKE_PROJECT_NAME} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.4.3) | |
| project(sample CXX) | |
| find_package(InferenceEngine REQUIRED) | |
| find_package(ngraph REQUIRED) | |
| add_executable(${CMAKE_PROJECT_NAME} main.cpp) | |
| target_compile_features(${CMAKE_PROJECT_NAME} PRIVATE cxx_range_for) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl -o GPG-PUB-KEY-INTEL-OPENVINO-2021 https://apt.repos.intel.com/openvino/2021/GPG-PUB-KEY-INTEL-OPENVINO-2021 | |
| sudo apt-key add GPG-PUB-KEY-INTEL-OPENVINO-2021 | |
| sudo echo "deb https://apt.repos.intel.com/openvino/2021 all main" | sudo tee - a /etc/apt/sources.list.d/intel-openvino-2021.list | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends intel-openvino-dev-ubuntu18-2021.1.110 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.myapplication"> | |
| <application | |
| android:allowBackup="true" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name" | |
| android:roundIcon="@mipmap/ic_launcher_round" | |
| android:supportsRtl="true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import torch.nn as nn | |
| from torch.autograd import Variable | |
| torch.manual_seed(1412) | |
| def fake_unpool(x, pool_inp, pool_out, indices): | |
| # perform sanity check | |
| ref = nn.MaxUnpool2d(2, stride=2)(x, indices) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.4.3) | |
| project(ngraph_custom_layer CXX) | |
| find_package(InferenceEngine REQUIRED) | |
| find_package(ngraph REQUIRED) | |
| find_package(TBB REQUIRED tbb tbbmalloc) | |
| include_directories( | |
| ${OpenCV_INCLUDE_DIRS} |