nvdla / sw

NVDLA SW
Other
487 stars 192 forks source link

Unable to identify outputs for the network [nvdla_compiler/question] #60

Open anakin1028 opened 6 years ago

anakin1028 commented 6 years ago

Hi, I got a problem when use the nvdla_compiler. The command I used is:

./nvdla_compiler --prototxt ./cnn/HybridCNN/hybridCNN_deploy.prototxt  --caffemodel ./cnn/HybridCNN/hybridCNN_iter_700000.caffemodel

The stdout is:

creating new wisdom context...
opening wisdom context...
parsing caffe network...
Marking total 0 outputs
(DLA) Error 0x0000000b: Unable to identify outputs for the network: 0 (in ParseTest.cpp, function parseCaffeNetwork(), line 99)
(DLA) Error 0x0000000b: (propagating from ParseTest.cpp, function parseAndCompile(), line 164)
(DLA) Error 0x0000000b: (propagating from main.cpp, function launchTest(), line 87)

I'm not sure if I get the correct input for using nvdla_compiler since when I try to use another model, it works:

root@anakin1028-VGN-Z25TN-B:/home/anakin1028/sw/prebuilt/linux# ./nvdla_compiler --prototxt ./cnn/mnist/lenet.prototxt --caffemodel ./cnn/mnist/lenet_iter_10000.caffemodel 
creating new wisdom context...
opening wisdom context...
parsing caffe network...
libnvdla<3> mark prob
Marking total 1 outputs
attaching parsed network to the wisdom...
compiling profile "basic"...
libnvdla<3> compile network
libnvdla<3> compile203
profile compiled "basic"...
closing wisdom context...

I then dive into the format of the prototxt files, and found indeed the two files are different but I don't know what's the root cause. Any guidance are welcome, thanks!

smsharif1991 commented 6 years ago

Hi @anakin1028 , Which model you are trying to run?? It seems that the model you are trying has some different configuration which is not supported by the compiler.

Can you please provide the prototxt and caffemodel?

Thanks.

anakin1028 commented 6 years ago

Hi the hybridCNN pastebin link is the prototxt.

Original data: contains both caffemodel and prototxt. http://places.csail.mit.edu/model/hybridCNN.tar.gz