Skip to content

Commit 804f60e

Browse files
authored
Merge pull request #205 from roboflow/fix-inference-fps
Allow video inference `fps` value to pass through to API
2 parents 7a80221 + 7615e38 commit 804f60e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roboflow/models/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def predict_video(
269269
models.append(SUPPORTED_ADDITIONAL_MODELS[model])
270270

271271
payload = json.dumps(
272-
{"input_url": signed_url, "infer_fps": 5, "models": models}
272+
{"input_url": signed_url, "infer_fps": fps, "models": models}
273273
)
274274

275275
headers = {"Content-Type": "application/json"}

roboflow/models/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def predict(
135135
models.append(SUPPORTED_ADDITIONAL_MODELS[model])
136136

137137
payload = json.dumps(
138-
{"input_url": signed_url, "infer_fps": 5, "models": models}
138+
{"input_url": signed_url, "infer_fps": fps, "models": models}
139139
)
140140

141141
response = requests.request("POST", url, headers=headers, data=payload)

0 commit comments

Comments
 (0)