Video inference support is live 🚀 #626
Replies: 10 comments 3 replies
-
Hello, we were trying to do object detection task with video file. But we followed your command but it didn't work well. For example, we put a video file, new video was created. we checked that file, not have detected box. When we used yolov5's video detected module, that did work well... How to use yolov5+Sahi for video ? |
Beta Was this translation helpful? Give feedback.
-
@kiki4488 can you write your parameters and code used for inference? |
Beta Was this translation helpful? Give feedback.
-
set detection modeldetection_model = Yolov5DetectionModel( prediction for videopredict( |
Beta Was this translation helpful? Give feedback.
-
@kiki4488 what is your video size? Can you send the link for video file so that I can test it? |
Beta Was this translation helpful? Give feedback.
-
@fcakyon our video's width is 528 , and height is 888 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to get video inference with class filtering? Normally yolov5 provides this by using --classes argument in detect.py file. How can I this with sahi's predict function. for example the model detects 80 classes but I want to use 5 classes |
Beta Was this translation helpful? Give feedback.
-
@fcakyon how can i modify confidence_threshold for video inference? i tried changing it in predict.py, ut it doesnt seem to work |
Beta Was this translation helpful? Give feedback.
-
Can we used this for real time..webcam? |
Beta Was this translation helpful? Give feedback.
-
@fcakyon Can you please look into #944 and tell me what you think? Thanks! |
Beta Was this translation helpful? Give feedback.
-
sahi with yolov8 in real time |
Beta Was this translation helpful? Give feedback.
-
Thanks to @madenburak, starting from v0.9.3,
sahi
brings full support for sliced/standard inference for video input format for all MMDetection/Detectron2/YOLOv5 models 🔥You can also view video render during video inference with
--view_video
:forward 100 frames
, on opened window press keyD
revert 100 frames
, on opened window press keyA
forward 20 frames
, on opened window press keyG
revert 20 frames
, on opened window press keyF
exit
, on opened window press keyEsc
Note: If
--view_video
is slow, you can add--frame_skip_interval=20
argument to skip interval of 20 frames each time.Beta Was this translation helpful? Give feedback.
All reactions