{"cells":[{"metadata":{"trusted":false},"cell_type":"code","source":"!cp -r /kaggle/input/mmdwhl/mmd_whl/cocoapi cocoapi;","execution_count":null,"outputs":[]},{"metadata":{"collapsed":true,"trusted":false},"cell_type":"code","source":"cd /kaggle/working/cocoapi/PythonAPI","execution_count":null,"outputs":[]},{"metadata":{"collapsed":true,"trusted":false},"cell_type":"code","source":"!python setup.py build_ext install","execution_count":null,"outputs":[]},{"metadata":{"trusted":false},"cell_type":"code","source":"cd /kaggle/working/","execution_count":null,"outputs":[]},{"metadata":{"collapsed":true,"trusted":false},"cell_type":"code","source":"!pip install /kaggle/input/mmdwhl/mmd_whl/addict-2.2.1-py3-none-any.whl\n!pip install /kaggle/input/mmdwhl/mmd_whl/mmcv-0.5.1-cp37-cp37m-linux_x86_64.whl\n!pip install /kaggle/input/mmdwhl/mmd_whl/terminal-0.4.0-py3-none-any.whl\n!pip install /kaggle/input/mmdwhl/mmd_whl/terminaltables-3.1.0-py3-none-any.whl\n!cp -r /kaggle/input/mmdwhl/mmd_code/* /kaggle/working\n!ln -s /kaggle/input/global-wheat-detection/test /kaggle/working/data\n!mkdir data/annotations\n!python data/get_test_json.py\n!pip install -v -e .\n!chmod +x tools/dist_test.sh","execution_count":null,"outputs":[]},{"metadata":{"trusted":false},"cell_type":"code","source":"import run\nconfig = '/kaggle/input/my-pth/faster_rcnn_r101_fpn_1x.py'\nmodel = '/kaggle/input/my-pth/epoch_12.pth'\nnum_gpu = 1\nrun.test(config, num_gpu,model)\nrun.json2submit('results.bbox.json','data/annotations/test.json','submission.csv',0)","execution_count":null,"outputs":[]},{"metadata":{"collapsed":true,"trusted":false},"cell_type":"code","source":"!ls . |grep -v submission.csv | xargs rm -rf","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"!cat /kaggle/input/mmdwhl/mmd_code/run.py","execution_count":null,"outputs":[]}],"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}