Skip to content

Weights file is not really weights! how can I use it or download it? #3

Description

@Omar-AE

While trying to run the following:

python3 custom_detector.py --image "/home/nvr/rushad7/mask-detection/images/example_01.png" --config "/home/nvr/rushad7/mask-detection/cfg/yolov3-custom.cfg" --weights "/home/nvr/rushad7/mask-detection/weights/yolov3-custom_final.weights" --names "/home/nvr/rushad7/mask-detection/class_names/voc.names"

I get the following error:

Traceback (most recent call last):
  File "custom_detector.py", line 18, in <module>
    net = cv2.dnn.readNetFromDarknet(args.config, args.weights)
cv2.error: OpenCV(4.3.0-openvino) ../opencv/modules/dnn/src/darknet/darknet_io.cpp:847: error: (-213:The function/feature is not implemented) Transpose the weights (except for convolutional) is not implemented in function 'ReadDarknetFromWeightsStream'

I opened the weights file and it seems to have a git lfs download link and oid...
How do I download the real weights file?

UPDATE:

git lfs fetch
fetch: Fetching reference refs/heads/master
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.                                                            
error: failed to fetch some objects from 'https://github.com/rushad7/mask-detection.git/info/lfs'

@rushad7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions