Use this tutorial to install OpenVINO Runtime.
Configure OV environment with source <INSTALL_DIR>/setupvars.sh
git clone https://github.com/dkurt/openvino_pytorch_layers.git
Use this tutorial to install OpenVINO Runtime.
Configure OV environment with source <INSTALL_DIR>/setupvars.sh
git clone https://github.com/dkurt/openvino_pytorch_layers.git
Pytorch layer documentation
OpenVINO layer documentation
To get OV model and compare the results of OV and Torch models run:
python3 tools/convert.py --cfg path/to/file.yaml TEST.MODEL_FILE path/to/file.yaml
Pytorch layer documentation
OpenVINO layer documentation
python3 tools/convert.py --cfg path/to/file.yaml TEST.MODEL_FILE path/to/file.yaml:Pytorch layer documentation: https://pytorch.org/vision/stable/ops.html#torchvision.ops.deform_conv2d
OpenVINO layer documentation: https://docs.openvinotoolkit.org/latest/openvino_docs_ops_convolution_DeformableConvolution_1.html
python3 export.py:# export.py
import numpy as np
import torchPytorch layer documentation: https://pytorch.org/vision/stable/ops.html#torchvision.ops.deform_conv2d
OpenVINO layer documentation: https://docs.openvinotoolkit.org/latest/openvino_docs_ops_convolution_DeformableConvolution_1.html
python3 export.py:# export.py
import numpy as np
import torch| <?xml version="1.0" encoding="utf-8"?> | |
| <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".MainActivity"> | |
| <org.opencv.android.JavaCameraView | |
| android:id="@+id/CameraView" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.aslrecognitionapp"> | |
| <application | |
| android:allowBackup="true" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name" | |
| android:roundIcon="@mipmap/ic_launcher_round" | |
| android:supportsRtl="true" |
| package com.example.aslrecognitiondemo; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import org.opencv.android.CameraActivity; | |
| import org.opencv.android.CameraBridgeViewBase; | |
| import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame; | |
| import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2; | |
| import org.opencv.core.Core; |