https://github.com/ZurMaD/DeOldify
357
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:
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
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.
Content type
Image
Digest
Size
2.9 GB
Last updated
about 6 years ago
docker pull pablogod/deoldify-api