๐ŸŽฌ Enhance images with Riverflow 2.0 reference-based super-resolution via Replicate

โšก 50 views ยท ๐ŸŽฌ Content Creation & Video

Description

How it works

This workflow can take an image URL and enhance said image using Riverflow 2.0 Reference-Based Super-Resolution. This process involves giving the model an image to enhance along with a reference image to specify a certain element to enhance. For example, if we have a photoshoot but the product looks blurry/low quality, we can feed this along with a reference for what the product should look like and it will enhance that element based on the reference we gave. This workflow takes advantage of this and does the following steps:

  1. Input Form takes in the necessary inputs used for Riverflow 2.0
    • Image (required)
    • Super Resolution References (required, max 4)
  2. Inputs are Sanitized using JavaScript to get in a suitable way to be used in API call.
  3. POST request is made to the Replicate API to begin generating the new image.
  4. a GET request is looped over to check the status of the generation; when the generation is done, this loop breaks to output the image or an error if one occurred.
  5. The output is then given as a raw image to be downloaded or viewed within the workflow (or passed on to elsewhere).

Setup

This Workflow requires a Replicate API key which can be accessed from Replicate

Ideal for

Customization

Reference-Based Super Resolution:

The model will:

To get the best results:

The model can fix up to 4 matched instances in a single run. More about Riverflow 2.0: www.riverflow.ai for more information for API: Sourceful - Replicate API

๐Ÿ”— Nodes Used

HTTP Request, Stop and Error, n8n Form Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup