{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"![logo](https://raw.githubusercontent.com/facebookresearch/detectron2/main/.github/Detectron2-Logo-Horz.svg)","metadata":{"execution":{"iopub.status.busy":"2021-10-20T17:32:08.353083Z","iopub.execute_input":"2021-10-20T17:32:08.353339Z","iopub.status.idle":"2021-10-20T17:32:09.15178Z","shell.execute_reply.started":"2021-10-20T17:32:08.353307Z","shell.execute_reply":"2021-10-20T17:32:09.150512Z"}}},{"cell_type":"markdown","source":"Fetch the repository and prepare for use in other notebooks (offline).","metadata":{}},{"cell_type":"code","source":"!git clone https://github.com/facebookresearch/detectron2.git","metadata":{"_kg_hide-input":false,"_kg_hide-output":true,"execution":{"iopub.status.busy":"2023-08-14T16:36:25.996556Z","iopub.execute_input":"2023-08-14T16:36:25.997395Z","iopub.status.idle":"2023-08-14T16:36:28.384670Z","shell.execute_reply.started":"2023-08-14T16:36:25.997361Z","shell.execute_reply":"2023-08-14T16:36:28.383435Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd detectron2","metadata":{"execution":{"iopub.status.busy":"2023-08-14T16:36:28.387159Z","iopub.execute_input":"2023-08-14T16:36:28.387536Z","iopub.status.idle":"2023-08-14T16:36:28.397389Z","shell.execute_reply.started":"2023-08-14T16:36:28.387499Z","shell.execute_reply":"2023-08-14T16:36:28.396423Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"Important! GPU must be enabled!","metadata":{}},{"cell_type":"code","source":"!pip install -U .","metadata":{"_kg_hide-output":true,"execution":{"iopub.status.busy":"2023-08-14T16:36:28.399318Z","iopub.execute_input":"2023-08-14T16:36:28.399716Z","iopub.status.idle":"2023-08-14T16:39:37.834083Z","shell.execute_reply.started":"2023-08-14T16:36:28.399686Z","shell.execute_reply":"2023-08-14T16:39:37.832825Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"pip wheel .","metadata":{"_kg_hide-output":true,"execution":{"iopub.status.busy":"2023-08-14T16:39:37.837429Z","iopub.execute_input":"2023-08-14T16:39:37.837815Z","iopub.status.idle":"2023-08-14T16:39:59.391409Z","shell.execute_reply.started":"2023-08-14T16:39:37.837776Z","shell.execute_reply":"2023-08-14T16:39:59.388969Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Usage\nIn offline notebooks, run the following line to install Detectron2:  \n\n`!pip install --no-index ../input/detectron2-download-code-for-offline-install-ii/detectron2/detectron2-0.6-cp310-cp310-linux_x86_64.whl --find-links=../input/detectron2-download-code-for-offline-install-ii/detectron2`","metadata":{}},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}