{"cells":[{"metadata":{},"cell_type":"markdown","source":"To download packages for offline installation, please go through following link\n\nhttps://www.kaggle.com/raghaw/download-segmentation-model-pytorch-packages?scriptVersionId=56700353"},{"metadata":{},"cell_type":"markdown","source":"### Internet of this notebook is disabled to confirm offline installation"},{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"# directory containing required packages\n!ls ../input/download-segmentation-model-pytorch-packages","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"!pip install --no-index --find-links=\"../input/download-segmentation-model-pytorch-packages\" segmentation-models-pytorch","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"import segmentation_models_pytorch as smp","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"model = smp.Unet( encoder_name=\"resnet34\", encoder_weights=None, in_channels=3, classes=1)","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"model","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"","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}