New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with graph_alexnet.cpp #1094
Comments
Hi @sdavejones Could you please let us know what's in the folder If you don't specify the folder to the model's correct weights the example will initialize the weights with random values and the results won't be correct. We don't distribute the weights files Hope this helps |
Hi @morgolock As mentioned, I followed that example. There's a paragraph in the content of that web page that says: I downloaded the file from here: Thanks. |
Tested same example in v23.11: ./graph_alexnet --data=$PATH_ASSETS --image=$PATH_ASSETS/go_kart.ppm --labels=$PATH_ASSETS/labels.txt ./graph_alexnet Threads : 1 ---------- Top 5 predictions ---------- 0.9736 - [id = 573], n03444034 go-kart Test passed You can see that the result matches the example.... |
Hi @morgolock I have the same issue as @sdavejones. Thoughts? Note I have attempted ACL-neon and ACL-neon-cl, both give the same result with go-kart.ppm input giving the christmas-stocking label output also: |
Update! I changed to ACL ver22.11 and it worked. for ref: |
I tried running this example in version 24.01:
https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/running-alexnet-on-raspberry-pi-with-compute-library
./graph_alexnet --data=$PATH_ASSETS --image=$PATH_ASSETS/go_kart.ppm --labels=$PATH_ASSETS/labels.txt
./graph_alexnet
Threads : 1
Target : Neon
Data type : F32
Data layout : NHWC
Tuner enabled? : false
Cache enabled? : false
Tuner mode : Normal
Tuner file :
MLGO file :
Fast math enabled? : false
Data path : /root/assets_alexnet
Image file : /root/assets_alexnet/go_kart.ppm
Labels file : /root/assets_alexnet/labels.txt
---------- Top 5 predictions ----------
0.3899 - [id = 496], n03026506 Christmas stocking
0.0862 - [id = 658], n03775071 mitten
0.0749 - [id = 806], n04254777 sock
0.0225 - [id = 474], n02963159 cardigan
0.0221 - [id = 893], n04548362 wallet, billfold, notecase, pocketbook
Test passed
Looks like the output isn't quite correct...
The text was updated successfully, but these errors were encountered: