[Other]Add FlyCV for RV1126 (#985)

* add FlyCV for RV1126

* update CMake
This commit is contained in:
yeliang2258
2022-12-28 10:46:55 +08:00
committed by GitHub
parent aea454a856
commit 1da821a871
11 changed files with 24 additions and 51 deletions

View File

@@ -23,7 +23,7 @@ void InitAndInfer(const std::string& model_dir, const std::string& image_file) {
auto model_file = model_dir + sep + "model.pdmodel";
auto params_file = model_dir + sep + "model.pdiparams";
auto subgraph_file = model_dir + sep + "subgraph.txt";
fastdeploy::vision::EnableFlyCV();
fastdeploy::RuntimeOption option;
option.UseTimVX();
option.SetLiteSubgraphPartitionPath(subgraph_file);