ultralytics / yolov3

YOLOv3 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
10.22k stars 3.45k forks source link

issue in Download COCO test-dev2017 part when test in colab #1741

Closed haidykhaled closed 3 years ago

haidykhaled commented 3 years ago

❔Question

Additional context

issue

github-actions[bot] commented 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.

Requirements

Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7. To install run:

$ pip install -r requirements.txt

Environments

YOLOv3 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

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.

glenn-jocher commented 3 years ago

@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

haidykhaled commented 3 years ago

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 .

glenn-jocher commented 3 years ago

@haidykhaled you would sum detections for the person class.

haidykhaled commented 3 years ago

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 .

glenn-jocher commented 3 years ago

@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

haidykhaled commented 3 years ago

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

β€” 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 commented 3 years ago

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

β€” 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 .

glenn-jocher commented 3 years ago

@haidykhaled see PyTorch Hub tutorial:

YOLOv5 Tutorials

haidykhaled commented 3 years ago

Thank you!

On Sun, Apr 18, 2021, 11:30 AM Glenn Jocher @.***> wrote:

@haidykhaled https://github.com/haidykhaled see PyTorch Hub tutorial: YOLOv5 Tutorials

β€” 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 .

github-actions[bot] commented 3 years ago

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.

glenn-jocher commented 9 months ago

You're welcome, @haidykhaled! If you have any more questions or need further assistance, feel free to ask. Happy coding! πŸ˜ŠπŸ‘