You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
## Imgae matting
|
|
|
|
|
|
|
|
|
|
Here are a few effects:
|
|
|
|
|
|
|
|
|
|
![image-1](https://github.com/ihmily/image-matting/blob/main/assets/image-1.png)
|
|
|
|
|
|
|
|
|
|
![image-2](https://github.com/ihmily/image-matting/blob/main/assets/image-2.png)
|
|
|
|
|
|
|
|
|
|
 
|
|
|
|
|
|
|
|
|
|
## How to Run
|
|
|
|
|
|
|
|
|
|
Firstly, you need to download the project code and install the required dependencies
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/ihmily/image-matting.git
|
|
|
|
|
cd image-matting
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Next, you can use the following command to run the web interface
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
python app.py
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Finally, you can visit http://127.0.0.1:8000
|
|
|
|
|
|
|
|
|
|
 
|
|
|
|
|
|
|
|
|
|
## References
|
|
|
|
|
|
|
|
|
|
[https://modelscope.cn/models/damo/cv_unet_universal-matting/summary](https://modelscope.cn/models/damo/cv_unet_universal-matting/summary)
|
|
|
|
|
|
|
|
|
|
[https://modelscope.cn/models/damo/cv_unet_image-matting/summary](https://modelscope.cn/models/damo/cv_unet_image-matting/summary)
|