nvdla / sw

NVDLA SW
Other
481 stars 191 forks source link

[U May Need It]nvdla_runtime options #9

Closed JunningWu closed 6 years ago

JunningWu commented 6 years ago

./nvdla_runtime -loadable output.protobuf

Usage: ./nvdla_runtime [-options] --loadable where options include: -h print this help message -s launch test in server mode --loadable
--image
--imgshift
--imgscale
--imgpower
--softmax

ferin08 commented 6 years ago

I'm still not clear. Is default.nvdla the loadable file? If yes, where can I find this file.

Also, how do I create a loadable file from output.protobuf which is the compiler output

prasshantg commented 6 years ago

@ferin08 Output from compiler is default.nvdla

ferin08 commented 6 years ago

After giving the prototext and caffe model file that I got from the DIGITS model output using this command:

./nvdla_compiler [-options] –prototxt <prototxt_file> –caffemodel <caffemodel_file> -o <outputpath>

I get an output file from the complier called output.protobuf Nothing with nvdla.default Where do we get nvdla.default?

smsharif1991 commented 6 years ago

Hi @ferin08 , ./nvdla_compiler --prototxt alexnet.prototxt --model alexnet.caffemodel

After running the above command I get "basic.nvdla" file in the current folder from where it is run. This basic.nvdla is the loadable file which is then feeded on to runtime for inferencing,

Check for *.nvdla in your current folder.

Thanks.

ferin08 commented 6 years ago

Hi @smsharif1991 Thank You! I was able to see the basic.nvdla loadable file.

Regarding the compiler and runtime test is there any more documentation other than http://nvdla.org/sw/test_application.html

smsharif1991 commented 6 years ago

Hi @ferin Currently we have this much documentation only. What more additional info is required?? Let us know so that we can add it to the documentation.

Thanks.

ferin08 commented 6 years ago

How do we use '-s' to "launch test in server mode"?

Also, I tested a few images using --rawdump. But the output in output.dimg isn't changing (It the same output as the first time). I am removing the file before testing each time. Is there something that I am missing?

prasshantg commented 6 years ago

Which model are you using to test?

ferin08 commented 6 years ago

lenet

ferin08 commented 6 years ago

Still have not been able to resolve this issue.

"Also, I tested a few images using --rawdump. But the output in output.dimg isn't changing (It the same output as the first time). I am removing the file before testing each time. Is there something that I am missing?"

Anyway we can solve this problem?

Adithyak1998 commented 6 years ago

@prasshantg @smsharif1991 Even I have the issue where my output.dimg isn't getting updated. It's stuck with the 1st output values I got. How do I fix this?