Closed xiaotongnii closed 2 years ago
Hi @Shelton-N,
We dropped support for Caffe in 21.05 and as such no longer have information on where the AlexNet model came from. I'm sorry that I can't help more!
Best of luck, Ryan
@ArmRyan ,
I know that, but, some app still use as armnn21.02,please give me some advices.
I from http://dl.caffe.berkeleyvision.org/bvlc_alexnet.caffemodel to convert bath size = 1 ,bvlc_alexnet_1.caffemodel,
I try again:
./CaffeAlexNet-Armnn -d ../data/ -m ../model/ -i 1 -e 1 -c CpuRef -l ../labels/imagenet_labels.txt -v 1
failed erro:
08-02 21:48:39.848 31795 31795 D armnn : Info: ArmNN v22.0.0 08-02 21:48:39.865 31795 31795 D armnn : Info: Initialization time: 16.47 ms 08-02 21:48:39.866 31795 31795 D armnn : Info: Shutdown time: 0.00 ms 08-02 21:48:39.866 31795 31795 D armnn : Fatal: Armnn Error: Data blob at index 0 in layer conv1 has an unexpected size. Expected 34848 elements but got 0 elements. at function GetDataFromBlob [/home/armnn/src/armnnCaffeParser/CaffeParser.cpp:115]
The latest version is v22.05.1, We don't provide support for deprecated features. From what you have sent, It seems like it is not finding the data being provided, I would check that the data file is being passed in correctly and that the file is not empty.
I'm sorry I can't help anymore! Ryan
OK,thanks
system info: armnn 21.02 ubuntu18.04 platform:android aarch:arm corterA76+A55
when CaffeAlexNet-Armnn test for armnn, erro happend.
CaffeAlexNet-Armnn -i 1 -d ../data/ -m ../model -c CpuRef -l ../labels/imagenet_labels.txt --inference-times-file ./out -e 1 -v 1 --fp16-turbo-mode 1 --validation-file-out ./out
armnn : Fatal: Armnn Error: Couldn't find requested output layer '**prob**' in graph
model: bvlc_alexnet_1.caffemodel netron show bvlc_alexnet_1.caffemodel that input node :data, output node:fc8,but CaffeAlexNet-Armnn output node prob;Where can get bvlc_alexnet_1.caffemodel for armnn test or other way to deal with it.
` int main(int argc, char* argv[]) { int retVal = EXIT_FAILURE; try { using DataType = float; using DatabaseType = CaffePreprocessor; using ParserType = armnnCaffeParser::ICaffeParser; using ModelType = InferenceModel<ParserType, DataType>;
} `