Skip to content
New issue

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

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

Already on GitHub? # to your account

Please provide obj.data and obj.names #4

Open
sriks6711 opened this issue Oct 16, 2023 · 4 comments
Open

Please provide obj.data and obj.names #4

sriks6711 opened this issue Oct 16, 2023 · 4 comments

Comments

@sriks6711
Copy link

To make the command [1] run successfully, we also need obj.data and obj.names.

[1] $ ./darknet detector demo data/obj.data cfg/yolov4-tiny-obj.cfg yolov4-tiny-obj_best.weights

@sriks6711
Copy link
Author

To make the command [1] run successfully, we also need obj.data and obj.names.

[1] $ ./darknet detector demo data/obj.data cfg/yolov4-tiny-obj.cfg yolov4-tiny-obj_best.weights

@jaydubai While only @achen353 can provide them, here is a placeholder working somewhat -

  1. obj.data (a simple text file with the following contents)
    classes=4
    names=data/obj.names

  2. obj.names (a simple text file with the following contents which contains the 4 classes)
    vehicle
    scooter
    pedestrian
    bicycle

@jaydubal
Copy link

Thanks, still not working on my end. Even when using the obj.names you suggested.
I guess the main problem is the missing .cfg
Which .cfg are you using?

@mayank-xinthe
Copy link

mayank-xinthe commented Apr 26, 2024

Below are the changes that we have made for successful execution.

Few Modifications we have Made:

A. In File cfg/yolov4-tiny-custom.cfg:
    1. Replace filters=255 to filters=27 at line 212 and 361
    2. Replace classes=80 to classes=4 at line 218 and 267

B. In File cfg/coco.data:
    1. Replace classes= 80 to classes= 4 at line 1

C. In File data/coco.names:
    Replace the file contents as below:
        vehicle
        scooter
        pedestrian
        bicycle

After above modifications are made, ececute the below command:
./darknet detector demo cfg/coco.data cfg/yolov4-tiny-custom.cfg backup/yolov4-tiny-obj_best.weights sample_input video eg: ABC.mp4

@jaydubal
Copy link

jaydubal commented Apr 26, 2024

Yes it is working now... the line 361 is actually 263 in .cfg file

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

No branches or pull requests

3 participants