question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scrfd how to convert to onnx?

See original GitHub issue

While using scrfd2onnx.py, what should be the values of build_model_from_cfg, generate_inputs_and_wrap_model, and preprocess_example_input in from mmdet.core import (build_model_from_cfg, generate_inputs_and_wrap_model, preprocess_example_input)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

5reactions
rahulsharma11commented, Aug 22, 2022

Hi, @chenscottus , Did above suggestion worked?

I did the same but still same error of KeyError: ‘SCRFD is not in the models registry’

2reactions
chenscottuscommented, Nov 30, 2021

Change from mmdet.core import (build_model_from_cfg, generate_inputs_and_wrap_model, preprocess_example_input) ==>>>>> from mmdet.core.export import build_model_from_cfg, preprocess_example_input, generate_inputs_and_wrap_model

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert your PyTorch training model to ONNX - Microsoft Learn
To be able to integrate it with Windows ML app, you'll need to convert the model to ONNX format. Export the model. To...
Read more >
记录SCRFD(CVPR2021)人脸检测C++工程化(含docker镜像)
当时用的是以下仓库的onnx文件来转ncnn、MNN和TNN模型,遇到了一些op转换问题,不得已才用了上篇文章写的奇怪的trick。
Read more >
Converting an ONNX Model - OpenVINO™ Documentation
This page provides instructions on how to convert a model from the ONNX format to the OpenVINO IR format using Model Optimizer. To...
Read more >
Scrfd onnx - fritteuse-test
If the passed-in model is not already a ScriptModule, export() will use tracing to convert it to one:. Tracing: If torch.onnx.export() is called...
Read more >
How to Convert a PyTorch Model to ONNX in 5 Minutes - Deci AI
ONNX supports all the popular machine learning frameworks including Keras, TensorFlow, Scikit-learn, PyTorch, and XGBoost. ONNX also enables ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found