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

model_deploy.py --chip cv183x 报错 #186

Open
micro-step opened this issue Aug 19, 2024 · 1 comment
Open

model_deploy.py --chip cv183x 报错 #186

micro-step opened this issue Aug 19, 2024 · 1 comment

Comments

@micro-step
Copy link

--chip bm1684x 可以通过,cv183x 报错
==---------------------------==
GmemAllocator use FitFirstAssign
[Success]: tpuc-opt yolov5s_cv183x_f16_tpu.mlir --mlir-disable-threading --strip-io-quant="quant_input=False quant_output=False quant_input_list= quant_output_list=" --processor-tpu-optimize --dev-parallel --weight-reorder --subnet-divide="dynamic=False" --op-reorder --layer-group="opt=2 group_by_cores=auto compress_mode=none" --core-parallel --address-assign -o yolov5s_cv183x_f16_final.mlir
[Running]: tpuc-opt yolov5s_cv183x_f16_final.mlir --codegen="model_file=yolov5s_1684x_f16.bmodel embed_debug_info=False model_version=latest" -o /dev/null
[Success]: tpuc-opt yolov5s_cv183x_f16_final.mlir --codegen="model_file=yolov5s_1684x_f16.bmodel embed_debug_info=False model_version=latest" -o /dev/null
[Running]: mv compiler_profile_0.[td][xa]t yolov5s_1684x_f16.bmodel.compiler_profile_0.txt
mv: cannot stat 'compiler_profile_0.[td][xa]t': No such file or directory
[CMD]: model_runner.py --input yolov5s_in_f32.npz --model yolov5s_1684x_f16.bmodel --output yolov5s_cv183x_f16_model_outputs.npz
begin to cmodel init...
mult engine c_model init
bmcpu init: skip cpu_user_defined
Cannot open libusercpu.so, disable user cpu layer.
bmcpu init: skip cpu_user_defined
Cannot open libusercpu.so, disable user cpu layer.
[BMODEL][ModelCtx:496] FATAL: File[yolov5s_1684x_f16.bmodel] is broken ..
python3: /__w/tpu-mlir/tpu-mlir/bindings/pyruntime/pyruntime_bm.cpp:289: PythonModel::PythonModel(const std::string &, int, const std::string &): Assertion `flag == true' failed.

@we11d0ne
Copy link

we11d0ne commented Sep 5, 2024

--chip bm1684x 可以通过,cv183x 报错 ==---------------------------== GmemAllocator use FitFirstAssign [Success]: tpuc-opt yolov5s_cv183x_f16_tpu.mlir --mlir-disable-threading --strip-io-quant="quant_input=False quant_output=False quant_input_list= quant_output_list=" --processor-tpu-optimize --dev-parallel --weight-reorder --subnet-divide="dynamic=False" --op-reorder --layer-group="opt=2 group_by_cores=auto compress_mode=none" --core-parallel --address-assign -o yolov5s_cv183x_f16_final.mlir [Running]: tpuc-opt yolov5s_cv183x_f16_final.mlir --codegen="model_file=yolov5s_1684x_f16.bmodel embed_debug_info=False model_version=latest" -o /dev/null [Success]: tpuc-opt yolov5s_cv183x_f16_final.mlir --codegen="model_file=yolov5s_1684x_f16.bmodel embed_debug_info=False model_version=latest" -o /dev/null [Running]: mv compiler_profile_0.[td][xa]t yolov5s_1684x_f16.bmodel.compiler_profile_0.txt mv: cannot stat 'compiler_profile_0.[td][xa]t': No such file or directory [CMD]: model_runner.py --input yolov5s_in_f32.npz --model yolov5s_1684x_f16.bmodel --output yolov5s_cv183x_f16_model_outputs.npz begin to cmodel init... mult engine c_model init bmcpu init: skip cpu_user_defined Cannot open libusercpu.so, disable user cpu layer. bmcpu init: skip cpu_user_defined Cannot open libusercpu.so, disable user cpu layer. [BMODEL][ModelCtx:496] FATAL: File[yolov5s_1684x_f16.bmodel] is broken .. python3: /__w/tpu-mlir/tpu-mlir/bindings/pyruntime/pyruntime_bm.cpp:289: PythonModel::PythonModel(const std::string &, int, const std::string &): Assertion `flag == true' failed.

cv18xx系列好像不支持bmodel,应该可以转cvimodel

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

2 participants