fofr/kontext-fix-jpeg-compression 🔢📝❓🖼️✓ → 🖼️

▶️ 566 runs 📅 Jul 2025 ⚙️ Cog 0.15.10
image-restoration image-to-image jpeg-artifact-removal

About

Use this flux-kontext fine-tune to fix JPEG compression artifacts

Example Output

Prompt:

"fix the jpeg compression"

Output

Example output

Performance Metrics

14.70s Prediction Time
17.06s Total Time
All Input Parameters
{
  "prompt": "fix the jpeg compression",
  "guidance": 2.5,
  "megapixels": "1",
  "input_image": "https://replicate.delivery/pbxt/NMXQSSrI44aaaioCIxP9fU6bB7aNtB11nLcJ2uATvN4zUVrx/jpeg-compressed.jpg",
  "aspect_ratio": "4:3",
  "lora_strength": 1,
  "output_format": "webp",
  "output_quality": 80,
  "num_inference_steps": 30
}
Input Parameters
seed Type: integer
Random seed for reproducible generation. Leave blank for random.
prompt (required) Type: string
Text description of what you want to generate, or the instruction on how to edit the given image.
guidance Type: numberDefault: 2.5Range: 0 - 10
Guidance scale for generation
megapixels Default: 1
Approximate number of megapixels for generated image
input_image (required) Type: string
Image to use as reference. Must be jpeg, png, gif, or webp.
aspect_ratio Default: match_input_image
Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
lora_strength Type: numberDefault: 1
Strength of the lora
output_format Default: webp
Output image format
output_quality Type: integerDefault: 80Range: 0 - 100
Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
replicate_weights Type: string
Path to the lora weights
num_inference_steps Type: integerDefault: 30Range: 4 - 50
Number of inference steps
disable_safety_checker Type: booleanDefault: false
Disable NSFW safety checker
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Lora already loaded
Starting generate image
Using seed: 9500
Target dimensions: 1152x896
Starting prepare input
prepare input took 0.11 seconds
Starting denoise
denoise took 14.01 seconds
Starting decode
decode took 0.10 seconds
Starting convert to image
convert to image took 0.21 seconds
Starting Running safety checker
Total safe images: 1 out of 1
Running safety checker took 0.02 seconds
generate image took 14.58 seconds
Version Details
Version ID
6943369d68c9e8e6504108407cdff40563f915a0a4319d3c765d49acf2eab407
Version Created
July 15, 2025
Run on Replicate →