Skip to content

Commit 401a8b3

Browse files
committed
increase video inference fps to 120
1 parent 3c13740 commit 401a8b3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roboflow/models/inference.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,9 @@ def predict_video(
167167
signed_url_expires = None
168168

169169
url = urljoin(API_URL, "/video_upload_signed_url?api_key=" + self.__api_key)
170-
171-
# if fps > 5:
172-
# raise Exception("FPS must be less than or equal to 5.")
173-
170+
if fps > 120:
171+
raise Exception("FPS must be less than or equal to 120.")
172+
174173
for model in additional_models:
175174
if model not in SUPPORTED_ADDITIONAL_MODELS:
176175
raise Exception(f"Model {model} is not supported for video inference.")

0 commit comments

Comments
 (0)