CLIP 사용
비디오의 프레임에서 CLIP을 실행하세요.
Video Inference API에서 CLIP 사용하기
pip install roboflowfrom roboflow import Roboflow, CLIPModel
rf = Roboflow(api_key="API_KEY")
model = CLIPModel()
job_id, signed_url, expire_time = model.predict_video(
"football-video.mp4",
fps=5,
prediction_type="batch-video",
)
results = model.poll_until_video_results(job_id)
print(results)Last updated
Was this helpful?