/cog-face-to-sticker

face-to-sticker

Primary LanguagePythonOtherNOASSERTION

face-to-sticker

Turn any face into a sticker.

Run this model on Replicate: https://replicate.com/fofr/face-to-sticker

Requirements

Run

  1. clone code
git clone --recurse-submodules https://github.com/mylukin/face-to-sticker.git
cd face-to-sticker
  1. build model
cog build -t sticker-maker
  1. run in docker
# If your model uses a CPU:
docker run -d -p 5001:5000 sticker-maker

# If your model uses a GPU:
docker run -d -p 5001:5000 --gpus all sticker-maker

# If you're on an M1 Mac:
docker run -d -p 5001:5000 --platform=linux/amd64 sticker-maker

The server is now running locally on port 5001.

To view the OpenAPI schema, open localhost:5001/openapi.json in your browser or use cURL to make requests:

curl http://localhost:5001/openapi.json

Reference