lucataco
/
real-esrgan-video
Real-ESRGAN Video Upscaler
Prediction
lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320IDq4jtomdbf3xolkbavbmqdsl77iStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- model
- RealESRGAN_x4plus
- resolution
- 2k
- video_path
{ "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/JvzIGnVgv9E2J0n2UzLaWhdXIEu13AbxpR3DjlwfS8KLUHLg/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", { input: { model: "RealESRGAN_x4plus", resolution: "2k", video_path: "https://replicate.delivery/pbxt/JvzIGnVgv9E2J0n2UzLaWhdXIEu13AbxpR3DjlwfS8KLUHLg/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", input={ "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/JvzIGnVgv9E2J0n2UzLaWhdXIEu13AbxpR3DjlwfS8KLUHLg/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", "input": { "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/JvzIGnVgv9E2J0n2UzLaWhdXIEu13AbxpR3DjlwfS8KLUHLg/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-24T18:58:26.077925Z", "created_at": "2023-11-24T18:57:56.041075Z", "data_removed": false, "error": null, "id": "q4jtomdbf3xolkbavbmqdsl77i", "input": { "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/JvzIGnVgv9E2J0n2UzLaWhdXIEu13AbxpR3DjlwfS8KLUHLg/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" }, "logs": "Upscaling from 1024x512 to 2560x1440, crop_to_fit=True\n/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\nwarnings.warn(\nDownloading: \"https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth\" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth\n 0%| | 0.00/63.9M [00:00<?, ?B/s]\n 68%|██████▊ | 43.5M/63.9M [00:00<00:00, 456MB/s]\n100%|██████████| 63.9M/63.9M [00:00<00:00, 472MB/s]\ninference: 0%| | 0/25 [00:00<?, ?frame/s]\ninference: 4%|▍ | 1/25 [00:03<01:13, 3.06s/frame]\ninference: 8%|▊ | 2/25 [00:03<00:37, 1.63s/frame]\ninference: 12%|█▏ | 3/25 [00:04<00:25, 1.17s/frame]\ninference: 16%|█▌ | 4/25 [00:04<00:19, 1.05frame/s]\ninference: 20%|██ | 5/25 [00:05<00:16, 1.20frame/s]\ninference: 24%|██▍ | 6/25 [00:06<00:14, 1.31frame/s]\ninference: 28%|██▊ | 7/25 [00:06<00:12, 1.40frame/s]\ninference: 32%|███▏ | 8/25 [00:07<00:11, 1.44frame/s]\ninference: 36%|███▌ | 9/25 [00:08<00:10, 1.49frame/s]\ninference: 40%|████ | 10/25 [00:08<00:09, 1.52frame/s]\ninference: 44%|████▍ | 11/25 [00:09<00:09, 1.54frame/s]\ninference: 48%|████▊ | 12/25 [00:09<00:08, 1.56frame/s]\ninference: 52%|█████▏ | 13/25 [00:10<00:07, 1.57frame/s]\ninference: 56%|█████▌ | 14/25 [00:11<00:06, 1.58frame/s]\ninference: 60%|██████ | 15/25 [00:11<00:06, 1.59frame/s]\ninference: 64%|██████▍ | 16/25 [00:12<00:05, 1.60frame/s]\ninference: 68%|██████▊ | 17/25 [00:13<00:04, 1.60frame/s]\ninference: 72%|███████▏ | 18/25 [00:13<00:04, 1.61frame/s]\ninference: 76%|███████▌ | 19/25 [00:14<00:03, 1.61frame/s]\ninference: 80%|████████ | 20/25 [00:14<00:03, 1.61frame/s]\ninference: 84%|████████▍ | 21/25 [00:15<00:02, 1.61frame/s]\ninference: 88%|████████▊ | 22/25 [00:16<00:01, 1.61frame/s]\ninference: 92%|█████████▏| 23/25 [00:16<00:01, 1.62frame/s]\ninference: 96%|█████████▌| 24/25 [00:17<00:00, 1.62frame/s]\ninference: 100%|██████████| 25/25 [00:18<00:00, 1.62frame/s]\ninference: 100%|██████████| 25/25 [00:19<00:00, 1.29frame/s]\n[h264 @ 0x55bb5e205bc0] Cannot load libnvcuvid.so.1\n[h264 @ 0x55bb5e205bc0] Failed loading nvcuvid.\n[h264 @ 0x55bb5e205bc0] Failed setup for format cuda: hwaccel initialisation returned error.\nCropping to fit done..\nUpscaled video saved to: /src/ouput/tmpyt02kswkreplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_upscaled_2560_1440.mp4", "metrics": { "predict_time": 30.018293, "total_time": 30.03685 }, "output": "https://replicate.delivery/pbxt/GCO6AfW3f4qZpUKfJKAGexVymnB6e9bbcCmq5F26IAlOKSdPC/tmpyt02kswkreplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_out.mp4", "started_at": "2023-11-24T18:57:56.059632Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/q4jtomdbf3xolkbavbmqdsl77i", "cancel": "https://api.replicate.com/v1/predictions/q4jtomdbf3xolkbavbmqdsl77i/cancel" }, "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320" }
Generated inUpscaling from 1024x512 to 2560x1440, crop_to_fit=True /root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth 0%| | 0.00/63.9M [00:00<?, ?B/s] 68%|██████▊ | 43.5M/63.9M [00:00<00:00, 456MB/s] 100%|██████████| 63.9M/63.9M [00:00<00:00, 472MB/s] inference: 0%| | 0/25 [00:00<?, ?frame/s] inference: 4%|▍ | 1/25 [00:03<01:13, 3.06s/frame] inference: 8%|▊ | 2/25 [00:03<00:37, 1.63s/frame] inference: 12%|█▏ | 3/25 [00:04<00:25, 1.17s/frame] inference: 16%|█▌ | 4/25 [00:04<00:19, 1.05frame/s] inference: 20%|██ | 5/25 [00:05<00:16, 1.20frame/s] inference: 24%|██▍ | 6/25 [00:06<00:14, 1.31frame/s] inference: 28%|██▊ | 7/25 [00:06<00:12, 1.40frame/s] inference: 32%|███▏ | 8/25 [00:07<00:11, 1.44frame/s] inference: 36%|███▌ | 9/25 [00:08<00:10, 1.49frame/s] inference: 40%|████ | 10/25 [00:08<00:09, 1.52frame/s] inference: 44%|████▍ | 11/25 [00:09<00:09, 1.54frame/s] inference: 48%|████▊ | 12/25 [00:09<00:08, 1.56frame/s] inference: 52%|█████▏ | 13/25 [00:10<00:07, 1.57frame/s] inference: 56%|█████▌ | 14/25 [00:11<00:06, 1.58frame/s] inference: 60%|██████ | 15/25 [00:11<00:06, 1.59frame/s] inference: 64%|██████▍ | 16/25 [00:12<00:05, 1.60frame/s] inference: 68%|██████▊ | 17/25 [00:13<00:04, 1.60frame/s] inference: 72%|███████▏ | 18/25 [00:13<00:04, 1.61frame/s] inference: 76%|███████▌ | 19/25 [00:14<00:03, 1.61frame/s] inference: 80%|████████ | 20/25 [00:14<00:03, 1.61frame/s] inference: 84%|████████▍ | 21/25 [00:15<00:02, 1.61frame/s] inference: 88%|████████▊ | 22/25 [00:16<00:01, 1.61frame/s] inference: 92%|█████████▏| 23/25 [00:16<00:01, 1.62frame/s] inference: 96%|█████████▌| 24/25 [00:17<00:00, 1.62frame/s] inference: 100%|██████████| 25/25 [00:18<00:00, 1.62frame/s] inference: 100%|██████████| 25/25 [00:19<00:00, 1.29frame/s] [h264 @ 0x55bb5e205bc0] Cannot load libnvcuvid.so.1 [h264 @ 0x55bb5e205bc0] Failed loading nvcuvid. [h264 @ 0x55bb5e205bc0] Failed setup for format cuda: hwaccel initialisation returned error. Cropping to fit done.. Upscaled video saved to: /src/ouput/tmpyt02kswkreplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_upscaled_2560_1440.mp4
Prediction
lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320IDb76kwvlbq3l5gumj7zdsa24e6iStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- model
- RealESRGAN_x4plus
- resolution
- FHD
- video_path
{ "model": "RealESRGAN_x4plus", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzJwGbiuwhpRVTBdOOt3L49WAsYlBmB2yNqcyxeIlTRQ5xl/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", { input: { model: "RealESRGAN_x4plus", resolution: "FHD", video_path: "https://replicate.delivery/pbxt/JvzJwGbiuwhpRVTBdOOt3L49WAsYlBmB2yNqcyxeIlTRQ5xl/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", input={ "model": "RealESRGAN_x4plus", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzJwGbiuwhpRVTBdOOt3L49WAsYlBmB2yNqcyxeIlTRQ5xl/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", "input": { "model": "RealESRGAN_x4plus", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzJwGbiuwhpRVTBdOOt3L49WAsYlBmB2yNqcyxeIlTRQ5xl/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-24T19:02:19.363909Z", "created_at": "2023-11-24T19:01:54.394895Z", "data_removed": false, "error": null, "id": "b76kwvlbq3l5gumj7zdsa24e6i", "input": { "model": "RealESRGAN_x4plus", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzJwGbiuwhpRVTBdOOt3L49WAsYlBmB2yNqcyxeIlTRQ5xl/replicate-prediction-wkusuc3brp5hwd27zaymz5rgdi.mp4" }, "logs": "Upscaling from 1024x512 to 1920x1080, crop_to_fit=True\n/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\nwarnings.warn(\ninference: 0%| | 0/25 [00:00<?, ?frame/s]\ninference: 4%|▍ | 1/25 [00:01<00:47, 1.96s/frame]\ninference: 8%|▊ | 2/25 [00:02<00:26, 1.16s/frame]\ninference: 12%|█▏ | 3/25 [00:03<00:19, 1.10frame/s]\ninference: 16%|█▌ | 4/25 [00:03<00:16, 1.27frame/s]\ninference: 20%|██ | 5/25 [00:04<00:14, 1.39frame/s]\ninference: 24%|██▍ | 6/25 [00:04<00:12, 1.47frame/s]\ninference: 28%|██▊ | 7/25 [00:05<00:11, 1.53frame/s]\ninference: 32%|███▏ | 8/25 [00:06<00:10, 1.57frame/s]\ninference: 36%|███▌ | 9/25 [00:06<00:10, 1.60frame/s]\ninference: 40%|████ | 10/25 [00:07<00:09, 1.62frame/s]\ninference: 44%|████▍ | 11/25 [00:07<00:08, 1.64frame/s]\ninference: 48%|████▊ | 12/25 [00:08<00:07, 1.64frame/s]\ninference: 52%|█████▏ | 13/25 [00:09<00:07, 1.65frame/s]\ninference: 56%|█████▌ | 14/25 [00:09<00:06, 1.66frame/s]\ninference: 60%|██████ | 15/25 [00:10<00:06, 1.66frame/s]\ninference: 64%|██████▍ | 16/25 [00:10<00:05, 1.67frame/s]\ninference: 68%|██████▊ | 17/25 [00:11<00:04, 1.66frame/s]\ninference: 72%|███████▏ | 18/25 [00:12<00:04, 1.66frame/s]\ninference: 76%|███████▌ | 19/25 [00:12<00:03, 1.67frame/s]\ninference: 80%|████████ | 20/25 [00:13<00:03, 1.66frame/s]\ninference: 84%|████████▍ | 21/25 [00:13<00:02, 1.66frame/s]\ninference: 88%|████████▊ | 22/25 [00:14<00:01, 1.67frame/s]\ninference: 92%|█████████▏| 23/25 [00:15<00:01, 1.67frame/s]\ninference: 96%|█████████▌| 24/25 [00:15<00:00, 1.67frame/s]\ninference: 100%|██████████| 25/25 [00:16<00:00, 1.67frame/s]\ninference: 100%|██████████| 25/25 [00:17<00:00, 1.46frame/s]\n[h264 @ 0x564bdc2f31c0] Cannot load libnvcuvid.so.1\n[h264 @ 0x564bdc2f31c0] Failed loading nvcuvid.\n[h264 @ 0x564bdc2f31c0] Failed setup for format cuda: hwaccel initialisation returned error.\nCropping to fit done..\nUpscaled video saved to: /src/ouput/tmp84vybs1breplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_upscaled_1920_1080.mp4", "metrics": { "predict_time": 24.952834, "total_time": 24.969014 }, "output": "https://replicate.delivery/pbxt/PpWmE8IEmDppOZiqAOhr22BZfm7ZNNkC0Zq8iXohdKvdK19IA/tmp84vybs1breplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_out.mp4", "started_at": "2023-11-24T19:01:54.411075Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/b76kwvlbq3l5gumj7zdsa24e6i", "cancel": "https://api.replicate.com/v1/predictions/b76kwvlbq3l5gumj7zdsa24e6i/cancel" }, "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320" }
Generated inUpscaling from 1024x512 to 1920x1080, crop_to_fit=True /root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( inference: 0%| | 0/25 [00:00<?, ?frame/s] inference: 4%|▍ | 1/25 [00:01<00:47, 1.96s/frame] inference: 8%|▊ | 2/25 [00:02<00:26, 1.16s/frame] inference: 12%|█▏ | 3/25 [00:03<00:19, 1.10frame/s] inference: 16%|█▌ | 4/25 [00:03<00:16, 1.27frame/s] inference: 20%|██ | 5/25 [00:04<00:14, 1.39frame/s] inference: 24%|██▍ | 6/25 [00:04<00:12, 1.47frame/s] inference: 28%|██▊ | 7/25 [00:05<00:11, 1.53frame/s] inference: 32%|███▏ | 8/25 [00:06<00:10, 1.57frame/s] inference: 36%|███▌ | 9/25 [00:06<00:10, 1.60frame/s] inference: 40%|████ | 10/25 [00:07<00:09, 1.62frame/s] inference: 44%|████▍ | 11/25 [00:07<00:08, 1.64frame/s] inference: 48%|████▊ | 12/25 [00:08<00:07, 1.64frame/s] inference: 52%|█████▏ | 13/25 [00:09<00:07, 1.65frame/s] inference: 56%|█████▌ | 14/25 [00:09<00:06, 1.66frame/s] inference: 60%|██████ | 15/25 [00:10<00:06, 1.66frame/s] inference: 64%|██████▍ | 16/25 [00:10<00:05, 1.67frame/s] inference: 68%|██████▊ | 17/25 [00:11<00:04, 1.66frame/s] inference: 72%|███████▏ | 18/25 [00:12<00:04, 1.66frame/s] inference: 76%|███████▌ | 19/25 [00:12<00:03, 1.67frame/s] inference: 80%|████████ | 20/25 [00:13<00:03, 1.66frame/s] inference: 84%|████████▍ | 21/25 [00:13<00:02, 1.66frame/s] inference: 88%|████████▊ | 22/25 [00:14<00:01, 1.67frame/s] inference: 92%|█████████▏| 23/25 [00:15<00:01, 1.67frame/s] inference: 96%|█████████▌| 24/25 [00:15<00:00, 1.67frame/s] inference: 100%|██████████| 25/25 [00:16<00:00, 1.67frame/s] inference: 100%|██████████| 25/25 [00:17<00:00, 1.46frame/s] [h264 @ 0x564bdc2f31c0] Cannot load libnvcuvid.so.1 [h264 @ 0x564bdc2f31c0] Failed loading nvcuvid. [h264 @ 0x564bdc2f31c0] Failed setup for format cuda: hwaccel initialisation returned error. Cropping to fit done.. Upscaled video saved to: /src/ouput/tmp84vybs1breplicate-prediction-wkusuc3brp5hwd27zaymz5rgdi_upscaled_1920_1080.mp4
Prediction
lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320IDvj23pn3by7wkj74yne7uajai74StatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedInput
- model
- realesr-animevideov3
- resolution
- FHD
- video_path
{ "model": "realesr-animevideov3", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzRdxkqq56Px4lWdJXculV0UVA4SBMFNapglxPSPUbiP7sE/out.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", { input: { model: "realesr-animevideov3", resolution: "FHD", video_path: "https://replicate.delivery/pbxt/JvzRdxkqq56Px4lWdJXculV0UVA4SBMFNapglxPSPUbiP7sE/out.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", input={ "model": "realesr-animevideov3", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzRdxkqq56Px4lWdJXculV0UVA4SBMFNapglxPSPUbiP7sE/out.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", "input": { "model": "realesr-animevideov3", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzRdxkqq56Px4lWdJXculV0UVA4SBMFNapglxPSPUbiP7sE/out.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-24T19:08:04.868872Z", "created_at": "2023-11-24T19:07:48.499419Z", "data_removed": false, "error": null, "id": "vj23pn3by7wkj74yne7uajai74", "input": { "model": "realesr-animevideov3", "resolution": "FHD", "video_path": "https://replicate.delivery/pbxt/JvzRdxkqq56Px4lWdJXculV0UVA4SBMFNapglxPSPUbiP7sE/out.mp4" }, "logs": "Upscaling from 512x512 to 1920x1080, crop_to_fit=True\n/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\nwarnings.warn(\nDownloading: \"https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-animevideov3.pth\" to /Real-ESRGAN/weights/realesr-animevideov3.pth\n 0%| | 0.00/2.39M [00:00<?, ?B/s]\n100%|██████████| 2.39M/2.39M [00:00<00:00, 224MB/s]\ninference: 0%| | 0/48 [00:00<?, ?frame/s]\ninference: 2%|▏ | 1/48 [00:01<01:11, 1.52s/frame]\ninference: 4%|▍ | 2/48 [00:01<00:32, 1.43frame/s]\ninference: 6%|▋ | 3/48 [00:01<00:19, 2.31frame/s]\ninference: 8%|▊ | 4/48 [00:01<00:13, 3.25frame/s]\ninference: 10%|█ | 5/48 [00:01<00:10, 4.21frame/s]\ninference: 12%|█▎ | 6/48 [00:02<00:08, 5.06frame/s]\ninference: 15%|█▍ | 7/48 [00:02<00:07, 5.85frame/s]\ninference: 17%|█▋ | 8/48 [00:02<00:06, 6.50frame/s]\ninference: 19%|█▉ | 9/48 [00:02<00:05, 7.06frame/s]\ninference: 21%|██ | 10/48 [00:02<00:05, 7.49frame/s]\ninference: 23%|██▎ | 11/48 [00:02<00:04, 7.82frame/s]\ninference: 25%|██▌ | 12/48 [00:02<00:04, 8.06frame/s]\ninference: 27%|██▋ | 13/48 [00:02<00:04, 8.20frame/s]\ninference: 29%|██▉ | 14/48 [00:03<00:04, 8.21frame/s]\ninference: 31%|███▏ | 15/48 [00:03<00:03, 8.26frame/s]\ninference: 33%|███▎ | 16/48 [00:03<00:03, 8.36frame/s]\ninference: 35%|███▌ | 17/48 [00:03<00:03, 8.37frame/s]\ninference: 38%|███▊ | 18/48 [00:03<00:03, 8.35frame/s]\ninference: 40%|███▉ | 19/48 [00:03<00:03, 8.37frame/s]\ninference: 42%|████▏ | 20/48 [00:03<00:03, 8.38frame/s]\ninference: 44%|████▍ | 21/48 [00:03<00:03, 8.36frame/s]\ninference: 46%|████▌ | 22/48 [00:03<00:03, 8.34frame/s]\ninference: 48%|████▊ | 23/48 [00:04<00:02, 8.47frame/s]\ninference: 50%|█████ | 24/48 [00:04<00:02, 8.53frame/s]\ninference: 52%|█████▏ | 25/48 [00:04<00:02, 8.54frame/s]\ninference: 54%|█████▍ | 26/48 [00:04<00:02, 8.52frame/s]\ninference: 56%|█████▋ | 27/48 [00:04<00:02, 8.59frame/s]\ninference: 58%|█████▊ | 28/48 [00:04<00:02, 8.63frame/s]\ninference: 60%|██████ | 29/48 [00:04<00:02, 8.66frame/s]\ninference: 62%|██████▎ | 30/48 [00:04<00:02, 8.70frame/s]\ninference: 65%|██████▍ | 31/48 [00:05<00:01, 8.73frame/s]\ninference: 67%|██████▋ | 32/48 [00:05<00:01, 8.68frame/s]\ninference: 69%|██████▉ | 33/48 [00:05<00:01, 8.58frame/s]\ninference: 71%|███████ | 34/48 [00:05<00:01, 8.56frame/s]\ninference: 73%|███████▎ | 35/48 [00:05<00:01, 8.49frame/s]\ninference: 75%|███████▌ | 36/48 [00:05<00:01, 8.53frame/s]\ninference: 77%|███████▋ | 37/48 [00:05<00:01, 8.52frame/s]\ninference: 79%|███████▉ | 38/48 [00:05<00:01, 8.48frame/s]\ninference: 81%|████████▏ | 39/48 [00:05<00:01, 8.50frame/s]\ninference: 83%|████████▎ | 40/48 [00:06<00:00, 8.43frame/s]\ninference: 85%|████████▌ | 41/48 [00:06<00:00, 8.36frame/s]\ninference: 88%|████████▊ | 42/48 [00:06<00:00, 8.31frame/s]\ninference: 90%|████████▉ | 43/48 [00:06<00:00, 8.05frame/s]\ninference: 92%|█████████▏| 44/48 [00:06<00:00, 8.17frame/s]\ninference: 94%|█████████▍| 45/48 [00:06<00:00, 8.13frame/s]\ninference: 96%|█████████▌| 46/48 [00:06<00:00, 8.12frame/s]\ninference: 98%|█████████▊| 47/48 [00:06<00:00, 8.15frame/s]\ninference: 100%|██████████| 48/48 [00:07<00:00, 8.09frame/s]\ninference: 100%|██████████| 48/48 [00:08<00:00, 5.66frame/s]\n[h264 @ 0x55bc5dd209c0] Cannot load libnvcuvid.so.1\n[h264 @ 0x55bc5dd209c0] Failed loading nvcuvid.\n[h264 @ 0x55bc5dd209c0] Failed setup for format cuda: hwaccel initialisation returned error.\nCropping to fit done..\nUpscaled video saved to: /src/ouput/tmpzqrp8f42out_upscaled_1920_1080.mp4", "metrics": { "predict_time": 16.356674, "total_time": 16.369453 }, "output": "https://replicate.delivery/pbxt/t8bbWpPayKqLJJYrZMTwDvfzAdmdoehTnpAvJpR0hrVUaq7RA/tmpzqrp8f42out_out.mp4", "started_at": "2023-11-24T19:07:48.512198Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vj23pn3by7wkj74yne7uajai74", "cancel": "https://api.replicate.com/v1/predictions/vj23pn3by7wkj74yne7uajai74/cancel" }, "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320" }
Generated inUpscaling from 512x512 to 1920x1080, crop_to_fit=True /root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-animevideov3.pth" to /Real-ESRGAN/weights/realesr-animevideov3.pth 0%| | 0.00/2.39M [00:00<?, ?B/s] 100%|██████████| 2.39M/2.39M [00:00<00:00, 224MB/s] inference: 0%| | 0/48 [00:00<?, ?frame/s] inference: 2%|▏ | 1/48 [00:01<01:11, 1.52s/frame] inference: 4%|▍ | 2/48 [00:01<00:32, 1.43frame/s] inference: 6%|▋ | 3/48 [00:01<00:19, 2.31frame/s] inference: 8%|▊ | 4/48 [00:01<00:13, 3.25frame/s] inference: 10%|█ | 5/48 [00:01<00:10, 4.21frame/s] inference: 12%|█▎ | 6/48 [00:02<00:08, 5.06frame/s] inference: 15%|█▍ | 7/48 [00:02<00:07, 5.85frame/s] inference: 17%|█▋ | 8/48 [00:02<00:06, 6.50frame/s] inference: 19%|█▉ | 9/48 [00:02<00:05, 7.06frame/s] inference: 21%|██ | 10/48 [00:02<00:05, 7.49frame/s] inference: 23%|██▎ | 11/48 [00:02<00:04, 7.82frame/s] inference: 25%|██▌ | 12/48 [00:02<00:04, 8.06frame/s] inference: 27%|██▋ | 13/48 [00:02<00:04, 8.20frame/s] inference: 29%|██▉ | 14/48 [00:03<00:04, 8.21frame/s] inference: 31%|███▏ | 15/48 [00:03<00:03, 8.26frame/s] inference: 33%|███▎ | 16/48 [00:03<00:03, 8.36frame/s] inference: 35%|███▌ | 17/48 [00:03<00:03, 8.37frame/s] inference: 38%|███▊ | 18/48 [00:03<00:03, 8.35frame/s] inference: 40%|███▉ | 19/48 [00:03<00:03, 8.37frame/s] inference: 42%|████▏ | 20/48 [00:03<00:03, 8.38frame/s] inference: 44%|████▍ | 21/48 [00:03<00:03, 8.36frame/s] inference: 46%|████▌ | 22/48 [00:03<00:03, 8.34frame/s] inference: 48%|████▊ | 23/48 [00:04<00:02, 8.47frame/s] inference: 50%|█████ | 24/48 [00:04<00:02, 8.53frame/s] inference: 52%|█████▏ | 25/48 [00:04<00:02, 8.54frame/s] inference: 54%|█████▍ | 26/48 [00:04<00:02, 8.52frame/s] inference: 56%|█████▋ | 27/48 [00:04<00:02, 8.59frame/s] inference: 58%|█████▊ | 28/48 [00:04<00:02, 8.63frame/s] inference: 60%|██████ | 29/48 [00:04<00:02, 8.66frame/s] inference: 62%|██████▎ | 30/48 [00:04<00:02, 8.70frame/s] inference: 65%|██████▍ | 31/48 [00:05<00:01, 8.73frame/s] inference: 67%|██████▋ | 32/48 [00:05<00:01, 8.68frame/s] inference: 69%|██████▉ | 33/48 [00:05<00:01, 8.58frame/s] inference: 71%|███████ | 34/48 [00:05<00:01, 8.56frame/s] inference: 73%|███████▎ | 35/48 [00:05<00:01, 8.49frame/s] inference: 75%|███████▌ | 36/48 [00:05<00:01, 8.53frame/s] inference: 77%|███████▋ | 37/48 [00:05<00:01, 8.52frame/s] inference: 79%|███████▉ | 38/48 [00:05<00:01, 8.48frame/s] inference: 81%|████████▏ | 39/48 [00:05<00:01, 8.50frame/s] inference: 83%|████████▎ | 40/48 [00:06<00:00, 8.43frame/s] inference: 85%|████████▌ | 41/48 [00:06<00:00, 8.36frame/s] inference: 88%|████████▊ | 42/48 [00:06<00:00, 8.31frame/s] inference: 90%|████████▉ | 43/48 [00:06<00:00, 8.05frame/s] inference: 92%|█████████▏| 44/48 [00:06<00:00, 8.17frame/s] inference: 94%|█████████▍| 45/48 [00:06<00:00, 8.13frame/s] inference: 96%|█████████▌| 46/48 [00:06<00:00, 8.12frame/s] inference: 98%|█████████▊| 47/48 [00:06<00:00, 8.15frame/s] inference: 100%|██████████| 48/48 [00:07<00:00, 8.09frame/s] inference: 100%|██████████| 48/48 [00:08<00:00, 5.66frame/s] [h264 @ 0x55bc5dd209c0] Cannot load libnvcuvid.so.1 [h264 @ 0x55bc5dd209c0] Failed loading nvcuvid. [h264 @ 0x55bc5dd209c0] Failed setup for format cuda: hwaccel initialisation returned error. Cropping to fit done.. Upscaled video saved to: /src/ouput/tmpzqrp8f42out_upscaled_1920_1080.mp4
Prediction
lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320ID34afjvjb6xjvrgmxskvph6clmaStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedby @lucatacoInput
- model
- RealESRGAN_x4plus
- resolution
- 2k
- video_path
{ "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/KX1xsphkWK5eQ6WAU1P33xOvNNaoWWRcpxbv4Z0oX1Wn9bCH/sora-glass-short.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", { input: { model: "RealESRGAN_x4plus", resolution: "2k", video_path: "https://replicate.delivery/pbxt/KX1xsphkWK5eQ6WAU1P33xOvNNaoWWRcpxbv4Z0oX1Wn9bCH/sora-glass-short.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", input={ "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/KX1xsphkWK5eQ6WAU1P33xOvNNaoWWRcpxbv4Z0oX1Wn9bCH/sora-glass-short.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", "input": { "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/KX1xsphkWK5eQ6WAU1P33xOvNNaoWWRcpxbv4Z0oX1Wn9bCH/sora-glass-short.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-08T03:40:25.373468Z", "created_at": "2024-03-08T03:35:40.672917Z", "data_removed": false, "error": null, "id": "34afjvjb6xjvrgmxskvph6clma", "input": { "model": "RealESRGAN_x4plus", "resolution": "2k", "video_path": "https://replicate.delivery/pbxt/KX1xsphkWK5eQ6WAU1P33xOvNNaoWWRcpxbv4Z0oX1Wn9bCH/sora-glass-short.mp4" }, "logs": "Upscaling from 1024x576 to 2560x1440, crop_to_fit=True\n/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\nwarnings.warn(\nDownloading: \"https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth\" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth\n 0%| | 0.00/63.9M [00:00<?, ?B/s]\n 9%|▉ | 5.77M/63.9M [00:00<00:01, 46.6MB/s]\n 47%|████▋ | 30.0M/63.9M [00:00<00:00, 156MB/s] \n 85%|████████▌ | 54.6M/63.9M [00:00<00:00, 199MB/s]\n100%|██████████| 63.9M/63.9M [00:00<00:00, 183MB/s]\ninference: 0%| | 0/238 [00:00<?, ?frame/s]\ninference: 0%| | 1/238 [00:01<04:28, 1.13s/frame]\ninference: 1%| | 2/238 [00:01<03:46, 1.04frame/s]\ninference: 1%|▏ | 3/238 [00:02<03:30, 1.12frame/s]\ninference: 2%|▏ | 4/238 [00:03<03:22, 1.16frame/s]\ninference: 2%|▏ | 5/238 [00:04<03:18, 1.17frame/s]\ninference: 3%|▎ | 6/238 [00:05<03:17, 1.18frame/s]\ninference: 3%|▎ | 7/238 [00:06<03:13, 1.19frame/s]\ninference: 3%|▎ | 8/238 [00:06<03:11, 1.20frame/s]\ninference: 4%|▍ | 9/238 [00:07<03:09, 1.21frame/s]\ninference: 4%|▍ | 10/238 [00:08<03:08, 1.21frame/s]\ninference: 5%|▍ | 11/238 [00:09<03:08, 1.21frame/s]\ninference: 5%|▌ | 12/238 [00:10<03:06, 1.21frame/s]\ninference: 5%|▌ | 13/238 [00:11<03:08, 1.20frame/s]\ninference: 6%|▌ | 14/238 [00:12<03:22, 1.11frame/s]\ninference: 6%|▋ | 15/238 [00:13<03:22, 1.10frame/s]\ninference: 7%|▋ | 16/238 [00:13<03:21, 1.10frame/s]\ninference: 7%|▋ | 17/238 [00:14<03:28, 1.06frame/s]\ninference: 8%|▊ | 18/238 [00:15<03:19, 1.10frame/s]\ninference: 8%|▊ | 19/238 [00:17<03:49, 1.05s/frame]\ninference: 8%|▊ | 20/238 [00:18<03:33, 1.02frame/s]\ninference: 9%|▉ | 21/238 [00:19<03:40, 1.01s/frame]\ninference: 9%|▉ | 22/238 [00:19<03:27, 1.04frame/s]\ninference: 10%|▉ | 23/238 [00:20<03:32, 1.01frame/s]\ninference: 10%|█ | 24/238 [00:21<03:20, 1.07frame/s]\ninference: 11%|█ | 25/238 [00:22<03:15, 1.09frame/s]\ninference: 11%|█ | 26/238 [00:23<03:09, 1.12frame/s]\ninference: 11%|█▏ | 27/238 [00:24<03:06, 1.13frame/s]\ninference: 12%|█▏ | 28/238 [00:25<03:01, 1.16frame/s]\ninference: 12%|█▏ | 29/238 [00:26<03:03, 1.14frame/s]\ninference: 13%|█▎ | 30/238 [00:26<02:59, 1.16frame/s]\ninference: 13%|█▎ | 31/238 [00:27<03:02, 1.13frame/s]\ninference: 13%|█▎ | 32/238 [00:28<02:58, 1.15frame/s]\ninference: 14%|█▍ | 33/238 [00:29<03:03, 1.12frame/s]\ninference: 14%|█▍ | 34/238 [00:30<02:58, 1.14frame/s]\ninference: 15%|█▍ | 35/238 [00:31<03:05, 1.10frame/s]\ninference: 15%|█▌ | 36/238 [00:32<02:58, 1.13frame/s]\ninference: 16%|█▌ | 37/238 [00:33<03:04, 1.09frame/s]\ninference: 16%|█▌ | 38/238 [00:34<02:57, 1.13frame/s]\ninference: 16%|█▋ | 39/238 [00:35<03:01, 1.09frame/s]\ninference: 17%|█▋ | 40/238 [00:35<02:55, 1.13frame/s]\ninference: 17%|█▋ | 41/238 [00:36<03:01, 1.09frame/s]\ninference: 18%|█▊ | 42/238 [00:37<02:54, 1.12frame/s]\ninference: 18%|█▊ | 43/238 [00:38<02:58, 1.09frame/s]\ninference: 18%|█▊ | 44/238 [00:39<02:52, 1.13frame/s]\ninference: 19%|█▉ | 45/238 [00:40<02:58, 1.08frame/s]\ninference: 19%|█▉ | 46/238 [00:41<02:51, 1.12frame/s]\ninference: 20%|█▉ | 47/238 [00:42<03:04, 1.03frame/s]\ninference: 20%|██ | 48/238 [00:43<02:56, 1.08frame/s]\ninference: 21%|██ | 49/238 [00:44<03:16, 1.04s/frame]\ninference: 21%|██ | 50/238 [00:45<03:03, 1.02frame/s]\ninference: 21%|██▏ | 51/238 [00:46<03:14, 1.04s/frame]\ninference: 22%|██▏ | 52/238 [00:47<03:03, 1.02frame/s]\ninference: 22%|██▏ | 53/238 [00:48<03:20, 1.09s/frame]\ninference: 23%|██▎ | 54/238 [00:49<03:05, 1.01s/frame]\ninference: 23%|██▎ | 55/238 [00:50<03:14, 1.06s/frame]\ninference: 24%|██▎ | 56/238 [00:51<03:00, 1.01frame/s]\ninference: 24%|██▍ | 57/238 [00:52<03:12, 1.06s/frame]\ninference: 24%|██▍ | 58/238 [00:53<02:58, 1.01frame/s]\ninference: 25%|██▍ | 59/238 [00:54<03:08, 1.05s/frame]\ninference: 25%|██▌ | 60/238 [00:55<02:56, 1.01frame/s]\ninference: 26%|██▌ | 61/238 [00:56<03:07, 1.06s/frame]\ninference: 26%|██▌ | 62/238 [00:57<02:53, 1.01frame/s]\ninference: 26%|██▋ | 63/238 [00:58<02:59, 1.02s/frame]\ninference: 27%|██▋ | 64/238 [00:59<02:47, 1.04frame/s]\ninference: 27%|██▋ | 65/238 [01:00<02:47, 1.03frame/s]\ninference: 28%|██▊ | 66/238 [01:01<02:38, 1.08frame/s]\ninference: 28%|██▊ | 67/238 [01:02<02:38, 1.08frame/s]\ninference: 29%|██▊ | 68/238 [01:03<02:31, 1.12frame/s]\ninference: 29%|██▉ | 69/238 [01:04<02:30, 1.12frame/s]\ninference: 29%|██▉ | 70/238 [01:04<02:26, 1.15frame/s]\ninference: 30%|██▉ | 71/238 [01:05<02:25, 1.15frame/s]\ninference: 30%|███ | 72/238 [01:06<02:22, 1.17frame/s]\ninference: 31%|███ | 73/238 [01:07<02:22, 1.16frame/s]\ninference: 31%|███ | 74/238 [01:08<02:19, 1.17frame/s]\ninference: 32%|███▏ | 75/238 [01:09<02:19, 1.17frame/s]\ninference: 32%|███▏ | 76/238 [01:10<02:16, 1.18frame/s]\ninference: 32%|███▏ | 77/238 [01:10<02:16, 1.18frame/s]\ninference: 33%|███▎ | 78/238 [01:11<02:14, 1.19frame/s]\ninference: 33%|███▎ | 79/238 [01:12<02:14, 1.18frame/s]\ninference: 34%|███▎ | 80/238 [01:13<02:12, 1.19frame/s]\ninference: 34%|███▍ | 81/238 [01:14<02:12, 1.18frame/s]\ninference: 34%|███▍ | 82/238 [01:15<02:11, 1.19frame/s]\ninference: 35%|███▍ | 83/238 [01:16<02:11, 1.17frame/s]\ninference: 35%|███▌ | 84/238 [01:16<02:09, 1.19frame/s]\ninference: 36%|███▌ | 85/238 [01:17<02:10, 1.17frame/s]\ninference: 36%|███▌ | 86/238 [01:18<02:08, 1.19frame/s]\ninference: 37%|███▋ | 87/238 [01:19<02:07, 1.18frame/s]\ninference: 37%|███▋ | 88/238 [01:20<02:06, 1.18frame/s]\ninference: 37%|███▋ | 89/238 [01:21<02:05, 1.18frame/s]\ninference: 38%|███▊ | 90/238 [01:21<02:05, 1.18frame/s]\ninference: 38%|███▊ | 91/238 [01:22<02:11, 1.12frame/s]\ninference: 39%|███▊ | 92/238 [01:23<02:07, 1.14frame/s]\ninference: 39%|███▉ | 93/238 [01:24<02:04, 1.16frame/s]\ninference: 39%|███▉ | 94/238 [01:25<02:03, 1.17frame/s]\ninference: 40%|███▉ | 95/238 [01:26<02:01, 1.18frame/s]\ninference: 40%|████ | 96/238 [01:27<01:59, 1.19frame/s]\ninference: 41%|████ | 97/238 [01:27<01:58, 1.19frame/s]\ninference: 41%|████ | 98/238 [01:28<01:57, 1.20frame/s]\ninference: 42%|████▏ | 99/238 [01:29<01:55, 1.20frame/s]\ninference: 42%|████▏ | 100/238 [01:30<01:54, 1.20frame/s]\ninference: 42%|████▏ | 101/238 [01:31<01:54, 1.20frame/s]\ninference: 43%|████▎ | 102/238 [01:32<01:53, 1.20frame/s]\ninference: 43%|████▎ | 103/238 [01:32<01:52, 1.20frame/s]\ninference: 44%|████▎ | 104/238 [01:33<01:51, 1.21frame/s]\ninference: 44%|████▍ | 105/238 [01:34<01:51, 1.20frame/s]\ninference: 45%|████▍ | 106/238 [01:35<01:50, 1.20frame/s]\ninference: 45%|████▍ | 107/238 [01:36<01:49, 1.20frame/s]\ninference: 45%|████▌ | 108/238 [01:37<01:47, 1.20frame/s]\ninference: 46%|████▌ | 109/238 [01:37<01:47, 1.20frame/s]\ninference: 46%|████▌ | 110/238 [01:38<01:46, 1.20frame/s]\ninference: 47%|████▋ | 111/238 [01:39<01:45, 1.20frame/s]\ninference: 47%|████▋ | 112/238 [01:40<01:44, 1.21frame/s]\ninference: 47%|████▋ | 113/238 [01:41<01:43, 1.21frame/s]\ninference: 48%|████▊ | 114/238 [01:42<01:42, 1.21frame/s]\ninference: 48%|████▊ | 115/238 [01:42<01:42, 1.21frame/s]\ninference: 49%|████▊ | 116/238 [01:43<01:40, 1.21frame/s]\ninference: 49%|████▉ | 117/238 [01:44<01:41, 1.20frame/s]\ninference: 50%|████▉ | 118/238 [01:45<01:39, 1.20frame/s]\ninference: 50%|█████ | 119/238 [01:46<01:38, 1.20frame/s]\ninference: 50%|█████ | 120/238 [01:47<01:37, 1.21frame/s]\ninference: 51%|█████ | 121/238 [01:47<01:37, 1.20frame/s]\ninference: 51%|█████▏ | 122/238 [01:48<01:36, 1.20frame/s]\ninference: 52%|█████▏ | 123/238 [01:49<01:36, 1.19frame/s]\ninference: 52%|█████▏ | 124/238 [01:50<01:35, 1.20frame/s]\ninference: 53%|█████▎ | 125/238 [01:51<01:34, 1.20frame/s]\ninference: 53%|█████▎ | 126/238 [01:52<01:33, 1.20frame/s]\ninference: 53%|█████▎ | 127/238 [01:52<01:32, 1.20frame/s]\ninference: 54%|█████▍ | 128/238 [01:53<01:31, 1.20frame/s]\ninference: 54%|█████▍ | 129/238 [01:54<01:30, 1.20frame/s]\ninference: 55%|█████▍ | 130/238 [01:55<01:29, 1.20frame/s]\ninference: 55%|█████▌ | 131/238 [01:56<01:29, 1.20frame/s]\ninference: 55%|█████▌ | 132/238 [01:57<01:28, 1.20frame/s]\ninference: 56%|█████▌ | 133/238 [01:57<01:27, 1.20frame/s]\ninference: 56%|█████▋ | 134/238 [01:58<01:26, 1.21frame/s]\ninference: 57%|█████▋ | 135/238 [01:59<01:25, 1.21frame/s]\ninference: 57%|█████▋ | 136/238 [02:00<01:24, 1.21frame/s]\ninference: 58%|█████▊ | 137/238 [02:01<01:26, 1.16frame/s]\ninference: 58%|█████▊ | 138/238 [02:02<01:24, 1.18frame/s]\ninference: 58%|█████▊ | 139/238 [02:02<01:23, 1.18frame/s]\ninference: 59%|█████▉ | 140/238 [02:03<01:22, 1.19frame/s]\ninference: 59%|█████▉ | 141/238 [02:04<01:20, 1.20frame/s]\ninference: 60%|█████▉ | 142/238 [02:05<01:19, 1.20frame/s]\ninference: 60%|██████ | 143/238 [02:06<01:19, 1.20frame/s]\ninference: 61%|██████ | 144/238 [02:07<01:17, 1.21frame/s]\ninference: 61%|██████ | 145/238 [02:07<01:17, 1.21frame/s]\ninference: 61%|██████▏ | 146/238 [02:08<01:16, 1.21frame/s]\ninference: 62%|██████▏ | 147/238 [02:09<01:15, 1.21frame/s]\ninference: 62%|██████▏ | 148/238 [02:10<01:14, 1.21frame/s]\ninference: 63%|██████▎ | 149/238 [02:11<01:13, 1.20frame/s]\ninference: 63%|██████▎ | 150/238 [02:12<01:12, 1.21frame/s]\ninference: 63%|██████▎ | 151/238 [02:12<01:12, 1.21frame/s]\ninference: 64%|██████▍ | 152/238 [02:13<01:11, 1.21frame/s]\ninference: 64%|██████▍ | 153/238 [02:14<01:10, 1.21frame/s]\ninference: 65%|██████▍ | 154/238 [02:15<01:09, 1.21frame/s]\ninference: 65%|██████▌ | 155/238 [02:16<01:08, 1.21frame/s]\ninference: 66%|██████▌ | 156/238 [02:16<01:07, 1.21frame/s]\ninference: 66%|██████▌ | 157/238 [02:17<01:06, 1.21frame/s]\ninference: 66%|██████▋ | 158/238 [02:18<01:06, 1.21frame/s]\ninference: 67%|██████▋ | 159/238 [02:19<01:05, 1.20frame/s]\ninference: 67%|██████▋ | 160/238 [02:20<01:04, 1.21frame/s]\ninference: 68%|██████▊ | 161/238 [02:21<01:03, 1.20frame/s]\ninference: 68%|██████▊ | 162/238 [02:21<01:02, 1.21frame/s]\ninference: 68%|██████▊ | 163/238 [02:22<01:02, 1.20frame/s]\ninference: 69%|██████▉ | 164/238 [02:23<01:01, 1.20frame/s]\ninference: 69%|██████▉ | 165/238 [02:24<01:00, 1.20frame/s]\ninference: 70%|██████▉ | 166/238 [02:25<00:59, 1.21frame/s]\ninference: 70%|███████ | 167/238 [02:26<00:58, 1.21frame/s]\ninference: 71%|███████ | 168/238 [02:26<00:57, 1.21frame/s]\ninference: 71%|███████ | 169/238 [02:27<00:57, 1.21frame/s]\ninference: 71%|███████▏ | 170/238 [02:28<00:56, 1.21frame/s]\ninference: 72%|███████▏ | 171/238 [02:29<00:55, 1.21frame/s]\ninference: 72%|███████▏ | 172/238 [02:30<00:54, 1.21frame/s]\ninference: 73%|███████▎ | 173/238 [02:31<00:54, 1.20frame/s]\ninference: 73%|███████▎ | 174/238 [02:31<00:53, 1.20frame/s]\ninference: 74%|███████▎ | 175/238 [02:32<00:52, 1.20frame/s]\ninference: 74%|███████▍ | 176/238 [02:33<00:51, 1.20frame/s]\ninference: 74%|███████▍ | 177/238 [02:34<00:50, 1.20frame/s]\ninference: 75%|███████▍ | 178/238 [02:35<00:49, 1.21frame/s]\ninference: 75%|███████▌ | 179/238 [02:36<00:49, 1.20frame/s]\ninference: 76%|███████▌ | 180/238 [02:36<00:48, 1.20frame/s]\ninference: 76%|███████▌ | 181/238 [02:37<00:47, 1.19frame/s]\ninference: 76%|███████▋ | 182/238 [02:38<00:46, 1.20frame/s]\ninference: 77%|███████▋ | 183/238 [02:39<00:45, 1.20frame/s]\ninference: 77%|███████▋ | 184/238 [02:40<00:44, 1.21frame/s]\ninference: 78%|███████▊ | 185/238 [02:41<00:44, 1.20frame/s]\ninference: 78%|███████▊ | 186/238 [02:41<00:43, 1.20frame/s]\ninference: 79%|███████▊ | 187/238 [02:42<00:42, 1.19frame/s]\ninference: 79%|███████▉ | 188/238 [02:43<00:41, 1.20frame/s]\ninference: 79%|███████▉ | 189/238 [02:44<00:40, 1.20frame/s]\ninference: 80%|███████▉ | 190/238 [02:45<00:40, 1.20frame/s]\ninference: 80%|████████ | 191/238 [02:46<00:39, 1.20frame/s]\ninference: 81%|████████ | 192/238 [02:46<00:38, 1.20frame/s]\ninference: 81%|████████ | 193/238 [02:47<00:37, 1.20frame/s]\ninference: 82%|████████▏ | 194/238 [02:48<00:36, 1.21frame/s]\ninference: 82%|████████▏ | 195/238 [02:49<00:35, 1.20frame/s]\ninference: 82%|████████▏ | 196/238 [02:50<00:35, 1.20frame/s]\ninference: 83%|████████▎ | 197/238 [02:51<00:34, 1.20frame/s]\ninference: 83%|████████▎ | 198/238 [02:51<00:33, 1.21frame/s]\ninference: 84%|████████▎ | 199/238 [02:52<00:32, 1.21frame/s]\ninference: 84%|████████▍ | 200/238 [02:53<00:31, 1.21frame/s]\ninference: 84%|████████▍ | 201/238 [02:54<00:30, 1.21frame/s]\ninference: 85%|████████▍ | 202/238 [02:55<00:29, 1.21frame/s]\ninference: 85%|████████▌ | 203/238 [02:56<00:28, 1.21frame/s]\ninference: 86%|████████▌ | 204/238 [02:56<00:28, 1.21frame/s]\ninference: 86%|████████▌ | 205/238 [02:57<00:27, 1.21frame/s]\ninference: 87%|████████▋ | 206/238 [02:58<00:26, 1.21frame/s]\ninference: 87%|████████▋ | 207/238 [02:59<00:25, 1.20frame/s]\ninference: 87%|████████▋ | 208/238 [03:00<00:24, 1.21frame/s]\ninference: 88%|████████▊ | 209/238 [03:00<00:24, 1.21frame/s]\ninference: 88%|████████▊ | 210/238 [03:01<00:23, 1.21frame/s]\ninference: 89%|████████▊ | 211/238 [03:02<00:22, 1.21frame/s]\ninference: 89%|████████▉ | 212/238 [03:03<00:21, 1.21frame/s]\ninference: 89%|████████▉ | 213/238 [03:04<00:20, 1.20frame/s]\ninference: 90%|████████▉ | 214/238 [03:05<00:19, 1.21frame/s]\ninference: 90%|█████████ | 215/238 [03:05<00:19, 1.21frame/s]\ninference: 91%|█████████ | 216/238 [03:06<00:18, 1.21frame/s]\ninference: 91%|█████████ | 217/238 [03:07<00:17, 1.20frame/s]\ninference: 92%|█████████▏| 218/238 [03:08<00:16, 1.21frame/s]\ninference: 92%|█████████▏| 219/238 [03:09<00:15, 1.21frame/s]\ninference: 92%|█████████▏| 220/238 [03:10<00:14, 1.21frame/s]\ninference: 93%|█████████▎| 221/238 [03:10<00:14, 1.21frame/s]\ninference: 93%|█████████▎| 222/238 [03:11<00:13, 1.21frame/s]\ninference: 94%|█████████▎| 223/238 [03:12<00:12, 1.21frame/s]\ninference: 94%|█████████▍| 224/238 [03:13<00:11, 1.21frame/s]\ninference: 95%|█████████▍| 225/238 [03:14<00:10, 1.21frame/s]\ninference: 95%|█████████▍| 226/238 [03:15<00:09, 1.21frame/s]\ninference: 95%|█████████▌| 227/238 [03:15<00:09, 1.21frame/s]\ninference: 96%|█████████▌| 228/238 [03:16<00:08, 1.21frame/s]\ninference: 96%|█████████▌| 229/238 [03:17<00:07, 1.21frame/s]\ninference: 97%|█████████▋| 230/238 [03:18<00:06, 1.21frame/s]\ninference: 97%|█████████▋| 231/238 [03:19<00:05, 1.21frame/s]\ninference: 97%|█████████▋| 232/238 [03:20<00:04, 1.21frame/s]\ninference: 98%|█████████▊| 233/238 [03:20<00:04, 1.20frame/s]\ninference: 98%|█████████▊| 234/238 [03:21<00:03, 1.21frame/s]\ninference: 99%|█████████▊| 235/238 [03:22<00:02, 1.20frame/s]\ninference: 99%|█████████▉| 236/238 [03:23<00:01, 1.21frame/s]\ninference: 100%|█████████▉| 237/238 [03:24<00:00, 1.20frame/s]\ninference: 100%|██████████| 238/238 [03:25<00:00, 1.21frame/s]\ninference: 100%|██████████| 238/238 [03:26<00:00, 1.15frame/s]\nCropping to fit done..\nUpscaled video saved to: /src/ouput/tmpelxlzoqmsora-glass-short_upscaled_2560_1440.mp4", "metrics": { "predict_time": 221.180025, "total_time": 284.700551 }, "output": "https://replicate.delivery/pbxt/qPXMkdXAuRrrO9jktd2iFdrlf51xC3qdBy3YUhYAEkgU1BPJA/tmpelxlzoqmsora-glass-short_out.mp4", "started_at": "2024-03-08T03:36:44.193443Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/34afjvjb6xjvrgmxskvph6clma", "cancel": "https://api.replicate.com/v1/predictions/34afjvjb6xjvrgmxskvph6clma/cancel" }, "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320" }
Generated inUpscaling from 1024x576 to 2560x1440, crop_to_fit=True /root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth 0%| | 0.00/63.9M [00:00<?, ?B/s] 9%|▉ | 5.77M/63.9M [00:00<00:01, 46.6MB/s] 47%|████▋ | 30.0M/63.9M [00:00<00:00, 156MB/s] 85%|████████▌ | 54.6M/63.9M [00:00<00:00, 199MB/s] 100%|██████████| 63.9M/63.9M [00:00<00:00, 183MB/s] inference: 0%| | 0/238 [00:00<?, ?frame/s] inference: 0%| | 1/238 [00:01<04:28, 1.13s/frame] inference: 1%| | 2/238 [00:01<03:46, 1.04frame/s] inference: 1%|▏ | 3/238 [00:02<03:30, 1.12frame/s] inference: 2%|▏ | 4/238 [00:03<03:22, 1.16frame/s] inference: 2%|▏ | 5/238 [00:04<03:18, 1.17frame/s] inference: 3%|▎ | 6/238 [00:05<03:17, 1.18frame/s] inference: 3%|▎ | 7/238 [00:06<03:13, 1.19frame/s] inference: 3%|▎ | 8/238 [00:06<03:11, 1.20frame/s] inference: 4%|▍ | 9/238 [00:07<03:09, 1.21frame/s] inference: 4%|▍ | 10/238 [00:08<03:08, 1.21frame/s] inference: 5%|▍ | 11/238 [00:09<03:08, 1.21frame/s] inference: 5%|▌ | 12/238 [00:10<03:06, 1.21frame/s] inference: 5%|▌ | 13/238 [00:11<03:08, 1.20frame/s] inference: 6%|▌ | 14/238 [00:12<03:22, 1.11frame/s] inference: 6%|▋ | 15/238 [00:13<03:22, 1.10frame/s] inference: 7%|▋ | 16/238 [00:13<03:21, 1.10frame/s] inference: 7%|▋ | 17/238 [00:14<03:28, 1.06frame/s] inference: 8%|▊ | 18/238 [00:15<03:19, 1.10frame/s] inference: 8%|▊ | 19/238 [00:17<03:49, 1.05s/frame] inference: 8%|▊ | 20/238 [00:18<03:33, 1.02frame/s] inference: 9%|▉ | 21/238 [00:19<03:40, 1.01s/frame] inference: 9%|▉ | 22/238 [00:19<03:27, 1.04frame/s] inference: 10%|▉ | 23/238 [00:20<03:32, 1.01frame/s] inference: 10%|█ | 24/238 [00:21<03:20, 1.07frame/s] inference: 11%|█ | 25/238 [00:22<03:15, 1.09frame/s] inference: 11%|█ | 26/238 [00:23<03:09, 1.12frame/s] inference: 11%|█▏ | 27/238 [00:24<03:06, 1.13frame/s] inference: 12%|█▏ | 28/238 [00:25<03:01, 1.16frame/s] inference: 12%|█▏ | 29/238 [00:26<03:03, 1.14frame/s] inference: 13%|█▎ | 30/238 [00:26<02:59, 1.16frame/s] inference: 13%|█▎ | 31/238 [00:27<03:02, 1.13frame/s] inference: 13%|█▎ | 32/238 [00:28<02:58, 1.15frame/s] inference: 14%|█▍ | 33/238 [00:29<03:03, 1.12frame/s] inference: 14%|█▍ | 34/238 [00:30<02:58, 1.14frame/s] inference: 15%|█▍ | 35/238 [00:31<03:05, 1.10frame/s] inference: 15%|█▌ | 36/238 [00:32<02:58, 1.13frame/s] inference: 16%|█▌ | 37/238 [00:33<03:04, 1.09frame/s] inference: 16%|█▌ | 38/238 [00:34<02:57, 1.13frame/s] inference: 16%|█▋ | 39/238 [00:35<03:01, 1.09frame/s] inference: 17%|█▋ | 40/238 [00:35<02:55, 1.13frame/s] inference: 17%|█▋ | 41/238 [00:36<03:01, 1.09frame/s] inference: 18%|█▊ | 42/238 [00:37<02:54, 1.12frame/s] inference: 18%|█▊ | 43/238 [00:38<02:58, 1.09frame/s] inference: 18%|█▊ | 44/238 [00:39<02:52, 1.13frame/s] inference: 19%|█▉ | 45/238 [00:40<02:58, 1.08frame/s] inference: 19%|█▉ | 46/238 [00:41<02:51, 1.12frame/s] inference: 20%|█▉ | 47/238 [00:42<03:04, 1.03frame/s] inference: 20%|██ | 48/238 [00:43<02:56, 1.08frame/s] inference: 21%|██ | 49/238 [00:44<03:16, 1.04s/frame] inference: 21%|██ | 50/238 [00:45<03:03, 1.02frame/s] inference: 21%|██▏ | 51/238 [00:46<03:14, 1.04s/frame] inference: 22%|██▏ | 52/238 [00:47<03:03, 1.02frame/s] inference: 22%|██▏ | 53/238 [00:48<03:20, 1.09s/frame] inference: 23%|██▎ | 54/238 [00:49<03:05, 1.01s/frame] inference: 23%|██▎ | 55/238 [00:50<03:14, 1.06s/frame] inference: 24%|██▎ | 56/238 [00:51<03:00, 1.01frame/s] inference: 24%|██▍ | 57/238 [00:52<03:12, 1.06s/frame] inference: 24%|██▍ | 58/238 [00:53<02:58, 1.01frame/s] inference: 25%|██▍ | 59/238 [00:54<03:08, 1.05s/frame] inference: 25%|██▌ | 60/238 [00:55<02:56, 1.01frame/s] inference: 26%|██▌ | 61/238 [00:56<03:07, 1.06s/frame] inference: 26%|██▌ | 62/238 [00:57<02:53, 1.01frame/s] inference: 26%|██▋ | 63/238 [00:58<02:59, 1.02s/frame] inference: 27%|██▋ | 64/238 [00:59<02:47, 1.04frame/s] inference: 27%|██▋ | 65/238 [01:00<02:47, 1.03frame/s] inference: 28%|██▊ | 66/238 [01:01<02:38, 1.08frame/s] inference: 28%|██▊ | 67/238 [01:02<02:38, 1.08frame/s] inference: 29%|██▊ | 68/238 [01:03<02:31, 1.12frame/s] inference: 29%|██▉ | 69/238 [01:04<02:30, 1.12frame/s] inference: 29%|██▉ | 70/238 [01:04<02:26, 1.15frame/s] inference: 30%|██▉ | 71/238 [01:05<02:25, 1.15frame/s] inference: 30%|███ | 72/238 [01:06<02:22, 1.17frame/s] inference: 31%|███ | 73/238 [01:07<02:22, 1.16frame/s] inference: 31%|███ | 74/238 [01:08<02:19, 1.17frame/s] inference: 32%|███▏ | 75/238 [01:09<02:19, 1.17frame/s] inference: 32%|███▏ | 76/238 [01:10<02:16, 1.18frame/s] inference: 32%|███▏ | 77/238 [01:10<02:16, 1.18frame/s] inference: 33%|███▎ | 78/238 [01:11<02:14, 1.19frame/s] inference: 33%|███▎ | 79/238 [01:12<02:14, 1.18frame/s] inference: 34%|███▎ | 80/238 [01:13<02:12, 1.19frame/s] inference: 34%|███▍ | 81/238 [01:14<02:12, 1.18frame/s] inference: 34%|███▍ | 82/238 [01:15<02:11, 1.19frame/s] inference: 35%|███▍ | 83/238 [01:16<02:11, 1.17frame/s] inference: 35%|███▌ | 84/238 [01:16<02:09, 1.19frame/s] inference: 36%|███▌ | 85/238 [01:17<02:10, 1.17frame/s] inference: 36%|███▌ | 86/238 [01:18<02:08, 1.19frame/s] inference: 37%|███▋ | 87/238 [01:19<02:07, 1.18frame/s] inference: 37%|███▋ | 88/238 [01:20<02:06, 1.18frame/s] inference: 37%|███▋ | 89/238 [01:21<02:05, 1.18frame/s] inference: 38%|███▊ | 90/238 [01:21<02:05, 1.18frame/s] inference: 38%|███▊ | 91/238 [01:22<02:11, 1.12frame/s] inference: 39%|███▊ | 92/238 [01:23<02:07, 1.14frame/s] inference: 39%|███▉ | 93/238 [01:24<02:04, 1.16frame/s] inference: 39%|███▉ | 94/238 [01:25<02:03, 1.17frame/s] inference: 40%|███▉ | 95/238 [01:26<02:01, 1.18frame/s] inference: 40%|████ | 96/238 [01:27<01:59, 1.19frame/s] inference: 41%|████ | 97/238 [01:27<01:58, 1.19frame/s] inference: 41%|████ | 98/238 [01:28<01:57, 1.20frame/s] inference: 42%|████▏ | 99/238 [01:29<01:55, 1.20frame/s] inference: 42%|████▏ | 100/238 [01:30<01:54, 1.20frame/s] inference: 42%|████▏ | 101/238 [01:31<01:54, 1.20frame/s] inference: 43%|████▎ | 102/238 [01:32<01:53, 1.20frame/s] inference: 43%|████▎ | 103/238 [01:32<01:52, 1.20frame/s] inference: 44%|████▎ | 104/238 [01:33<01:51, 1.21frame/s] inference: 44%|████▍ | 105/238 [01:34<01:51, 1.20frame/s] inference: 45%|████▍ | 106/238 [01:35<01:50, 1.20frame/s] inference: 45%|████▍ | 107/238 [01:36<01:49, 1.20frame/s] inference: 45%|████▌ | 108/238 [01:37<01:47, 1.20frame/s] inference: 46%|████▌ | 109/238 [01:37<01:47, 1.20frame/s] inference: 46%|████▌ | 110/238 [01:38<01:46, 1.20frame/s] inference: 47%|████▋ | 111/238 [01:39<01:45, 1.20frame/s] inference: 47%|████▋ | 112/238 [01:40<01:44, 1.21frame/s] inference: 47%|████▋ | 113/238 [01:41<01:43, 1.21frame/s] inference: 48%|████▊ | 114/238 [01:42<01:42, 1.21frame/s] inference: 48%|████▊ | 115/238 [01:42<01:42, 1.21frame/s] inference: 49%|████▊ | 116/238 [01:43<01:40, 1.21frame/s] inference: 49%|████▉ | 117/238 [01:44<01:41, 1.20frame/s] inference: 50%|████▉ | 118/238 [01:45<01:39, 1.20frame/s] inference: 50%|█████ | 119/238 [01:46<01:38, 1.20frame/s] inference: 50%|█████ | 120/238 [01:47<01:37, 1.21frame/s] inference: 51%|█████ | 121/238 [01:47<01:37, 1.20frame/s] inference: 51%|█████▏ | 122/238 [01:48<01:36, 1.20frame/s] inference: 52%|█████▏ | 123/238 [01:49<01:36, 1.19frame/s] inference: 52%|█████▏ | 124/238 [01:50<01:35, 1.20frame/s] inference: 53%|█████▎ | 125/238 [01:51<01:34, 1.20frame/s] inference: 53%|█████▎ | 126/238 [01:52<01:33, 1.20frame/s] inference: 53%|█████▎ | 127/238 [01:52<01:32, 1.20frame/s] inference: 54%|█████▍ | 128/238 [01:53<01:31, 1.20frame/s] inference: 54%|█████▍ | 129/238 [01:54<01:30, 1.20frame/s] inference: 55%|█████▍ | 130/238 [01:55<01:29, 1.20frame/s] inference: 55%|█████▌ | 131/238 [01:56<01:29, 1.20frame/s] inference: 55%|█████▌ | 132/238 [01:57<01:28, 1.20frame/s] inference: 56%|█████▌ | 133/238 [01:57<01:27, 1.20frame/s] inference: 56%|█████▋ | 134/238 [01:58<01:26, 1.21frame/s] inference: 57%|█████▋ | 135/238 [01:59<01:25, 1.21frame/s] inference: 57%|█████▋ | 136/238 [02:00<01:24, 1.21frame/s] inference: 58%|█████▊ | 137/238 [02:01<01:26, 1.16frame/s] inference: 58%|█████▊ | 138/238 [02:02<01:24, 1.18frame/s] inference: 58%|█████▊ | 139/238 [02:02<01:23, 1.18frame/s] inference: 59%|█████▉ | 140/238 [02:03<01:22, 1.19frame/s] inference: 59%|█████▉ | 141/238 [02:04<01:20, 1.20frame/s] inference: 60%|█████▉ | 142/238 [02:05<01:19, 1.20frame/s] inference: 60%|██████ | 143/238 [02:06<01:19, 1.20frame/s] inference: 61%|██████ | 144/238 [02:07<01:17, 1.21frame/s] inference: 61%|██████ | 145/238 [02:07<01:17, 1.21frame/s] inference: 61%|██████▏ | 146/238 [02:08<01:16, 1.21frame/s] inference: 62%|██████▏ | 147/238 [02:09<01:15, 1.21frame/s] inference: 62%|██████▏ | 148/238 [02:10<01:14, 1.21frame/s] inference: 63%|██████▎ | 149/238 [02:11<01:13, 1.20frame/s] inference: 63%|██████▎ | 150/238 [02:12<01:12, 1.21frame/s] inference: 63%|██████▎ | 151/238 [02:12<01:12, 1.21frame/s] inference: 64%|██████▍ | 152/238 [02:13<01:11, 1.21frame/s] inference: 64%|██████▍ | 153/238 [02:14<01:10, 1.21frame/s] inference: 65%|██████▍ | 154/238 [02:15<01:09, 1.21frame/s] inference: 65%|██████▌ | 155/238 [02:16<01:08, 1.21frame/s] inference: 66%|██████▌ | 156/238 [02:16<01:07, 1.21frame/s] inference: 66%|██████▌ | 157/238 [02:17<01:06, 1.21frame/s] inference: 66%|██████▋ | 158/238 [02:18<01:06, 1.21frame/s] inference: 67%|██████▋ | 159/238 [02:19<01:05, 1.20frame/s] inference: 67%|██████▋ | 160/238 [02:20<01:04, 1.21frame/s] inference: 68%|██████▊ | 161/238 [02:21<01:03, 1.20frame/s] inference: 68%|██████▊ | 162/238 [02:21<01:02, 1.21frame/s] inference: 68%|██████▊ | 163/238 [02:22<01:02, 1.20frame/s] inference: 69%|██████▉ | 164/238 [02:23<01:01, 1.20frame/s] inference: 69%|██████▉ | 165/238 [02:24<01:00, 1.20frame/s] inference: 70%|██████▉ | 166/238 [02:25<00:59, 1.21frame/s] inference: 70%|███████ | 167/238 [02:26<00:58, 1.21frame/s] inference: 71%|███████ | 168/238 [02:26<00:57, 1.21frame/s] inference: 71%|███████ | 169/238 [02:27<00:57, 1.21frame/s] inference: 71%|███████▏ | 170/238 [02:28<00:56, 1.21frame/s] inference: 72%|███████▏ | 171/238 [02:29<00:55, 1.21frame/s] inference: 72%|███████▏ | 172/238 [02:30<00:54, 1.21frame/s] inference: 73%|███████▎ | 173/238 [02:31<00:54, 1.20frame/s] inference: 73%|███████▎ | 174/238 [02:31<00:53, 1.20frame/s] inference: 74%|███████▎ | 175/238 [02:32<00:52, 1.20frame/s] inference: 74%|███████▍ | 176/238 [02:33<00:51, 1.20frame/s] inference: 74%|███████▍ | 177/238 [02:34<00:50, 1.20frame/s] inference: 75%|███████▍ | 178/238 [02:35<00:49, 1.21frame/s] inference: 75%|███████▌ | 179/238 [02:36<00:49, 1.20frame/s] inference: 76%|███████▌ | 180/238 [02:36<00:48, 1.20frame/s] inference: 76%|███████▌ | 181/238 [02:37<00:47, 1.19frame/s] inference: 76%|███████▋ | 182/238 [02:38<00:46, 1.20frame/s] inference: 77%|███████▋ | 183/238 [02:39<00:45, 1.20frame/s] inference: 77%|███████▋ | 184/238 [02:40<00:44, 1.21frame/s] inference: 78%|███████▊ | 185/238 [02:41<00:44, 1.20frame/s] inference: 78%|███████▊ | 186/238 [02:41<00:43, 1.20frame/s] inference: 79%|███████▊ | 187/238 [02:42<00:42, 1.19frame/s] inference: 79%|███████▉ | 188/238 [02:43<00:41, 1.20frame/s] inference: 79%|███████▉ | 189/238 [02:44<00:40, 1.20frame/s] inference: 80%|███████▉ | 190/238 [02:45<00:40, 1.20frame/s] inference: 80%|████████ | 191/238 [02:46<00:39, 1.20frame/s] inference: 81%|████████ | 192/238 [02:46<00:38, 1.20frame/s] inference: 81%|████████ | 193/238 [02:47<00:37, 1.20frame/s] inference: 82%|████████▏ | 194/238 [02:48<00:36, 1.21frame/s] inference: 82%|████████▏ | 195/238 [02:49<00:35, 1.20frame/s] inference: 82%|████████▏ | 196/238 [02:50<00:35, 1.20frame/s] inference: 83%|████████▎ | 197/238 [02:51<00:34, 1.20frame/s] inference: 83%|████████▎ | 198/238 [02:51<00:33, 1.21frame/s] inference: 84%|████████▎ | 199/238 [02:52<00:32, 1.21frame/s] inference: 84%|████████▍ | 200/238 [02:53<00:31, 1.21frame/s] inference: 84%|████████▍ | 201/238 [02:54<00:30, 1.21frame/s] inference: 85%|████████▍ | 202/238 [02:55<00:29, 1.21frame/s] inference: 85%|████████▌ | 203/238 [02:56<00:28, 1.21frame/s] inference: 86%|████████▌ | 204/238 [02:56<00:28, 1.21frame/s] inference: 86%|████████▌ | 205/238 [02:57<00:27, 1.21frame/s] inference: 87%|████████▋ | 206/238 [02:58<00:26, 1.21frame/s] inference: 87%|████████▋ | 207/238 [02:59<00:25, 1.20frame/s] inference: 87%|████████▋ | 208/238 [03:00<00:24, 1.21frame/s] inference: 88%|████████▊ | 209/238 [03:00<00:24, 1.21frame/s] inference: 88%|████████▊ | 210/238 [03:01<00:23, 1.21frame/s] inference: 89%|████████▊ | 211/238 [03:02<00:22, 1.21frame/s] inference: 89%|████████▉ | 212/238 [03:03<00:21, 1.21frame/s] inference: 89%|████████▉ | 213/238 [03:04<00:20, 1.20frame/s] inference: 90%|████████▉ | 214/238 [03:05<00:19, 1.21frame/s] inference: 90%|█████████ | 215/238 [03:05<00:19, 1.21frame/s] inference: 91%|█████████ | 216/238 [03:06<00:18, 1.21frame/s] inference: 91%|█████████ | 217/238 [03:07<00:17, 1.20frame/s] inference: 92%|█████████▏| 218/238 [03:08<00:16, 1.21frame/s] inference: 92%|█████████▏| 219/238 [03:09<00:15, 1.21frame/s] inference: 92%|█████████▏| 220/238 [03:10<00:14, 1.21frame/s] inference: 93%|█████████▎| 221/238 [03:10<00:14, 1.21frame/s] inference: 93%|█████████▎| 222/238 [03:11<00:13, 1.21frame/s] inference: 94%|█████████▎| 223/238 [03:12<00:12, 1.21frame/s] inference: 94%|█████████▍| 224/238 [03:13<00:11, 1.21frame/s] inference: 95%|█████████▍| 225/238 [03:14<00:10, 1.21frame/s] inference: 95%|█████████▍| 226/238 [03:15<00:09, 1.21frame/s] inference: 95%|█████████▌| 227/238 [03:15<00:09, 1.21frame/s] inference: 96%|█████████▌| 228/238 [03:16<00:08, 1.21frame/s] inference: 96%|█████████▌| 229/238 [03:17<00:07, 1.21frame/s] inference: 97%|█████████▋| 230/238 [03:18<00:06, 1.21frame/s] inference: 97%|█████████▋| 231/238 [03:19<00:05, 1.21frame/s] inference: 97%|█████████▋| 232/238 [03:20<00:04, 1.21frame/s] inference: 98%|█████████▊| 233/238 [03:20<00:04, 1.20frame/s] inference: 98%|█████████▊| 234/238 [03:21<00:03, 1.21frame/s] inference: 99%|█████████▊| 235/238 [03:22<00:02, 1.20frame/s] inference: 99%|█████████▉| 236/238 [03:23<00:01, 1.21frame/s] inference: 100%|█████████▉| 237/238 [03:24<00:00, 1.20frame/s] inference: 100%|██████████| 238/238 [03:25<00:00, 1.21frame/s] inference: 100%|██████████| 238/238 [03:26<00:00, 1.15frame/s] Cropping to fit done.. Upscaled video saved to: /src/ouput/tmpelxlzoqmsora-glass-short_upscaled_2560_1440.mp4
Prediction
lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320IDd8n2pfdmyhrgj0cf27z97ezjrrStatusSucceededSourceWebHardwareA100 (40GB)Total durationCreatedby @fofrInput
- model
- RealESRGAN_x4plus
- resolution
- 4k
- video_path
{ "model": "RealESRGAN_x4plus", "resolution": "4k", "video_path": "https://replicate.delivery/pbxt/KnyddBznuzcs3dsfcxhDZ4lUtn5ZYSOB9vPOmQX7KBDIfLvC/replicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", { input: { model: "RealESRGAN_x4plus", resolution: "4k", video_path: "https://replicate.delivery/pbxt/KnyddBznuzcs3dsfcxhDZ4lUtn5ZYSOB9vPOmQX7KBDIfLvC/replicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/real-esrgan-video:c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", input={ "model": "RealESRGAN_x4plus", "resolution": "4k", "video_path": "https://replicate.delivery/pbxt/KnyddBznuzcs3dsfcxhDZ4lUtn5ZYSOB9vPOmQX7KBDIfLvC/replicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1.mp4" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/real-esrgan-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320", "input": { "model": "RealESRGAN_x4plus", "resolution": "4k", "video_path": "https://replicate.delivery/pbxt/KnyddBznuzcs3dsfcxhDZ4lUtn5ZYSOB9vPOmQX7KBDIfLvC/replicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-04-24T21:27:21.863050Z", "created_at": "2024-04-24T21:24:16.244000Z", "data_removed": false, "error": null, "id": "d8n2pfdmyhrgj0cf27z97ezjrr", "input": { "model": "RealESRGAN_x4plus", "resolution": "4k", "video_path": "https://replicate.delivery/pbxt/KnyddBznuzcs3dsfcxhDZ4lUtn5ZYSOB9vPOmQX7KBDIfLvC/replicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1.mp4" }, "logs": "Upscaling from 488x656 to 2160x3840, crop_to_fit=True\n/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.\nwarnings.warn(\nDownloading: \"https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth\" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth\n 0%| | 0.00/63.9M [00:00<?, ?B/s]\n 58%|█████▊ | 36.9M/63.9M [00:00<00:00, 387MB/s]\n100%|██████████| 63.9M/63.9M [00:00<00:00, 445MB/s]\nYou are generating video that is larger than 4K, which will be very slow due to IO speed. We highly recommend to decrease the outscale(aka, -s).\ninference: 0%| | 0/96 [00:00<?, ?frame/s]\ninference: 1%| | 1/96 [00:01<03:06, 1.96s/frame]\ninference: 2%|▏ | 2/96 [00:02<01:42, 1.09s/frame]\ninference: 3%|▎ | 3/96 [00:02<01:14, 1.24frame/s]\ninference: 4%|▍ | 4/96 [00:03<01:00, 1.53frame/s]\ninference: 5%|▌ | 5/96 [00:03<00:52, 1.74frame/s]\ninference: 6%|▋ | 6/96 [00:04<00:48, 1.87frame/s]\ninference: 7%|▋ | 7/96 [00:04<00:44, 2.00frame/s]\ninference: 8%|▊ | 8/96 [00:05<00:42, 2.06frame/s]\ninference: 9%|▉ | 9/96 [00:05<00:40, 2.15frame/s]\ninference: 10%|█ | 10/96 [00:05<00:39, 2.17frame/s]\ninference: 11%|█▏ | 11/96 [00:06<00:38, 2.23frame/s]\ninference: 12%|█▎ | 12/96 [00:06<00:37, 2.23frame/s]\ninference: 14%|█▎ | 13/96 [00:07<00:36, 2.28frame/s]\ninference: 15%|█▍ | 14/96 [00:07<00:36, 2.26frame/s]\ninference: 16%|█▌ | 15/96 [00:08<00:35, 2.28frame/s]\ninference: 17%|█▋ | 16/96 [00:08<00:35, 2.26frame/s]\ninference: 18%|█▊ | 17/96 [00:09<00:34, 2.30frame/s]\ninference: 19%|█▉ | 18/96 [00:09<00:34, 2.27frame/s]\ninference: 20%|█▉ | 19/96 [00:09<00:33, 2.31frame/s]\ninference: 21%|██ | 20/96 [00:10<00:33, 2.28frame/s]\ninference: 22%|██▏ | 21/96 [00:10<00:32, 2.31frame/s]\ninference: 23%|██▎ | 22/96 [00:11<00:32, 2.28frame/s]\ninference: 24%|██▍ | 23/96 [00:11<00:31, 2.31frame/s]\ninference: 25%|██▌ | 24/96 [00:12<00:31, 2.27frame/s]\ninference: 26%|██▌ | 25/96 [00:12<00:30, 2.30frame/s]\ninference: 27%|██▋ | 26/96 [00:12<00:30, 2.28frame/s]\ninference: 28%|██▊ | 27/96 [00:13<00:29, 2.31frame/s]\ninference: 29%|██▉ | 28/96 [00:13<00:29, 2.28frame/s]\ninference: 30%|███ | 29/96 [00:14<00:28, 2.31frame/s]\ninference: 31%|███▏ | 30/96 [00:14<00:28, 2.28frame/s]\ninference: 32%|███▏ | 31/96 [00:15<00:28, 2.31frame/s]\ninference: 33%|███▎ | 32/96 [00:15<00:28, 2.28frame/s]\ninference: 34%|███▍ | 33/96 [00:15<00:27, 2.31frame/s]\ninference: 35%|███▌ | 34/96 [00:16<00:27, 2.28frame/s]\ninference: 36%|███▋ | 35/96 [00:16<00:26, 2.31frame/s]\ninference: 38%|███▊ | 36/96 [00:17<00:26, 2.28frame/s]\ninference: 39%|███▊ | 37/96 [00:17<00:25, 2.31frame/s]\ninference: 40%|███▉ | 38/96 [00:18<00:25, 2.28frame/s]\ninference: 41%|████ | 39/96 [00:18<00:24, 2.31frame/s]\ninference: 42%|████▏ | 40/96 [00:19<00:24, 2.28frame/s]\ninference: 43%|████▎ | 41/96 [00:19<00:23, 2.31frame/s]\ninference: 44%|████▍ | 42/96 [00:19<00:23, 2.28frame/s]\ninference: 45%|████▍ | 43/96 [00:20<00:23, 2.29frame/s]\ninference: 46%|████▌ | 44/96 [00:20<00:23, 2.25frame/s]\ninference: 47%|████▋ | 45/96 [00:21<00:22, 2.27frame/s]\ninference: 48%|████▊ | 46/96 [00:21<00:22, 2.23frame/s]\ninference: 49%|████▉ | 47/96 [00:22<00:22, 2.20frame/s]\ninference: 50%|█████ | 48/96 [00:22<00:22, 2.15frame/s]\ninference: 51%|█████ | 49/96 [00:23<00:21, 2.17frame/s]\ninference: 52%|█████▏ | 50/96 [00:23<00:21, 2.15frame/s]\ninference: 53%|█████▎ | 51/96 [00:24<00:20, 2.18frame/s]\ninference: 54%|█████▍ | 52/96 [00:24<00:20, 2.16frame/s]\ninference: 55%|█████▌ | 53/96 [00:24<00:19, 2.20frame/s]\ninference: 56%|█████▋ | 54/96 [00:25<00:19, 2.18frame/s]\ninference: 57%|█████▋ | 55/96 [00:25<00:18, 2.22frame/s]\ninference: 58%|█████▊ | 56/96 [00:26<00:18, 2.20frame/s]\ninference: 59%|█████▉ | 57/96 [00:26<00:17, 2.22frame/s]\ninference: 60%|██████ | 58/96 [00:27<00:17, 2.20frame/s]\ninference: 61%|██████▏ | 59/96 [00:27<00:16, 2.23frame/s]\ninference: 62%|██████▎ | 60/96 [00:28<00:16, 2.21frame/s]\ninference: 64%|██████▎ | 61/96 [00:28<00:15, 2.24frame/s]\ninference: 65%|██████▍ | 62/96 [00:29<00:15, 2.20frame/s]\ninference: 66%|██████▌ | 63/96 [00:29<00:14, 2.23frame/s]\ninference: 67%|██████▋ | 64/96 [00:29<00:14, 2.20frame/s]\ninference: 68%|██████▊ | 65/96 [00:30<00:13, 2.22frame/s]\ninference: 69%|██████▉ | 66/96 [00:30<00:13, 2.20frame/s]\ninference: 70%|██████▉ | 67/96 [00:31<00:13, 2.23frame/s]\ninference: 71%|███████ | 68/96 [00:31<00:12, 2.20frame/s]\ninference: 72%|███████▏ | 69/96 [00:32<00:12, 2.22frame/s]\ninference: 73%|███████▎ | 70/96 [00:32<00:11, 2.18frame/s]\ninference: 74%|███████▍ | 71/96 [00:33<00:11, 2.21frame/s]\ninference: 75%|███████▌ | 72/96 [00:33<00:10, 2.18frame/s]\ninference: 76%|███████▌ | 73/96 [00:33<00:10, 2.21frame/s]\ninference: 77%|███████▋ | 74/96 [00:34<00:10, 2.18frame/s]\ninference: 78%|███████▊ | 75/96 [00:34<00:09, 2.20frame/s]\ninference: 79%|███████▉ | 76/96 [00:35<00:09, 2.18frame/s]\ninference: 80%|████████ | 77/96 [00:35<00:08, 2.21frame/s]\ninference: 81%|████████▏ | 78/96 [00:36<00:08, 2.19frame/s]\ninference: 82%|████████▏ | 79/96 [00:36<00:07, 2.19frame/s]\ninference: 83%|████████▎ | 80/96 [00:37<00:07, 2.18frame/s]\ninference: 84%|████████▍ | 81/96 [00:37<00:06, 2.21frame/s]\ninference: 85%|████████▌ | 82/96 [00:38<00:06, 2.17frame/s]\ninference: 86%|████████▋ | 83/96 [00:38<00:05, 2.21frame/s]\ninference: 88%|████████▊ | 84/96 [00:39<00:05, 2.19frame/s]\ninference: 89%|████████▊ | 85/96 [00:39<00:04, 2.22frame/s]\ninference: 90%|████████▉ | 86/96 [00:39<00:04, 2.19frame/s]\ninference: 91%|█████████ | 87/96 [00:40<00:04, 2.22frame/s]\ninference: 92%|█████████▏| 88/96 [00:40<00:03, 2.19frame/s]\ninference: 93%|█████████▎| 89/96 [00:41<00:03, 2.22frame/s]\ninference: 94%|█████████▍| 90/96 [00:41<00:02, 2.20frame/s]\ninference: 95%|█████████▍| 91/96 [00:42<00:02, 2.22frame/s]\ninference: 96%|█████████▌| 92/96 [00:42<00:01, 2.17frame/s]\ninference: 97%|█████████▋| 93/96 [00:43<00:01, 2.21frame/s]\ninference: 98%|█████████▊| 94/96 [00:43<00:00, 2.19frame/s]\ninference: 99%|█████████▉| 95/96 [00:43<00:00, 2.23frame/s]\ninference: 100%|██████████| 96/96 [00:44<00:00, 2.20frame/s]\ninference: 100%|██████████| 96/96 [00:50<00:00, 1.89frame/s]\n[h264 @ 0x559bcfafc800] Cannot load libnvcuvid.so.1\n[h264 @ 0x559bcfafc800] Failed loading nvcuvid.\n[h264 @ 0x559bcfafc800] Failed setup for format cuda: hwaccel initialisation returned error.\nCropping to fit done..\nUpscaled video saved to: /src/ouput/tmpxaoltl2treplicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1_upscaled_2160_3840.mp4", "metrics": { "predict_time": 73.592536, "total_time": 185.61905 }, "output": "https://replicate.delivery/pbxt/VTbGXAPB7f2DbqhiMYROWYlqUqvVDnA8iWnyzHuQ1be4sytSA/tmpxaoltl2treplicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1_out.mp4", "started_at": "2024-04-24T21:26:08.270514Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/d8n2pfdmyhrgj0cf27z97ezjrr", "cancel": "https://api.replicate.com/v1/predictions/d8n2pfdmyhrgj0cf27z97ezjrr/cancel" }, "version": "c23768236472c41b7a121ee735c8073e29080c01b32907740cfada61bff75320" }
Generated inUpscaling from 488x656 to 2160x3840, crop_to_fit=True /root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Downloading: "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth" to /Real-ESRGAN/weights/RealESRGAN_x4plus.pth 0%| | 0.00/63.9M [00:00<?, ?B/s] 58%|█████▊ | 36.9M/63.9M [00:00<00:00, 387MB/s] 100%|██████████| 63.9M/63.9M [00:00<00:00, 445MB/s] You are generating video that is larger than 4K, which will be very slow due to IO speed. We highly recommend to decrease the outscale(aka, -s). inference: 0%| | 0/96 [00:00<?, ?frame/s] inference: 1%| | 1/96 [00:01<03:06, 1.96s/frame] inference: 2%|▏ | 2/96 [00:02<01:42, 1.09s/frame] inference: 3%|▎ | 3/96 [00:02<01:14, 1.24frame/s] inference: 4%|▍ | 4/96 [00:03<01:00, 1.53frame/s] inference: 5%|▌ | 5/96 [00:03<00:52, 1.74frame/s] inference: 6%|▋ | 6/96 [00:04<00:48, 1.87frame/s] inference: 7%|▋ | 7/96 [00:04<00:44, 2.00frame/s] inference: 8%|▊ | 8/96 [00:05<00:42, 2.06frame/s] inference: 9%|▉ | 9/96 [00:05<00:40, 2.15frame/s] inference: 10%|█ | 10/96 [00:05<00:39, 2.17frame/s] inference: 11%|█▏ | 11/96 [00:06<00:38, 2.23frame/s] inference: 12%|█▎ | 12/96 [00:06<00:37, 2.23frame/s] inference: 14%|█▎ | 13/96 [00:07<00:36, 2.28frame/s] inference: 15%|█▍ | 14/96 [00:07<00:36, 2.26frame/s] inference: 16%|█▌ | 15/96 [00:08<00:35, 2.28frame/s] inference: 17%|█▋ | 16/96 [00:08<00:35, 2.26frame/s] inference: 18%|█▊ | 17/96 [00:09<00:34, 2.30frame/s] inference: 19%|█▉ | 18/96 [00:09<00:34, 2.27frame/s] inference: 20%|█▉ | 19/96 [00:09<00:33, 2.31frame/s] inference: 21%|██ | 20/96 [00:10<00:33, 2.28frame/s] inference: 22%|██▏ | 21/96 [00:10<00:32, 2.31frame/s] inference: 23%|██▎ | 22/96 [00:11<00:32, 2.28frame/s] inference: 24%|██▍ | 23/96 [00:11<00:31, 2.31frame/s] inference: 25%|██▌ | 24/96 [00:12<00:31, 2.27frame/s] inference: 26%|██▌ | 25/96 [00:12<00:30, 2.30frame/s] inference: 27%|██▋ | 26/96 [00:12<00:30, 2.28frame/s] inference: 28%|██▊ | 27/96 [00:13<00:29, 2.31frame/s] inference: 29%|██▉ | 28/96 [00:13<00:29, 2.28frame/s] inference: 30%|███ | 29/96 [00:14<00:28, 2.31frame/s] inference: 31%|███▏ | 30/96 [00:14<00:28, 2.28frame/s] inference: 32%|███▏ | 31/96 [00:15<00:28, 2.31frame/s] inference: 33%|███▎ | 32/96 [00:15<00:28, 2.28frame/s] inference: 34%|███▍ | 33/96 [00:15<00:27, 2.31frame/s] inference: 35%|███▌ | 34/96 [00:16<00:27, 2.28frame/s] inference: 36%|███▋ | 35/96 [00:16<00:26, 2.31frame/s] inference: 38%|███▊ | 36/96 [00:17<00:26, 2.28frame/s] inference: 39%|███▊ | 37/96 [00:17<00:25, 2.31frame/s] inference: 40%|███▉ | 38/96 [00:18<00:25, 2.28frame/s] inference: 41%|████ | 39/96 [00:18<00:24, 2.31frame/s] inference: 42%|████▏ | 40/96 [00:19<00:24, 2.28frame/s] inference: 43%|████▎ | 41/96 [00:19<00:23, 2.31frame/s] inference: 44%|████▍ | 42/96 [00:19<00:23, 2.28frame/s] inference: 45%|████▍ | 43/96 [00:20<00:23, 2.29frame/s] inference: 46%|████▌ | 44/96 [00:20<00:23, 2.25frame/s] inference: 47%|████▋ | 45/96 [00:21<00:22, 2.27frame/s] inference: 48%|████▊ | 46/96 [00:21<00:22, 2.23frame/s] inference: 49%|████▉ | 47/96 [00:22<00:22, 2.20frame/s] inference: 50%|█████ | 48/96 [00:22<00:22, 2.15frame/s] inference: 51%|█████ | 49/96 [00:23<00:21, 2.17frame/s] inference: 52%|█████▏ | 50/96 [00:23<00:21, 2.15frame/s] inference: 53%|█████▎ | 51/96 [00:24<00:20, 2.18frame/s] inference: 54%|█████▍ | 52/96 [00:24<00:20, 2.16frame/s] inference: 55%|█████▌ | 53/96 [00:24<00:19, 2.20frame/s] inference: 56%|█████▋ | 54/96 [00:25<00:19, 2.18frame/s] inference: 57%|█████▋ | 55/96 [00:25<00:18, 2.22frame/s] inference: 58%|█████▊ | 56/96 [00:26<00:18, 2.20frame/s] inference: 59%|█████▉ | 57/96 [00:26<00:17, 2.22frame/s] inference: 60%|██████ | 58/96 [00:27<00:17, 2.20frame/s] inference: 61%|██████▏ | 59/96 [00:27<00:16, 2.23frame/s] inference: 62%|██████▎ | 60/96 [00:28<00:16, 2.21frame/s] inference: 64%|██████▎ | 61/96 [00:28<00:15, 2.24frame/s] inference: 65%|██████▍ | 62/96 [00:29<00:15, 2.20frame/s] inference: 66%|██████▌ | 63/96 [00:29<00:14, 2.23frame/s] inference: 67%|██████▋ | 64/96 [00:29<00:14, 2.20frame/s] inference: 68%|██████▊ | 65/96 [00:30<00:13, 2.22frame/s] inference: 69%|██████▉ | 66/96 [00:30<00:13, 2.20frame/s] inference: 70%|██████▉ | 67/96 [00:31<00:13, 2.23frame/s] inference: 71%|███████ | 68/96 [00:31<00:12, 2.20frame/s] inference: 72%|███████▏ | 69/96 [00:32<00:12, 2.22frame/s] inference: 73%|███████▎ | 70/96 [00:32<00:11, 2.18frame/s] inference: 74%|███████▍ | 71/96 [00:33<00:11, 2.21frame/s] inference: 75%|███████▌ | 72/96 [00:33<00:10, 2.18frame/s] inference: 76%|███████▌ | 73/96 [00:33<00:10, 2.21frame/s] inference: 77%|███████▋ | 74/96 [00:34<00:10, 2.18frame/s] inference: 78%|███████▊ | 75/96 [00:34<00:09, 2.20frame/s] inference: 79%|███████▉ | 76/96 [00:35<00:09, 2.18frame/s] inference: 80%|████████ | 77/96 [00:35<00:08, 2.21frame/s] inference: 81%|████████▏ | 78/96 [00:36<00:08, 2.19frame/s] inference: 82%|████████▏ | 79/96 [00:36<00:07, 2.19frame/s] inference: 83%|████████▎ | 80/96 [00:37<00:07, 2.18frame/s] inference: 84%|████████▍ | 81/96 [00:37<00:06, 2.21frame/s] inference: 85%|████████▌ | 82/96 [00:38<00:06, 2.17frame/s] inference: 86%|████████▋ | 83/96 [00:38<00:05, 2.21frame/s] inference: 88%|████████▊ | 84/96 [00:39<00:05, 2.19frame/s] inference: 89%|████████▊ | 85/96 [00:39<00:04, 2.22frame/s] inference: 90%|████████▉ | 86/96 [00:39<00:04, 2.19frame/s] inference: 91%|█████████ | 87/96 [00:40<00:04, 2.22frame/s] inference: 92%|█████████▏| 88/96 [00:40<00:03, 2.19frame/s] inference: 93%|█████████▎| 89/96 [00:41<00:03, 2.22frame/s] inference: 94%|█████████▍| 90/96 [00:41<00:02, 2.20frame/s] inference: 95%|█████████▍| 91/96 [00:42<00:02, 2.22frame/s] inference: 96%|█████████▌| 92/96 [00:42<00:01, 2.17frame/s] inference: 97%|█████████▋| 93/96 [00:43<00:01, 2.21frame/s] inference: 98%|█████████▊| 94/96 [00:43<00:00, 2.19frame/s] inference: 99%|█████████▉| 95/96 [00:43<00:00, 2.23frame/s] inference: 100%|██████████| 96/96 [00:44<00:00, 2.20frame/s] inference: 100%|██████████| 96/96 [00:50<00:00, 1.89frame/s] [h264 @ 0x559bcfafc800] Cannot load libnvcuvid.so.1 [h264 @ 0x559bcfafc800] Failed loading nvcuvid. [h264 @ 0x559bcfafc800] Failed setup for format cuda: hwaccel initialisation returned error. Cropping to fit done.. Upscaled video saved to: /src/ouput/tmpxaoltl2treplicate-prediction-7zmprcqn1drgj0cf27c9ab2410-1_upscaled_2160_3840.mp4
Want to make some of these yourself?
Run this model