Skip to content

Yolo V5 Inferencing on CPU Machine #10268

Closed as not planned
Closed as not planned
@rahul1728jha

Description

Search before asking

Question

Hi All,

I am trying to inference using yolo v5. Below is the setup being used:

System Configuration :
Operating system : Windows
Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz 1.80 GHz
Installed RAM 8.00 GB (7.86 GB usable)
System type 64-bit operating system, x64-based processor

Setup:
Input source : Real time RTSP stream from IP camera
Output : Annotated frames

Code:
sample code is like

model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True, )
results = detection_model(frame)
labels, confidence, _ = results.xyxyn[0][:, -1], results.xyxyn[0][:, -2], results.xyxyn[0][:, :-1]
detections = results.pred[0]
dets_prod = detections.to("cpu")

Current metrics
Able to process 30 frames in 6 seconds i.e. getting a output @ 5FPS

Question :
My Constraint is I have to run it on a CPU.

  • My input stream is at 30FPS. With Yolo v5 running on CPU, can i achieve the rate of 30FPS?
  • Is it possible to achieve 30FPS on a more powerful machine in terms of RAM and process(No GPU)

Additional

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions