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

Feature/classification tutorial refactor #10039

Conversation

paulguerrie
Copy link
Contributor

@paulguerrie paulguerrie commented Nov 4, 2022

Refactored the classification tutorial to match the main tutorial.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Added a comprehensive tutorial notebook for YOLOv5 classification tasks.

πŸ“Š Key Changes

  • πŸ“ New tutorial.ipynb notebook added for classification.
  • πŸš€ Includes setup, prediction, validation, and training guidelines.
  • ✨ Features tensorboard integration for logging and visualization.
  • πŸŽ“ Instructions for active learning loop closure using Roboflow.
  • πŸ§ͺ Comet and ClearML integration details provided.
  • πŸ”’ Local logging with CSV and TensorBoard explained.
  • πŸ“š Additional appendix content for further learning and execution.

🎯 Purpose & Impact

  • πŸ“– Provides an end-to-end tutorial for users interested in YOLOv5 classification to follow along easily.
  • πŸ› οΈ Facilitates easier setup and use of YOLOv5's classification capabilities, potentially increasing adoption and user success.
  • πŸ‹οΈβ€β™‚οΈ Helps users understand and apply transfer learning for their custom classification tasks.
  • 🌐 Enhances user experience by integrating with robust experiment tracking and dataset versioning systems.

paulguerrie and others added 19 commits August 20, 2022 09:32
…their own code snippet. Also added an active learning section at the end.
…rie/yolov5 into feature/classification-tutorial
…ious methods of input for `classify/predict.py`.
…rie/yolov5 into feature/classification-tutorial
@paulguerrie
Copy link
Contributor Author

Here's the predict output image for you guys to host.

zidane

@glenn-jocher glenn-jocher self-assigned this Nov 5, 2022
@glenn-jocher
Copy link
Member

@paulguerrie thanks! I'll take a look. Did you run inference at --img 224 for zidane.jpg? Confidence seem pretty low.

@paulguerrie
Copy link
Contributor Author

I don't think so. I'm pretty sure the image I provided was the output of this command: !python classify/predict.py --weights yolov5s-cls.pt --img 640 --source data/images

@glenn-jocher
Copy link
Member

I don't think so. I'm pretty sure the image I provided was the output of this command: !python classify/predict.py --weights yolov5s-cls.pt --img 640 --source data/images

Ohh ok got it. That makes sense then. The ImageNet-trained classification models are all at --imgsz 224, so running them at 640 will cause poor results. Detection and Segmentation are all at 640 though :)

@glenn-jocher
Copy link
Member

@paulguerrie hey I'm updating all notebooks now, just noticed there seems to be an image missing here. I think I'm going to merge this now, but if you can provide me the updated image URL I can fix this. This should probably be an image of Roboflow classification annotation, or just annotation in general.

Screenshot 2022-11-18 at 22 00 12

@glenn-jocher
Copy link
Member

EDIT, I'll just use this one from the blog post :)

Screen-Shot-2022-08-19-at-3 52 11-PM

Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher removed the TODO label Nov 18, 2022
@glenn-jocher glenn-jocher merged commit 6f377f9 into ultralytics:master Nov 18, 2022
@glenn-jocher
Copy link
Member

@paulguerrie PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

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.

None yet

3 participants