├── .gitignore ├── README.md ├── imgs ├── 01.jpg ├── 02.jpg ├── 03.jpg ├── 04.jpg ├── 05.jpg ├── 06.jpg ├── bg01.jpg ├── bg02.jpg ├── bg03.jpg ├── result.jpg ├── result_blurred.jpg ├── result_gray.jpg └── result_mask.png └── main.ipynb /.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints 2 | .DS_Store 3 | __pycache__ 4 | .vscode 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Semantic Segmentation and Background Separation 2 | 3 | | Foreground | Background | Result | 4 | |---|---|---| 5 | | ![](imgs/02.jpg) | ![](imgs/bg02.jpg) | ![](imgs/result.jpg) | 6 | 7 | ## Segmentation Result 8 | 9 | ![](imgs/result_mask.png) 10 | 11 | ## Applications 12 | 13 | | Result | Blurred | Grayscale | 14 | |---|---|---| 15 | | ![](imgs/result.jpg) | ![](imgs/result_blurred.jpg) | ![](imgs/result_gray.jpg) | 16 | 17 | ## Dependency 18 | - Python 3 19 | - pytorch 20 | - torchvision 21 | - numpy 22 | - Pillow 23 | - matplotlib 24 | - OpenCV -------------------------------------------------------------------------------- /imgs/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/01.jpg -------------------------------------------------------------------------------- /imgs/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/02.jpg -------------------------------------------------------------------------------- /imgs/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/03.jpg -------------------------------------------------------------------------------- /imgs/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/04.jpg -------------------------------------------------------------------------------- /imgs/05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/05.jpg -------------------------------------------------------------------------------- /imgs/06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/06.jpg -------------------------------------------------------------------------------- /imgs/bg01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/bg01.jpg -------------------------------------------------------------------------------- /imgs/bg02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/bg02.jpg -------------------------------------------------------------------------------- /imgs/bg03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/bg03.jpg -------------------------------------------------------------------------------- /imgs/result.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/result.jpg -------------------------------------------------------------------------------- /imgs/result_blurred.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/result_blurred.jpg -------------------------------------------------------------------------------- /imgs/result_gray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/result_gray.jpg -------------------------------------------------------------------------------- /imgs/result_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kairess/semantic-segmentation-pytorch/7ae3767cd84095ba5398af014820ff5d916b22c2/imgs/result_mask.png --------------------------------------------------------------------------------