fofr/kontext-fix-jpeg-compression 🔢📝❓🖼️✓ → 🖼️
About
Use this flux-kontext fine-tune to fix JPEG compression artifacts

Example Output
Prompt:
"fix the jpeg compression"
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
- Random seed for reproducible generation. Leave blank for random.
- prompt (required)
- Text description of what you want to generate, or the instruction on how to edit the given image.
- guidance
- Guidance scale for generation
- megapixels
- Approximate number of megapixels for generated image
- input_image (required)
- Image to use as reference. Must be jpeg, png, gif, or webp.
- aspect_ratio
- Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
- lora_strength
- Strength of the lora
- output_format
- Output image format
- output_quality
- 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
- Path to the lora weights
- num_inference_steps
- Number of inference steps
- disable_safety_checker
- Disable NSFW safety checker
Output Schema
Output
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