Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom cfg file #149

Open
ErenKaymakci opened this issue Sep 28, 2022 · 2 comments
Open

custom cfg file #149

ErenKaymakci opened this issue Sep 28, 2022 · 2 comments

Comments

@ErenKaymakci
Copy link

ErenKaymakci commented Sep 28, 2022

I changed .cfg file for small objects like here: https://github.com/AlexeyAB/darknet#how-to-improve-object-detection
and when I run python save_model.py --model yolov4 , I got this error:
File "/content/yolov4-deepsort/core/utils.py", line 63, in load_weights
conv_weights = conv_weights.reshape(conv_shape).transpose([2, 3, 1, 0])
ValueError: cannot reshape array of size 8192 into shape (24,1024,1,1)

I suggest updating the repo as we can add the cfg file path and the algorithm gets all the parameters there.

@guillermoecn
Copy link

Hi, did you find a solution?

@mg-12345
Copy link

mg-12345 commented Nov 25, 2022

What is the input image size of your YOLOv4 network (from the .cfg file)?

If it's different than 416, you will need to specify that with the run command. Such as:

python save_model.py --model yolov4 --input_size 512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants