Closed haidykhaled closed 3 years ago
π Hello @haidykhaled, thank you for your interest in YOLOv3 π! Please visit our βοΈ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.
If this is a π Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training β Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com.
Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7
. To install run:
$ pip install -r requirements.txt
YOLOv3 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
If this badge is green, all YOLOv3 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv3 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
@haidykhaled this was fixed last month in a PR. Please use the latest notebook and let us know if you have an more issues! https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb?hl=en
Thank you. Can you tell me if I want to count the number of predictions that predict the object as a person, how can I do this?
On Wed, Apr 14, 2021 at 7:26 PM Glenn Jocher @.***> wrote:
@haidykhaled https://github.com/haidykhaled this was fixed last month in a PR. Please use the latest notebook and let us know if you have an more issues!
https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb?hl=en
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov3/issues/1741#issuecomment-819689493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4HXCLE33W22ZMYR4YZIH3TIXF5RANCNFSM424FX6GQ .
@haidykhaled you would sum detections for the person class.
Thanks for your reply I really appreciate it, and where is the person is classified?
On Thu, Apr 15, 2021 at 1:16 PM Glenn Jocher @.***> wrote:
@haidykhaled https://github.com/haidykhaled you would sum detections for the person class.
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov3/issues/1741#issuecomment-820344044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4HXCMCYBFMF4FSYCMGHQ3TI3DKRANCNFSM424FX6GQ .
@haidykhaled see PyTorch Hub tutorial:
import torch
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
# Image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/bus.jpg'
# Inference
results = model(img)
results.xyxy[0] # img1 predictions (tensor)
results.pandas().xyxy[0] # img1 predictions (pandas)
# xmin ymin xmax ymax confidence class name
# 0 749.50 43.50 1148.0 704.5 0.874023 0 person
# 1 433.50 433.50 517.5 714.5 0.687988 27 tie
# 2 114.75 195.75 1095.0 708.0 0.624512 0 person
# 3 986.00 304.00 1028.0 420.0 0.286865 27 tie
Thanks, I'll see it.
On Sat, Apr 17, 2021 at 11:24 AM Glenn Jocher @.***> wrote:
@haidykhaled https://github.com/haidykhaled see PyTorch Hub tutorial:
import torch
Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
Image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/bus.jpg'
Inference
results = model(img)
results.xyxy[0] # img1 predictions (tensor) results.pandas().xyxy[0] # img1 predictions (pandas)
xmin ymin xmax ymax confidence class name
0 749.50 43.50 1148.0 704.5 0.874023 0 person
1 433.50 433.50 517.5 714.5 0.687988 27 tie
2 114.75 195.75 1095.0 708.0 0.624512 0 person
3 986.00 304.00 1028.0 420.0 0.286865 27 tie
YOLOv5 Tutorials
- Train Custom Data https://docs.ultralytics.com/yolov5/tutorials/train_custom_data π RECOMMENDED
- Tips for Best Training Results https://docs.ultralytics.com/guides/model-training-tips/ βοΈ RECOMMENDED
- Weights & Biases Logging https://github.com/ultralytics/yolov5/issues/1289 π NEW
- Supervisely Ecosystem https://docs.ultralytics.com/yolov5/tutorials/model_export8 π NEW
- Multi-GPU Training https://docs.ultralytics.com/yolov5/tutorials/multi_gpu_training
- PyTorch Hub https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading β NEW
- ONNX and TorchScript Export https://docs.ultralytics.com/yolov5/tutorials/model_export
- Test-Time Augmentation (TTA) https://docs.ultralytics.com/yolov5/tutorials/test_time_augmentation
- Model Ensembling https://docs.ultralytics.com/yolov5/tutorials/model_ensembling
- Model Pruning/Sparsity https://docs.ultralytics.com/yolov5/tutorials/model_pruning_and_sparsity
- Hyperparameter Evolution https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution
- Transfer Learning with Frozen Layers https://docs.ultralytics.com/yolov5/tutorials/transfer_learning_with_frozen_layers β NEW
- TensorRT Deployment https://github.com/wang-xinyu/tensorrtx
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov3/issues/1741#issuecomment-821795365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4HXCKCGTTANWV73OJ4NPDTJFHWLANCNFSM424FX6GQ .
I saw it and I understand, now I want to work with the whole coco dataset not only the 2 photos of Zidan and the bus, and print only the count of people in the image, how to apply this?
On Sat, Apr 17, 2021 at 1:26 AM Haidy Khaled @.***> wrote:
Thanks, I'll see it.
On Sat, Apr 17, 2021 at 11:24 AM Glenn Jocher @.***> wrote:
@haidykhaled https://github.com/haidykhaled see PyTorch Hub tutorial:
import torch
Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
Image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/bus.jpg'
Inference
results = model(img)
results.xyxy[0] # img1 predictions (tensor) results.pandas().xyxy[0] # img1 predictions (pandas)
xmin ymin xmax ymax confidence class name
0 749.50 43.50 1148.0 704.5 0.874023 0 person
1 433.50 433.50 517.5 714.5 0.687988 27 tie
2 114.75 195.75 1095.0 708.0 0.624512 0 person
3 986.00 304.00 1028.0 420.0 0.286865 27 tie
YOLOv5 Tutorials
- Train Custom Data https://docs.ultralytics.com/yolov5/tutorials/train_custom_data π RECOMMENDED
- Tips for Best Training Results https://docs.ultralytics.com/guides/model-training-tips/ βοΈ RECOMMENDED
- Weights & Biases Logging https://github.com/ultralytics/yolov5/issues/1289 π NEW
- Supervisely Ecosystem https://docs.ultralytics.com/yolov5/tutorials/model_export8 π NEW
- Multi-GPU Training https://docs.ultralytics.com/yolov5/tutorials/multi_gpu_training
- PyTorch Hub https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading β NEW
- ONNX and TorchScript Export https://docs.ultralytics.com/yolov5/tutorials/model_export
- Test-Time Augmentation (TTA) https://docs.ultralytics.com/yolov5/tutorials/test_time_augmentation
- Model Ensembling https://docs.ultralytics.com/yolov5/tutorials/model_ensembling
- Model Pruning/Sparsity https://docs.ultralytics.com/yolov5/tutorials/model_pruning_and_sparsity
- Hyperparameter Evolution https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution
- Transfer Learning with Frozen Layers https://docs.ultralytics.com/yolov5/tutorials/transfer_learning_with_frozen_layers β NEW
- TensorRT Deployment https://github.com/wang-xinyu/tensorrtx
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov3/issues/1741#issuecomment-821795365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4HXCKCGTTANWV73OJ4NPDTJFHWLANCNFSM424FX6GQ .
@haidykhaled see PyTorch Hub tutorial:
Thank you!
On Sun, Apr 18, 2021, 11:30 AM Glenn Jocher @.***> wrote:
@haidykhaled https://github.com/haidykhaled see PyTorch Hub tutorial: YOLOv5 Tutorials
- Train Custom Data https://docs.ultralytics.com/yolov5/tutorials/train_custom_data π RECOMMENDED
- Tips for Best Training Results https://docs.ultralytics.com/guides/model-training-tips/ βοΈ RECOMMENDED
- Weights & Biases Logging https://github.com/ultralytics/yolov5/issues/1289 π NEW
- Supervisely Ecosystem https://docs.ultralytics.com/yolov5/tutorials/model_export8 π NEW
- Multi-GPU Training https://docs.ultralytics.com/yolov5/tutorials/multi_gpu_training
- PyTorch Hub https://docs.ultralytics.com/yolov5/tutorials/pytorch_hub_model_loading β NEW
- ONNX and TorchScript Export https://docs.ultralytics.com/yolov5/tutorials/model_export
- Test-Time Augmentation (TTA) https://docs.ultralytics.com/yolov5/tutorials/test_time_augmentation
- Model Ensembling https://docs.ultralytics.com/yolov5/tutorials/model_ensembling
- Model Pruning/Sparsity https://docs.ultralytics.com/yolov5/tutorials/model_pruning_and_sparsity
- Hyperparameter Evolution https://docs.ultralytics.com/yolov5/tutorials/hyperparameter_evolution
- Transfer Learning with Frozen Layers https://docs.ultralytics.com/yolov5/tutorials/transfer_learning_with_frozen_layers β NEW
- TensorRT Deployment https://github.com/wang-xinyu/tensorrtx
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov3/issues/1741#issuecomment-821961687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4HXCJUPZSC7DV4BP32OKDTJKREZANCNFSM424FX6GQ .
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
You're welcome, @haidykhaled! If you have any more questions or need further assistance, feel free to ask. Happy coding! ππ
βQuestion
Additional context