Skip to content

Frequently Asked Problems

Yuantao Feng edited this page Nov 28, 2022 · 1 revision

This page provides answers to frequently asked problems.

Getting models

error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model

You need to install git-lfs to clone this repo to get valid models:

# Install git-lfs from https://git-lfs.github.com/
git clone https://github.com/opencv/opencv_zoo && cd opencv_zoo
git lfs install
git lfs pull

LFS (Large File Storage) is used to store big files, e.g. model weights, in this repo. You will need to install git-lfs in order to get the valid clone of models, otherwise the cloned models will be resulted in some text files of size ~131B containing LFS information.

All models are of size ~131B in my clone?

See the above error.

How can I download one of the model from the zoo?

  1. Go to the home page of opencv_zoo,
  2. Click models,
  3. Pick and click one of the models. Lets say you choose face_detection_yunet,
  4. Click face_detection_yunet_2022mar.onnx,
  5. You will see there is a 'Download' button in the page like the following screenshot. Click the button to download the model.

image