8000 GitHub - ROckDog22/yelo: flask 构建 post 中间转存 tensorflow-serving 使用nsfw鉴黄
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ yelo Public

flask 构建 post 中间转存 tensorflow-serving 使用nsfw鉴黄

Notifications You must be signed in to change notification settings

ROckDog22/yelo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yelo

Serve a Tensorflow model

# Download the Docker image and repo
docker pull wfs2010/yelo:yelo1.0

git clone https://github.com/wfs2010/yelo.git


# Start TensorFlow Serving container and open the REST API port
docker run -t --rm -p 8501:8501 \
    -v "$(pwd)/yelo/static/model/model:/models/model" \
    -e MODEL_NAME=model \
    wfs2010/yelo:yelo1.0 &

Documentation

Install Set

pip3 install -r requirements.txt 

Use

python app.py
cd test
python re.py

output

{
    "predictions": [[0.00262068701, 0.000862150046, 0.939066, 0.0220393743, 0.0354117937]]
}

对应5个值'drawings''hentai''neutral''porn''sexy'

About

flask 构建 post 中间转存 tensorflow-serving 使用nsfw鉴黄

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0