sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
sudo chmod +x /usr/local/bin/cog
mkdir demo
cd demo
cog init
docker rmi $(docker images | grep "none" | awk '{print $3}')
cog predict -i image=123
cog serve -p 8080
curl -X POST -H "Content-Type: application/json" -d $'{
"input": {
"image": "zero-shot voice clone"
},
"webhook": "https://www.example.com/oauth2/ip",
"webhook_events_filter": ["start", "log","output","completed"]
}' http://127.0.0.1:8080/predictions
cog build -t my-model-img
docker run --rm -it -p 8080:5000 --gpus all my-model-img python -m cog.server.http --threads=10
-
Notifications
You must be signed in to change notification settings - Fork 0
wuzhiping/cog
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published