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

Fixes for YOLOv4 tiny training #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

stellasphere
Copy link
Contributor

Description

Fixes for the YOLOv4 training notebook, addressing issue #28

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

Tested on the BCCD dataset with Colab Free

Any specific deployment considerations

For example, documentation changes, usability, usage/costs, secrets, etc.

Docs

  • Docs updated? What were the changes:

@capjamesg capjamesg self-requested a review October 27, 2023 15:26
@capjamesg capjamesg removed their request for review February 6, 2024 15:03
@NihadBadalov
Copy link

Is this going to get merged? #28 is open for already two years

@stellasphere stellasphere requested a review from capjamesg July 2, 2024 18:39
Copy link
Collaborator

@capjamesg capjamesg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This notebook is almost ready to go.

Can you replace the contents of the last cell with:

#/test has images that we can test our detector on
test_images = [f for f in os.listdir('./BCCD-4/test/') if f.endswith('.jpg')]
import random
img_path = "./BCCD-4/test/" + random.choice(test_images);

#test out our detector!
!./darknet detect /content/darknet/cfg/custom-yolov4-tiny-detector.cfg /content/darknet/backup/custom-yolov4-tiny-detector_last.weights {img_path} -dont-show
imShow('/content/darknet/predictions.jpg')

As is, the model weights, configuration, and image do not load properly.

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

Successfully merging this pull request may close these issues.

4 participants