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

如何在ax650n上运行,有没有对应的文档 #2

Open
oxm opened this issue Aug 24, 2024 · 1 comment
Open

如何在ax650n上运行,有没有对应的文档 #2

oxm opened this issue Aug 24, 2024 · 1 comment

Comments

@oxm
Copy link

oxm commented Aug 24, 2024

No description provided.

@oxm
Copy link
Author

oxm commented Aug 24, 2024

root@maixbox:~/nfs/OWLVIT-ONNX-AX650-CPP# ./main --ienc owlvit-image.axmodel --tenc owlvit-text.onnx -d owlvit-post.onnx -v vocab.txt -i ssd_horse.jpg -t text.txt --thread 8
WARN,Func(__is_valid_file),NOT find file = '/etc/ax_syslog.conf'
ERROR,Func(__syslog_parma_cfg_get), NOT find = '/etc/ax_syslog.conf'
Engine creating handle is done.
Engine creating context is done.
Engine get io info is done.
Engine alloc io is done.
[I][ init][ 280]: BGR MODEL
[I][ load_image_encoder][ 17]: input size 768 768
[I][ load_image_encoder][ 29]: image feature len 442368
[I][ load_image_encoder][ 32]: pred box cnt 576
[I][ load_text_encoder][ 152]: text feature len 512
[I][ main][ 170]: image_src [ssd_horse.jpg]
[I][ main][ 171]: text_src [text.txt]
encode text Inference Cost time : 0.217169s
{
"test": "cat",
"texts_feature": "cat.bin",
"input_ids":[ 49406, 2368, 49407, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}

{
"test": "dog",
"texts_feature": "dog.bin",
"input_ids":[ 49406, 1929, 49407, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}

{
"test": "bird",
"texts_feature": "bird.bin",
"input_ids":[ 49406, 3329, 49407, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}

{
"test": "person",
"texts_feature": "person.bin",
"input_ids":[ 49406, 2533, 49407, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}

post Inference Cost time : 0.0566697s
root@maixbox:/nfs/OWLVIT-ONNX-AX650-CPP# ls
bird.bin cat.bin dog.bin libonnxruntime.so.1.16.0 main owlvit-image.axmodel owlvit-text.onnx qtproj result.jpg src text.txt toolchains
build CMakeLists.txt libonnxruntime.so libopencv-4.6-aarch64-none.zip onnxruntime-aarch64-none-gnu-1.16.0.zip owlvit-post.onnx person.bin README.md scripts ssd_horse.jpg third-party vocab.txt
root@maixbox:
/nfs/OWLVIT-ONNX-AX650-CPP#
参考readme编译运行后,结果有些不对,哪里不对呢

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