CoolFace
Modelpublic

PrunaAI/p-image-edit-photo-upscaler-lora

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes311downloads
Model Card

Photo Upscaler Lora

<Gallery />

Model description

This is an image-editing LoRA. Provide an input image and an instruction describing the edit. Trigger word: use Upscale this picture to 4K resolution. in your instructions for best results. The examples below show input → output for different instructions.

Trigger word

Include `Upscale this picture to 4K resolution.` in your edit instruction, for example:

Upscale this picture to 4K resolution. <your edit instruction here>

Gallery

Example 1

[image]

Prompt: Upscale this picture to 4K resolution.

Input: [image]

Example 2

[image]

Prompt: Upscale this picture to 4K resolution.

Input: [image]

Example 3

[image]

Prompt: Upscale this picture to 4K resolution.

Input: [image]

Example 4

[image]

Prompt: Upscale this picture to 4K resolution.

Input: [image]

Example 5

[image]

Prompt: Upscale this picture to 4K resolution.

Input: [image]

LoRA scale

The gallery was generated with `lora_scale=0.5`. You can tune this when running inference (e.g. lower for a subtler effect, higher for a stronger style).

Use on Replicate

python
import replicate

output = replicate.run(
    "prunaai/p-image-edit-lora:17651bd22e8c151cdb13a97b0f8554dce1e7238cd0a18cf90bc237ac5f0bc067",
    input={
        "images": ["https://example.com/input.png"],
        "prompt": "Upscale this picture to 4K resolution. your edit instruction",
        "lora_weights": "https://huggingface.co/davidberenstein1957/p-image-edit-photo-upscaler-lora/resolve/main/weights.safetensors",
        "lora_scale": 0.5,
        "hf_api_token": "your-hf-token",
    }
)