Enhance Your Images with batouresearch's High-Resolution ControlNet Tile Actions

24 Apr 2025
Enhance Your Images with batouresearch's High-Resolution ControlNet Tile Actions

In the world of image processing, achieving high-quality results can often be a challenge. Enter the batouresearch/high-resolution-controlnet-tile, a powerful set of Cognitive Actions designed for image enhancement. In particular, the Enhance Image Upscale Quality action leverages an innovative upscaling algorithm based on Fermat.app's open-source implementation of ControlNet 1.1. This action not only improves image quality but also adds a creative flair, making it an invaluable tool for developers looking to enhance their applications with advanced image processing capabilities.

Prerequisites

To get started with the Cognitive Actions from the batouresearch/high-resolution-controlnet-tile, you will need an API key for the Cognitive Actions platform. Authentication typically involves passing this API key in the headers of your requests. This ensures that only authorized users can access the functionality provided by the platform.

Cognitive Actions Overview

Enhance Image Upscale Quality

The Enhance Image Upscale Quality action is designed to apply a sophisticated upscaling algorithm that significantly enhances image quality while adding creative elements to the output. This makes it particularly useful for applications requiring high-resolution images with artistic touch.

  • Category: Image Enhancement

Input

The input schema for this action requires several parameters that guide the image enhancement process:

{
  "seed": 12345,
  "image": "https://example.com/image.webp",
  "steps": 8,
  "format": "jpg",
  "prompt": "a nordic livingroom, 4k interior photography, uhd",
  "guessMode": false,
  "scheduler": "DDIM",
  "creativity": 0.4,
  "resolution": 2560,
  "resemblance": 0.85,
  "guidanceScale": 0,
  "hdrEnhancement": 0,
  "negativePrompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
  "loraDetailsStrength": -0.25,
  "loraSharpnessStrength": 0.75
}

Example Input:

{
  "image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
  "steps": 8,
  "format": "jpg",
  "prompt": "a nordic livingroom, 4k interior photography, uhd",
  "guessMode": false,
  "scheduler": "DDIM",
  "creativity": 0.4,
  "resolution": 2560,
  "resemblance": 0.85,
  "guidanceScale": 0,
  "hdrEnhancement": 0,
  "negativePrompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
  "loraDetailsStrength": -0.25,
  "loraSharpnessStrength": 0.75
}

Output

Upon successful execution, the action returns a URL link to the enhanced image. The output will generally resemble the following:

Example Output:

https://assets.cognitiveactions.com/invocations/96613cce-775e-4196-87ff-fdccf68150c4/657104e8-bdbb-4c44-a2ab-43a7d1f113a0.jpg

This link points to the newly created image, showcasing the improvements made through the action.

Conceptual Usage Example (Python)

Here's a conceptual Python snippet that demonstrates how to invoke the Enhance Image Upscale Quality action using the hypothetical Cognitive Actions execution endpoint:

import requests
import json

# Replace with your Cognitive Actions API key and endpoint
COGNITIVE_ACTIONS_API_KEY = "YOUR_COGNITIVE_ACTIONS_API_KEY"
COGNITIVE_ACTIONS_EXECUTE_URL = "https://api.cognitiveactions.com/actions/execute" # Hypothetical endpoint

action_id = "8c260cdb-90d5-4e49-8170-9ccd4c4b33f5"  # Action ID for Enhance Image Upscale Quality

# Construct the input payload based on the action's requirements
payload = {
    "image": "https://replicate.delivery/pbxt/LKnw8rSgafZf4IlAVyPhzpX1TpTVcyfRa1saoaoiSfUYZLiL/fermat_app_a_living_room_modern_and_minimalistic_39b5a58a-e05b-4281-ac24-e87435256333-1.webp",
    "steps": 8,
    "format": "jpg",
    "prompt": "a nordic livingroom, 4k interior photography, uhd",
    "guessMode": False,
    "scheduler": "DDIM",
    "creativity": 0.4,
    "resolution": 2560,
    "resemblance": 0.85,
    "guidanceScale": 0,
    "hdrEnhancement": 0,
    "negativePrompt": "Teeth, tooth, open mouth, longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, mutant",
    "loraDetailsStrength": -0.25,
    "loraSharpnessStrength": 0.75
}

headers = {
    "Authorization": f"Bearer {COGNITIVE_ACTIONS_API_KEY}",
    "Content-Type": "application/json"
}

try:
    response = requests.post(
        COGNITIVE_ACTIONS_EXECUTE_URL,
        headers=headers,
        json={"action_id": action_id, "inputs": payload}  # Hypothetical structure
    )
    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)

    result = response.json()
    print("Action executed successfully:")
    print(json.dumps(result, indent=2))

except requests.exceptions.RequestException as e:
    print(f"Error executing action {action_id}: {e}")
    if e.response is not None:
        print(f"Response status: {e.response.status_code}")
        try:
            print(f"Response body: {e.response.json()}")
        except json.JSONDecodeError:
            print(f"Response body: {e.response.text}")

In this code snippet:

  • The action ID and input payload are structured as per the requirements.
  • The request is sent to a hypothetical endpoint where the action can be executed.
  • The response is checked and printed, providing feedback on the action's success or failure.

Conclusion

The batouresearch/high-resolution-controlnet-tile Cognitive Actions, particularly the Enhance Image Upscale Quality, provide developers with robust tools for image enhancement. By integrating these actions into your applications, you can significantly improve image quality and creativity, taking your projects to the next level. Consider exploring various parameters to customize the output as per your unique requirements and enhance user experience in your applications!