Issue with fps in yolov8m-pose #14224
Replies: 1 comment 17 replies
-
@Utsav-2301 hi there! Thank you for bringing this to our attention. The discrepancy in FPS values you're experiencing could be due to several factors. Here are a few steps to help diagnose and potentially resolve the issue:
Here's a quick example of how you might profile your code: import cProfile
import pstats
from ultralytics import YOLO
def run_model():
model = YOLO('yolov8m-pose.pt')
results = model.predict(source='path/to/your/video.mp4', show=True)
cProfile.run('run_model()', 'profile_stats')
p = pstats.Stats('profile_stats')
p.sort_stats('cumulative').print_stats(10) This will give you an idea of where the time is being spent in your code. Please try these steps and let us know if the issue persists. We're here to help! |
Beta Was this translation helpful? Give feedback.
-
I've been using yolov8m-pose just by downloading the weights and it runs at a good fps value of around 12 - 15 but when I cloned the ultralytics repository and ran the same code, I'm getting an fps of around 2 - 3 and I don't know the reason why this is happening, the code is same, python environment has same dependencies, model is same then why different fps values.
Beta Was this translation helpful? Give feedback.
All reactions