{"cells":[{"metadata":{},"cell_type":"markdown","source":"# What is Wheel file?\n> pip install wheel==0.22.0\n\n### A built-package format for Python.\n\nA WHL file is a package saved in the Wheel format, which is the standard built-package format used for Python distributions. It contains all the files for a Python install and metadata, which includes the version of the wheel implementation and specification used to package it.\n\n* For this project we will make a WHL file of all retinanet package dependencies to make it work in ofline run!\n\n\n\n1. Training [NOTEBOOK](https://www.kaggle.com/akhileshdkapse/vinbigdata-retinanet-detection-training)\n2. Inference [NOTEBOOK](https://www.kaggle.com/akhileshdkapse/vinbigdata-retinanet-detection-inference)"},{"metadata":{},"cell_type":"markdown","source":"## ⚙️ RetinaNet installation\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"################## RETINANET #######################\n!git clone 'https://github.com/fizyr/keras-retinanet.git'","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"# Make sure you have updated pip to enable wheel support\n!pip install --upgrade pip","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"With the latest pip and wheel, you can simply run\n\n    pip wheel .\n    \nwithin your project folder, even if your application isn't on PyPi. All wheels will be stored in the current directory (.)\n\nTo change the output directory (to for example, ./wheels), you may use the -w / --wheel-dir option:\n    \n    pip wheel . -w wheels\n    \n[Referance](https://stackoverflow.com/questions/26059111/build-a-wheel-egg-and-all-dependencies-for-a-python-project)"},{"metadata":{"trusted":true},"cell_type":"code","source":"%cd keras-retinanet/","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"Make a folder for WHL file"},{"metadata":{"trusted":true},"cell_type":"code","source":"%mkdir ../whlfiles","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"!pip wheel . -w ../whlfiles","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"%cd ..","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"%ls","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"%ls whlfiles","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"%ls keras-retinanet/","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"![](https://i.gifer.com/7ImI.gif)"}],"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":4,"nbformat_minor":4}