{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/shiv-nlp-mldl-cv/anaconda3/envs/S15-Yolo1/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Running on local URL: http://127.0.0.1:7860\n", "Running on public URL: https://791bc0246f844ee823.gradio.live\n", "\n", "This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces)\n" ] }, { "data": { "text/html": [ "
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" }, { "name": "stderr", "output_type": "stream", "text": [ "\u001b[34m\u001b[1mdetect: \u001b[0mweights=['yolov9/runs/train/exp/weights/best.pt'], source=/tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4, data=yolov9/data/coco128.yaml, imgsz=[640, 640], conf_thres=0.25, iou_thres=0.45, max_det=1000, device=cpu, view_img=False, save_txt=False, save_conf=False, save_crop=False, nosave=False, classes=None, agnostic_nms=False, augment=False, visualize=False, update=False, project=yolov9/runs/detect, name=664a80cf-ce01-4bde-a090-59a93c91e364, exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, half=False, dnn=False, vid_stride=1\n", "YOLO 🚀 v0.1-89-g93f1a28 Python-3.10.14 torch-2.3.0+cu121 CPU\n", "\n", "Fusing layers... \n", "yolov9-e summary: 839 layers, 68555524 parameters, 0 gradients, 240.7 GFLOPs\n", "video 1/1 (1/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1617.8ms\n", "video 1/1 (2/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1498.3ms\n", "video 1/1 (3/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1423.7ms\n", "video 1/1 (4/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1210.8ms\n", "video 1/1 (5/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1229.1ms\n", "video 1/1 (6/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1367.8ms\n", "video 1/1 (7/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1486.9ms\n", "video 1/1 (8/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1732.3ms\n", "video 1/1 (9/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1402.7ms\n", "video 1/1 (10/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1858.0ms\n", "video 1/1 (11/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1615.1ms\n", "video 1/1 (12/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1792.2ms\n", "video 1/1 (13/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1551.3ms\n", "video 1/1 (14/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1571.0ms\n", "video 1/1 (15/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1474.8ms\n", "video 1/1 (16/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1637.9ms\n", "video 1/1 (17/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1 van, 1295.5ms\n", "video 1/1 (18/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1380.6ms\n", "video 1/1 (19/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1345.8ms\n", "video 1/1 (20/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1770.9ms\n", "video 1/1 (21/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 van, 1809.7ms\n", "video 1/1 (22/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1918.3ms\n", "video 1/1 (23/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1860.6ms\n", "video 1/1 (24/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1600.9ms\n", "video 1/1 (25/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1517.5ms\n", "video 1/1 (26/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1367.2ms\n", "video 1/1 (27/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1407.6ms\n", "video 1/1 (28/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1713.2ms\n", "video 1/1 (29/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1462.8ms\n", "video 1/1 (30/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1366.6ms\n", "video 1/1 (31/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1352.2ms\n", "video 1/1 (32/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1427.2ms\n", "video 1/1 (33/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1354.8ms\n", "video 1/1 (34/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1757.6ms\n", "video 1/1 (35/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1565.0ms\n", "video 1/1 (36/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1360.9ms\n", "video 1/1 (37/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1336.4ms\n", "video 1/1 (38/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 van, 1346.2ms\n", "video 1/1 (39/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1585.9ms\n", "video 1/1 (40/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1748.5ms\n", "video 1/1 (41/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1637.9ms\n", "video 1/1 (42/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1643.6ms\n", "video 1/1 (43/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1350.5ms\n", "video 1/1 (44/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1349.9ms\n", "video 1/1 (45/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1505.7ms\n", "video 1/1 (46/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1360.1ms\n", "video 1/1 (47/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1957.5ms\n", "video 1/1 (48/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1750.8ms\n", "video 1/1 (49/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1848.5ms\n", "video 1/1 (50/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 2061.5ms\n", "video 1/1 (51/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1850.6ms\n", "video 1/1 (52/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1762.5ms\n", "video 1/1 (53/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1783.8ms\n", "video 1/1 (54/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1746.4ms\n", "video 1/1 (55/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 2082.8ms\n", "video 1/1 (56/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1693.8ms\n", "video 1/1 (57/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1713.7ms\n", "video 1/1 (58/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1897.3ms\n", "video 1/1 (59/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1762.7ms\n", "video 1/1 (60/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1287.9ms\n", "video 1/1 (61/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1363.6ms\n", "video 1/1 (62/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1741.8ms\n", "video 1/1 (63/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1904.4ms\n", "video 1/1 (64/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1551.2ms\n", "video 1/1 (65/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1419.4ms\n", "video 1/1 (66/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 motorbike, 1397.5ms\n", "video 1/1 (67/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 motorbike, 1341.1ms\n", "video 1/1 (68/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 motorbike, 1316.7ms\n", "video 1/1 (69/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1437.2ms\n", "video 1/1 (70/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1657.5ms\n", "video 1/1 (71/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 2071.2ms\n", "video 1/1 (72/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1292.7ms\n", "video 1/1 (73/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 2008.9ms\n", "video 1/1 (74/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1982.5ms\n", "video 1/1 (75/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1729.7ms\n", "video 1/1 (76/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1444.6ms\n", "video 1/1 (77/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1343.1ms\n", "video 1/1 (78/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1760.5ms\n", "video 1/1 (79/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1210.4ms\n", "video 1/1 (80/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1317.0ms\n", "video 1/1 (81/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1353.9ms\n", "video 1/1 (82/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1237.0ms\n", "video 1/1 (83/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1205.9ms\n", "video 1/1 (84/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1264.0ms\n", "video 1/1 (85/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1252.5ms\n", "video 1/1 (86/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1196.9ms\n", "video 1/1 (87/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1232.6ms\n", "video 1/1 (88/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1209.6ms\n", "video 1/1 (89/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1221.0ms\n", "video 1/1 (90/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1215.6ms\n", "video 1/1 (91/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1231.0ms\n", "video 1/1 (92/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1239.0ms\n", "video 1/1 (93/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1208.7ms\n", "video 1/1 (94/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1236.9ms\n", "video 1/1 (95/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1296.0ms\n", "video 1/1 (96/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1338.0ms\n", "video 1/1 (97/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1286.2ms\n", "video 1/1 (98/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1796.7ms\n", "video 1/1 (99/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1748.5ms\n", "video 1/1 (100/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1418.3ms\n", "video 1/1 (101/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1999.2ms\n", "video 1/1 (102/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1579.0ms\n", "video 1/1 (103/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1557.5ms\n", "video 1/1 (104/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1629.7ms\n", "video 1/1 (105/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1864.5ms\n", "video 1/1 (106/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 2215.0ms\n", "video 1/1 (107/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1901.7ms\n", "video 1/1 (108/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1436.2ms\n", "video 1/1 (109/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1529.7ms\n", "video 1/1 (110/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1792.2ms\n", "video 1/1 (111/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1901.2ms\n", "video 1/1 (112/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1921.0ms\n", "video 1/1 (113/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1629.0ms\n", "video 1/1 (114/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1450.5ms\n", "video 1/1 (115/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1564.9ms\n", "video 1/1 (116/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1463.9ms\n", "video 1/1 (117/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1663.2ms\n", "video 1/1 (118/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1442.1ms\n", "video 1/1 (119/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1427.3ms\n", "video 1/1 (120/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1444.2ms\n", "video 1/1 (121/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1454.4ms\n", "video 1/1 (122/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1653.9ms\n", "video 1/1 (123/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1434.5ms\n", "video 1/1 (124/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1626.5ms\n", "video 1/1 (125/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1454.0ms\n", "video 1/1 (126/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1457.9ms\n", "video 1/1 (127/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1836.1ms\n", "video 1/1 (128/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1420.4ms\n", "video 1/1 (129/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1723.8ms\n", "video 1/1 (130/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1564.8ms\n", "video 1/1 (131/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1664.1ms\n", "video 1/1 (132/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.8ms\n", "video 1/1 (133/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1371.5ms\n", "video 1/1 (134/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1445.4ms\n", "video 1/1 (135/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1336.2ms\n", "video 1/1 (136/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1349.8ms\n", "video 1/1 (137/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1343.9ms\n", "video 1/1 (138/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1315.3ms\n", "video 1/1 (139/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.9ms\n", "video 1/1 (140/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1455.4ms\n", "video 1/1 (141/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1494.6ms\n", "video 1/1 (142/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1350.8ms\n", "video 1/1 (143/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1339.6ms\n", "video 1/1 (144/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.9ms\n", "video 1/1 (145/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.9ms\n", "video 1/1 (146/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1410.9ms\n", "video 1/1 (147/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1351.5ms\n", "video 1/1 (148/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1329.8ms\n", "video 1/1 (149/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1355.6ms\n", "video 1/1 (150/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1325.9ms\n", "video 1/1 (151/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1343.5ms\n", "video 1/1 (152/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1446.5ms\n", "video 1/1 (153/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1336.6ms\n", "video 1/1 (154/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1334.9ms\n", "video 1/1 (155/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1352.8ms\n", "video 1/1 (156/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 bus, 1 van, 1330.9ms\n", "video 1/1 (157/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1333.1ms\n", "video 1/1 (158/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1423.5ms\n", "video 1/1 (159/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1388.5ms\n", "video 1/1 (160/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1348.3ms\n", "video 1/1 (161/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1347.2ms\n", "video 1/1 (162/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1331.1ms\n", "video 1/1 (163/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1348.0ms\n", "video 1/1 (164/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1344.7ms\n", "video 1/1 (165/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1390.6ms\n", "video 1/1 (166/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1781.9ms\n", "video 1/1 (167/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1761.0ms\n", "video 1/1 (168/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1711.0ms\n", "video 1/1 (169/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 bus, 1 van, 1400.1ms\n", "video 1/1 (170/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 van, 1365.8ms\n", "video 1/1 (171/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1350.7ms\n", "video 1/1 (172/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1456.7ms\n", "video 1/1 (173/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.1ms\n", "video 1/1 (174/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1387.6ms\n", "video 1/1 (175/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1798.7ms\n", "video 1/1 (176/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1335.4ms\n", "video 1/1 (177/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1333.7ms\n", "video 1/1 (178/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1391.0ms\n", "video 1/1 (179/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1349.9ms\n", "video 1/1 (180/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1415.8ms\n", "video 1/1 (181/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1350.0ms\n", "video 1/1 (182/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1427.1ms\n", "video 1/1 (183/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1374.4ms\n", "video 1/1 (184/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1 truck, 1364.6ms\n", "video 1/1 (185/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1361.1ms\n", "video 1/1 (186/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1413.5ms\n", "video 1/1 (187/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1359.4ms\n", "video 1/1 (188/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1373.3ms\n", "video 1/1 (189/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1359.6ms\n", "video 1/1 (190/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1357.8ms\n", "video 1/1 (191/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1 truck, 1377.1ms\n", "video 1/1 (192/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1350.0ms\n", "video 1/1 (193/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1391.0ms\n", "video 1/1 (194/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1368.1ms\n", "video 1/1 (195/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1393.7ms\n", "video 1/1 (196/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1348.6ms\n", "video 1/1 (197/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1378.1ms\n", "video 1/1 (198/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1345.8ms\n", "video 1/1 (199/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1342.3ms\n", "video 1/1 (200/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1419.2ms\n", "video 1/1 (201/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1381.2ms\n", "video 1/1 (202/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1354.4ms\n", "video 1/1 (203/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1358.4ms\n", "video 1/1 (204/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1330.1ms\n", "video 1/1 (205/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1360.7ms\n", "video 1/1 (206/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.1ms\n", "video 1/1 (207/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.1ms\n", "video 1/1 (208/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1380.4ms\n", "video 1/1 (209/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1516.9ms\n", "video 1/1 (210/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1574.6ms\n", "video 1/1 (211/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1349.1ms\n", "video 1/1 (212/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1361.3ms\n", "video 1/1 (213/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1329.6ms\n", "video 1/1 (214/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1406.1ms\n", "video 1/1 (215/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.9ms\n", "video 1/1 (216/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1409.7ms\n", "video 1/1 (217/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1382.0ms\n", "video 1/1 (218/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1369.6ms\n", "video 1/1 (219/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1342.9ms\n", "video 1/1 (220/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1411.7ms\n", "video 1/1 (221/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1397.4ms\n", "video 1/1 (222/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1329.8ms\n", "video 1/1 (223/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1346.3ms\n", "video 1/1 (224/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1348.2ms\n", "video 1/1 (225/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1593.1ms\n", "video 1/1 (226/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1335.0ms\n", "video 1/1 (227/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1345.2ms\n", "video 1/1 (228/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1339.9ms\n", "video 1/1 (229/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1397.7ms\n", "video 1/1 (230/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1356.2ms\n", "video 1/1 (231/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1390.5ms\n", "video 1/1 (232/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1350.1ms\n", "video 1/1 (233/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1365.0ms\n", "video 1/1 (234/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1735.1ms\n", "video 1/1 (235/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1445.3ms\n", "video 1/1 (236/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.4ms\n", "video 1/1 (237/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1340.4ms\n", "video 1/1 (238/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1351.1ms\n", "video 1/1 (239/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1346.8ms\n", "video 1/1 (240/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1338.5ms\n", "video 1/1 (241/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1387.6ms\n", "video 1/1 (242/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1442.2ms\n", "video 1/1 (243/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1325.5ms\n", "video 1/1 (244/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1350.5ms\n", "video 1/1 (245/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1361.8ms\n", "video 1/1 (246/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1337.1ms\n", "video 1/1 (247/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.6ms\n", "video 1/1 (248/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1401.4ms\n", "video 1/1 (249/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1337.2ms\n", "video 1/1 (250/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1346.8ms\n", "video 1/1 (251/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1356.8ms\n", "video 1/1 (252/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1353.3ms\n", "video 1/1 (253/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1363.3ms\n", "video 1/1 (254/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1442.7ms\n", "video 1/1 (255/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1453.3ms\n", "video 1/1 (256/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1341.0ms\n", "video 1/1 (257/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1325.8ms\n", "video 1/1 (258/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1348.7ms\n", "video 1/1 (259/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1628.3ms\n", "video 1/1 (260/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1498.0ms\n", "video 1/1 (261/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1980.8ms\n", "video 1/1 (262/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1738.5ms\n", "video 1/1 (263/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1351.8ms\n", "video 1/1 (264/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 2 cars, 1439.5ms\n", "video 1/1 (265/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1331.8ms\n", "video 1/1 (266/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1734.1ms\n", "video 1/1 (267/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1780.9ms\n", "video 1/1 (268/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1848.5ms\n", "video 1/1 (269/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1778.2ms\n", "video 1/1 (270/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1787.7ms\n", "video 1/1 (271/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1798.7ms\n", "video 1/1 (272/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1712.4ms\n", "video 1/1 (273/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1781.3ms\n", "video 1/1 (274/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1341.2ms\n", "video 1/1 (275/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1402.7ms\n", "video 1/1 (276/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1360.8ms\n", "video 1/1 (277/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1362.1ms\n", "video 1/1 (278/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1370.1ms\n", "video 1/1 (279/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1383.0ms\n", "video 1/1 (280/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1418.8ms\n", "video 1/1 (281/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1352.0ms\n", "video 1/1 (282/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1361.7ms\n", "video 1/1 (283/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1533.7ms\n", "video 1/1 (284/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1333.1ms\n", "video 1/1 (285/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1775.2ms\n", "video 1/1 (286/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1817.8ms\n", "video 1/1 (287/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1314.1ms\n", "video 1/1 (288/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1349.4ms\n", "video 1/1 (289/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1344.9ms\n", "video 1/1 (290/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1337.2ms\n", "video 1/1 (291/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1378.6ms\n", "video 1/1 (292/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1397.3ms\n", "video 1/1 (293/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1336.6ms\n", "video 1/1 (294/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1348.8ms\n", "video 1/1 (295/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1324.5ms\n", "video 1/1 (296/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1377.5ms\n", "video 1/1 (297/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1351.6ms\n", "video 1/1 (298/298) /tmp/gradio/96ee097452acb133f511bd6cb20730ac92412476/cut_a_2.mp4: 416x640 1 car, 1357.3ms\n", "Speed: 0.7ms pre-process, 1475.3ms inference, 1.4ms NMS per image at shape (1, 3, 640, 640)\n", "Results saved to \u001b[1myolov9/runs/detect/664a80cf-ce01-4bde-a090-59a93c91e364\u001b[0m\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "yolov9/runs/detect/664a80cf-ce01-4bde-a090-59a93c91e364/cut_a_2.mp4\n" ] } ], "source": [ "import gradio as gr\n", "from PIL import Image\n", "import numpy as np\n", "import os\n", "import uuid\n", "\n", "def inference(input_img):\n", " temp = uuid.uuid4()\n", " shell = f\"python yolov9/detect.py --source {input_img} --img 640 --device cpu --weights yolov9/runs/train/exp/weights/best.pt --name {temp}\"\n", " os.system(shell)\n", " return f\"yolov9/runs/detect/{temp}/{input_img.split('/')[-1]}\"\n", " #return \"yolov9/runs/detect/f807164a-496b-413c-bb47-f5daf8803dcd/cut_a_1.mp4\"\n", "\n", "def inference_video(input_img):\n", " org_img = input_img\n", " return input_img\n", "\n", "with gr.Blocks() as demo:\n", " gr.Markdown(\n", " \"\"\"\n", " # Vehicle detection using Yolo-v9\n", " \"\"\"\n", " )\n", "\n", " with gr.Tab(\"Video\"):\n", " gr.Markdown(\n", " \"\"\"\n", " Upload image file and detect vehicles present in the image\n", " \"\"\"\n", " )\n", " with gr.Row():\n", " img_input = [gr.PlayableVideo(label=\"Input Image\", autoplay=True, width=300, height=300)]\n", " pred_outputs = [gr.PlayableVideo(label=\"Output Image\",width=640, autoplay=True, height=640)]\n", " \n", " image_button = gr.Button(\"Predict\")\n", " image_button.click(inference, inputs=img_input, outputs=pred_outputs)\n", "\n", " with gr.Tab(\"Image\"):\n", " gr.Markdown(\n", " \"\"\"\n", " Upload image file and detect vehicles present in the image\n", " \"\"\"\n", " )\n", " with gr.Row():\n", " img_input = [gr.Image(type=\"filepath\",label=\"Input Image\",width=300, height=300)]\n", " pred_outputs = [gr.Image(label=\"Output Image\",width=640, height=640)]\n", " \n", " image_button = gr.Button(\"Predict\")\n", " image_button.click(inference, inputs=img_input, outputs=pred_outputs)\n", "\n", "\n", "\n", "demo.launch(share=True)\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "S6-VSCode", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.14" } }, "nbformat": 4, "nbformat_minor": 2 }