KhronosGroup / NNEF-Tools

The NNEF Tools repository contains tools to generate and consume NNEF documents
https://www.khronos.org/nnef
222 stars 58 forks source link

Caffe to NNEF: No support for Prelu's #72

Closed neil-jones-work closed 5 years ago

neil-jones-work commented 5 years ago

I'm trying to convert MTCNN to NNEF (and ultimately to openVX) but the Caffe converter doesn't support Prelu activations:

~/src/MTCNN_face_detection_alignment/code/codes/MTCNNv1/model$ caffe_to_nnef det1.prototxt --model det1.caffemodel Error: caffe_to_dog: No converter for: PReLU Error: caffe_to_dog: No converter for: PReLU Error: caffe_to_dog: No converter for: PReLU Error: No converter for PReLU Error: conv1_1: Corresponding targetdn not defined Error: No converter for PReLU Error: conv2_1: Corresponding targetdn not defined Error: No converter for PReLU Error: conv3_1: Corresponding targetdn not defined

https://github.com/kpzhang93/MTCNN_face_detection_alignment

gyenesvi commented 5 years ago

Indeed, this is missing from the converter, we'll add it soon.

gyenesvi commented 5 years ago

We have added prelu support, can you test it now?

neil-jones-work commented 5 years ago

Yes the model now successfully converts thanks! IIRC there used to be an NNEF to openVX converter on the Khronos site, Is this still supported ? if not will openVX output be added to the NNEF converter ?

gyenesvi commented 5 years ago

It believe there was no official such converter. Where was that converter available?

neil-jones-work commented 5 years ago

This was what I was thinking of, but its AMD specific:

https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-modules/blob/develop/utils/model_compiler/README.md

Any plans for a more generic one ?


From: Viktor Gyenes notifications@github.com Sent: 02 April 2019 16:23:36 To: KhronosGroup/NNEF-Tools Cc: Neil Jones; Author Subject: Re: [KhronosGroup/NNEF-Tools] Caffe to NNEF: No support for Prelu's (#72)

It believe there was no official such converter. Where was that converter available?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/KhronosGroup/NNEF-Tools/issues/72#issuecomment-479048938, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aui6IZsc9Q001DvUEXMBn115NMwFb_R9ks5vc3X4gaJpZM4cCKDu.

gyenesvi commented 5 years ago

I believe the OpenVX group is working on a mechanism to import NNEF models into OpenVX, that can be implemented by vendors, but I cannot tell details about it until the spec is published.