From c3e196822dd5a049be209cfdc22430b8543cfa85 Mon Sep 17 00:00:00 2001 From: Jason <83615043+JJassonn69@users.noreply.github.com> Date: Wed, 23 Apr 2025 12:09:03 +0300 Subject: [PATCH] chore: add example workflow for super resolution (#26) * Added Super Resolution to the streampack * Super Resolution created by ryan, updated for missing <> Co-authored-by: ryanontheinside <7623207+ryanontheinside@users.noreply.github.com> * add prestartup script to check for opencv-cuda * update log msg * Add FSRCNN 2x super-resolution GPU workflow example --------- Co-authored-by: ryanontheinside <7623207+ryanontheinside@users.noreply.github.com> Co-authored-by: John | Elite Encoder --- .../super-res-fscnn-upscale-2x-gpu-api.json | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 examples/workflows/super-res-fscnn-upscale-2x-gpu-api.json diff --git a/examples/workflows/super-res-fscnn-upscale-2x-gpu-api.json b/examples/workflows/super-res-fscnn-upscale-2x-gpu-api.json new file mode 100644 index 0000000..7e3df36 --- /dev/null +++ b/examples/workflows/super-res-fscnn-upscale-2x-gpu-api.json @@ -0,0 +1,50 @@ +{ + "1": { + "inputs": { + "model_type": "FSRCNN", + "scale_factor": "2" + }, + "class_type": "SuperResolutionModelLoader", + "_meta": { + "title": "SR Model Loader" + } + }, + "2": { + "inputs": { + "use_cuda": "True", + "image": [ + "3", + 0 + ], + "sr_model": [ + "1", + 0 + ] + }, + "class_type": "SuperResolutionUpscale", + "_meta": { + "title": "SR Upscale" + } + }, + "3": { + "inputs": { + "image": "example-512x512.png" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Load Image" + } + }, + "4": { + "inputs": { + "images": [ + "2", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + } +} \ No newline at end of file