Skip to content

Instantly share code, notes, and snippets.

@likholat
likholat / README.md
Last active September 28, 2022 11:36
OpenVINO custom layers guide

This guide describes how to use OpenVINO custom layers

1. Install OpenVINO

Use this tutorial to install OpenVINO Runtime.

Configure OV environment with source <INSTALL_DIR>/setupvars.sh

2. Clone repository with extensions:

git clone https://github.com/dkurt/openvino_pytorch_layers.git
@likholat
likholat / README.md
Created January 19, 2022 11:24
OV release DeformableConvolution support for DEKR

OV release DeformableConvolution support for DEKR

Pytorch layer documentation

OpenVINO layer documentation

To get OpenVINO IR:

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
@likholat
likholat / README.md
Last active January 18, 2022 16:25
OV DeformableConvolution support for DEKR

OV DeformableConvolution support for DEKR

Pytorch layer documentation

OpenVINO layer documentation

Follow these steps to get OpenVINO IR:

  • You can find all the changes needed to support the DeformableConvolution layer here.
  1. Create .onnx model with python3 tools/convert.py --cfg path/to/file.yaml TEST.MODEL_FILE path/to/file.yaml:
  2. Create OpenVINO IR with OpenVINO master branch:
@likholat
likholat / README.md
Last active January 19, 2022 15:52
DeformableConvolution with OpenVINO master branch
@likholat
likholat / README.md
Last active October 8, 2021 15:02
DeformableConvolution layer
@likholat
likholat / activity_main.xml
Created December 1, 2020 19:03
/app/src/main/res/layout/activity_main.xml
<?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"
@likholat
likholat / AndroidManifest.xml
Last active December 1, 2020 18:59
/app/src/main/AndroidManifest.xml
<?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"
@likholat
likholat / MainActivity.java
Last active December 2, 2020 11:36
/app/src/main/java/com/example/aslrecognitionapp/MainActivity.java
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;