{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.14","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":84969,"databundleVersionId":10033515,"sourceType":"competition"}],"dockerImageVersionId":30804,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!pip download -d ./packages ultralytics\n!tar cfvz archive.tar.gz ./packages","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true,"execution":{"iopub.status.busy":"2025-03-12T12:52:00.429592Z","iopub.execute_input":"2025-03-12T12:52:00.430086Z","iopub.status.idle":"2025-03-12T12:55:31.006254Z","shell.execute_reply.started":"2025-03-12T12:52:00.430029Z","shell.execute_reply":"2025-03-12T12:55:31.004632Z"},"scrolled":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"!tar xfvz archive.tar.gz\n!pip install --no-index --find-links=./packages ultralytics\n!rm -rf ./packages ","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-03-12T12:55:31.009893Z","iopub.execute_input":"2025-03-12T12:55:31.010484Z","iopub.status.idle":"2025-03-12T12:56:13.221648Z","shell.execute_reply.started":"2025-03-12T12:55:31.010425Z","shell.execute_reply":"2025-03-12T12:56:13.220329Z"},"scrolled":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"import os\nfrom ultralytics import YOLO\n\nos.makedirs(\"yolov12-weights\", exist_ok=True)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-03-12T12:56:13.223309Z","iopub.execute_input":"2025-03-12T12:56:13.223675Z","iopub.status.idle":"2025-03-12T12:56:17.637713Z","shell.execute_reply.started":"2025-03-12T12:56:13.223641Z","shell.execute_reply":"2025-03-12T12:56:17.636532Z"}},"outputs":[],"execution_count":null},{"cell_type":"code","source":"model = YOLO(\"yolo12n.pt\")\nmodel.save(\"yolov12-weights/yolo12n.pt\")\nmodel = YOLO(\"yolo12s.pt\")\nmodel.save(\"yolov12-weights/yolo12s.pt\")\nmodel = YOLO(\"yolo12m.pt\")\nmodel.save(\"yolov12-weights/yolo12m.pt\")\nmodel = YOLO(\"yolo12l.pt\")\nmodel.save(\"yolov12-weights/yolo12l.pt\")\nmodel = YOLO(\"yolo12x.pt\")\nmodel.save(\"yolov12-weights/yolo12x.pt\")","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-03-12T12:56:17.639853Z","iopub.execute_input":"2025-03-12T12:56:17.640331Z","iopub.status.idle":"2025-03-12T12:56:23.604811Z","shell.execute_reply.started":"2025-03-12T12:56:17.640294Z","shell.execute_reply":"2025-03-12T12:56:23.603589Z"}},"outputs":[],"execution_count":null}]}