# AutoCutout **Repository Path**: zdong22/AutoCutout ## Basic Information - **Project Name**: AutoCutout - **Description**: 使用飞桨(PaddlePaddle)的PaddleHub,提供自动抠图服务 使用者只需要打开网页上传图片即可使用 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 55 - **Created**: 2021-12-08 - **Last Updated**: 2021-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PaddleHub web抠图服务 ## step1. 启动flask服务 ```python python app.py ``` ## step2. 启动PaddleHub 一键部署deeplabv3p_xception65_humanseg服务 ```python ################cpu,模式 hub serving start --config cpuconfig.json #############GPU模式 set CUDA_VISIBLE_DEVICES=0 hub serving start -m deeplabv3p_xception65_humanseg hub serving start --config config.json ``` ## step3. 打开浏览器体验web 抠图服务 ```python http://localhost:port #端口自己设置 ``` ## 依赖 ```python 1.PaddlePaddle(飞桨) 2.PaddleHub 3.Flask ``` ### cpu 模式下run ```.bash hub serving start --config cpuconfig.json python app.py ``` ### gpu 模式下run ```.bash set CUDA_VISIBLE_DEVICES=0 hub serving start --config config.json python app.py ```