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

Wrong validation image viewing path in YOLOv8 object detection training notebook #293

Closed
2 tasks done
ukicomputers opened this issue Jul 25, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@ukicomputers
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

train-yolov8-object-detection-on-custom-dataset.ipynb

Bug

In following section (in the notebook):

Inference with Custom Model

...
NOTE: Let's take a look at few results.

import glob
from IPython.display import Image, display

for image_path in glob.glob(f'{HOME}/runs/detect/predict3/*.jpg')[:3]:
     display(Image(filename=image_path, width=600))
     print("\n")

In noted Python code, directory set in glob is set to predict3 (someone got it wrong because they ran train/detection multiple times, and by default, every new train/detection directory in that dir is set by index, so they set to latest "index"). It should be just predict, the default index (see below).

import glob
from IPython.display import Image, display

for image_path in glob.glob(f'{HOME}/runs/detect/predict/*.jpg')[:3]:
      display(Image(filename=image_path, width=600))
      print("\n")

Environment

  • Google Colab

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@ukicomputers ukicomputers added the bug Something isn't working label Jul 25, 2024
@SkalskiP
Copy link
Collaborator

Hi @ukicomputers 👋🏻 thanks for pointing this out! I noticed that you checked Yes I'd like to help by submitting a PR!. Feel free to submit PR with the fix.

@SkalskiP
Copy link
Collaborator

SkalskiP commented Aug 6, 2024

This issue was solved via #295.

@SkalskiP SkalskiP closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants