Replies: 1 comment 2 replies
-
@pk-1196 see PyTorch Hub Tutorial below: import torch
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
# Image
img = 'https://ultralytics.com/images/zidane.jpg'
# Inference
results = model(img)
results.print()
Using cache found in /root/.cache/torch/hub/ultralytics_yolov5_master
Fusing layers...
Model Summary: 224 layers, 7266973 parameters, 0 gradients
Adding AutoShape...
YOLOv5 🚀 2021-5-26 torch 1.8.1+cu101 CUDA:0 (Tesla P100-PCIE-16GB, 16280.875MB)
image 1/1: 720x1280 2 persons, 2 ties
Speed: 270.7ms pre-process, 12.8ms inference, 1.5ms NMS per image at shape (1, 3, 384, 640) YOLOv5 Tutorials
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, can anybody help me with how to stack different image and get prediction on that stacked images and have inference time for the above prediction .
Beta Was this translation helpful? Give feedback.
All reactions