- python3 -m pip install tensorflow==1.14
- segmentation
- https://github.com/tensorflow/models/tree/master/research/deeplab
- https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md
- matting
- https://github.com/huochaitiantang/pytorch-deep-image-matting
- git clone https://github.com/huochaitiantang/pytorch-deep-image-matting
- cp -avr pytorch-deep-image-matting/result .
- cp pytorch-deep-image-matting/core/deploy.py .
- cp pytorch-deep-image-matting/core/net.py .
- rm -rf result/example/pred
- wget https://github.com/huochaitiantang/pytorch-deep-image-matting/releases/download/v1.4/stage1_sad_54.4.pth
- trimap
- https://github.com/lnugraha/trimap_generator
- git clone https://github.com/lnugraha/trimap_generator/
- cp -avr trimap_generator/images/test_images .
- from PIL import Image
- Image.fromarray