Giter Club home page Giter Club logo

Comments (8)

lionkunonly avatar lionkunonly commented on June 4, 2024

Th investigation on Python API is based on OpenVINO 2020.3.

I investigate the Python APIs by viewing the file at path <openvino_dir>inference engine\ie_bridges\python\src\openvino\ inference_engine\ie_api_impl.hpp. And I ingvestigate the Node.js API by viewing files at path <inference_engine_node_dir>\src\.

Python API (struct IECore) Node.js API (class Core)
getVersions( ) getVersions( )
readNetwork( ) ( From path ) readNetwork( )
readNetwork( ) ( From Data) readNetworkFromData( )
loadNetwork( ) loadNetwork( )
getAvailableDevices( ) getAvailableDevices( )
setConfig( ) setConfig( ) (On the way)
addExtension( ) addExtension( ) (On the way)
importNetwork( ) -
queryNetwork( ) -
registerPlugin( ) -
unregisterPlugin( ) -
registerPlugins( ) -
getMetric( ) -
getConfig( ) -

from inference-engine-node.

lionkunonly avatar lionkunonly commented on June 4, 2024
Python API (struct IENetwork) Node.js API class Network
setBatch( ) -
getBatch( ) -
addOutput( ) -
getLayers( ) -
getInputs( ) getInputsInfo( )
getOutputs( ) getgetOutputsInfo( )
- getName( )
reshape( ) -
serialize( ) -
setStats( ) -
getStats( ) -
load_from_buffer( ) -

from inference-engine-node.

lionkunonly avatar lionkunonly commented on June 4, 2024
Python API (struct IEExecNetwork) Node.js API (class ExecutableNetwork)
createInferRequests( ) createInferRequest( )
GetExecGraphInfo( ) -
infer( ) -
exportNetwork( ) -
getInputs( ) -
getOutputs( ) -
getMetric( ) -
getConfig( ) -
wait( ) -
getIdleRequestId( ) -

from inference-engine-node.

lionkunonly avatar lionkunonly commented on June 4, 2024
Python API (struct InferRequestWrap) Node.js API (class InferRequest)
infer( ) infer( )
infer_async( ) startAsync( )
wait( ) -
setCyCallback( ) -
getBlobPtr( ) getBlob( )
setBatch( ) -
getPerformanceCounts() -

from inference-engine-node.

lionkunonly avatar lionkunonly commented on June 4, 2024
Python API (struct IEPlugin) Node.js API (-)
load( ) -
setConfig( ) -
addCpuExtension( ) -
setInitialAffinity( ) -
queryNetwork( ) -

I do not find corresponding class in Node.js API for the struct IEPlugin.

from inference-engine-node.

lionkunonly avatar lionkunonly commented on June 4, 2024

There are some classes in Node.js API that do not have corresponding API in Python.

The class Blob is used to help user operate the class Blob in OpenVINO.

Node.js API (class Blob)
ByteSize( )
Size( )
Rwmap( )
Rmap( )
Wmap( )
Unmap( )
Memmap( )

The class InputInfo and class OutputInfo are used to support operations of the Inputinfo and Outputinfo respectively.

Node.js API (class InputInfo) Node.js API (class OutputInfo)
name( ) name( )
getPrecision( ) getPrecision( )
setPrecision( ) setPrecision( )
getLayout( ) getLayout( )
setLayout( ) -
getDims( ) getDims( )
getPreProcess( ) -

The class PreProcessInfo is developing. It is used to support PreProcessInfo in OpenVINO.

Node.js API (class PreProcessInfo)
getColorFormat( )
setColorFormat( )
getResizeAlgorithm( )
setResizeAlgorithm( )
getMeanVariant( )
setVariant( )
getPreProcessChannel( ) (On the way)
setPreProcessChannel( ) (On the way)

That is all at this time.

from inference-engine-node.

huningxin avatar huningxin commented on June 4, 2024

@artyomtugaryov please help review the comparison table.

from inference-engine-node.

huningxin avatar huningxin commented on June 4, 2024

The comparison is done, let's close this issue.

from inference-engine-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.