Skip to content
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

Question regarding output vectors from 02-MNIST_classification_tf tutorial #104

Open
mohitajais opened this issue Aug 2, 2023 · 0 comments

Comments

@mohitajais
Copy link

Hello, everyone!

I have followed the MNIST classification tutorial and was able to train, quantize and compile the model for the MNIST classification. I run app_mt.py on Kria KV260 with the compiled model to test 10010 images.

I get the following output

xilinx-k26-starterkit-2020_2:~$ python3 app_mt.py
Command line options:
--image_dir : img_dir
--threads : 1
--model : images_in.xmodel
Pre-processing 10010 images...
Starting 1 threads...
Throughput=5132.91 fps, total frames = 10010, time=1.9502 seconds
Correct:983, Wrong:9027, Accuracy:0.0982
I have compiled the model with B3136 architecture. The model is giving low accuracy on Kria FPGA. Also, When I am printing output vectors then, it is showing
Output Vector 0: [array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=int8)].

Why it is showing 0 instead of showing any prediction value.? How to print output vectors or predictions after
this line job_id = dpu.execute_async(inputData,outputData[len(ids)])

Is there any problem with generated compiled model for such a low accuracy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant