rushad7 / mask-detection

This Python script is used to detect whether a people in the given image are wearing a mask or not. The custom dataset was trained using Darknet.
9 stars 12 forks source link

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

Open Omar-AE opened 4 years ago

Omar-AE commented 4 years ago

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

rushad7 commented 4 years ago

Sorry for the inconvenience, but this happening because I have exceeded the Git LFS usage on my account for this month. In a few days, the quota will reset, do try then

Omar-AE commented 4 years ago

@rushad7 Can you upload it on a cloud storage platform and provide a link to access it? this would be very helpful as I need it as soon as now. Thank you.

RishaSrivastava commented 4 years ago

Yes, I also need this code. Please upload the weights file ASAP.

gauthsvenkat commented 4 years ago

@rushad7 Hey, great project but it'd be great if you just moved the weights file to a google drive or some other open file-sharing website and just linked it in the readme. git lfs is kinda inconvenient.

abdulahad01 commented 4 years ago

Ya, me too, it would be a great help!

josemusso commented 4 years ago

Hi! iḿ also having trouble getting the file. Did someone get the weights file? i would appreciate if anyone can share it. Thanks in advance