Dedicated Endpoints
Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Container
Run this model inference with full control and performance in your environment.
Get help setting up a custom Dedicated Endpoints.
Talk with our engineer to get a quote for reserved GPU instances with discounts.
README
Style Showcase
Here are some examples of images generated using this style LoRA:
![]()
Inference Example
python
from diffusers import FluxKontextPipelinefrom diffusers.utils import load_imageimport torch# Load the base pipelinepipeline = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev",torch_dtype=torch.bfloat16).to('cuda')# Load the LoRA adapter for the Pixel style directly from the Hubpipeline.load_lora_weights("Kontext-Style/Pixel_lora", weight_name="Pixel_lora_weights.safetensors", adapter_name="lora")pipeline.set_adapters(["lora"], adapter_weights=[1])# Load a source image (you can use any image)image = load_image("https://huggingface.co/datasets/black-forest-labs/kontext-bench/resolve/main/test/images/0003.jpg").resize((1024, 1024))# Prepare the prompt# The style_name is used in the prompt and for the output filename.style_name = "Pixel"prompt = f"Turn this image into the Pixel style."# Run inferenceresult_image = pipeline(image=image,prompt=prompt,height=1024,width=1024,num_inference_steps=24).images[0]# Save the resultoutput_filename = f"{style_name.replace(' ', '_')}.png"result_image.save(output_filename)print(f"Image saved as {output_filename}")
Feel free to open an issue or contact us for feedback or collaboration!
Model provider
czh1209
Model tree
Base
black-forest-labs/FLUX.1-Kontext-dev
Adapter
this model
Modalities
Input
Text, Image
Output
Image
Pricing
Dedicated Endpoints
View detailsSupported Functionality
Model APIs
Dedicated Endpoints
Container
More information