Sign inSign up

pablogod/deoldify-api

By pablogod

Updated about 6 years ago

https://github.com/ZurMaD/DeOldify

Image
0

357

pablogod/deoldify-api repository overview

ALL INFO https://github.com/ZurMaD/DeOldify

Docker for API

You can build and run the docker using the following process:

Pull Docker

docker push pablogod/deoldify-api

Running Docker

echo "http://$(curl ifconfig.io):5000" && nvidia-docker run --ipc=host -p 5000:5000 -d pablogod/deoldify-api

Now you can call the API to process images or videos:

  1. Calling the API for image processing
curl -X POST "http://MY_SUPER_API_IP:5000/process" -H "accept: image/png" -H "Content-Type: application/json" -d "{\"source_url\":\"http://www.afrikanheritage.com/wp-content/uploads/2015/08/slave-family-P.jpeg\", \"render_factor\":35}" --output colorized_image.png
  1. Calling the API for video processing
curl -X POST "http://MY_SUPER_API_IP:5000/process" -H "accept: application/octet-stream" -H "Content-Type: application/json" -d "{\"source_url\":\"https://v.redd.it/d1ku57kvuf421/HLSPlaylist.m3u8\", \"render_factor\":35}" --output colorized_video.mp4

Note: If you don't have Nvidia Docker, here is the installation guide.

Tag summary

Content type

Image

Digest

Size

2.9 GB

Last updated

about 6 years ago

docker pull pablogod/deoldify-api