Text-to-Image
Diffusers
English
stable-diffusion-xl
lora
template:sd-lora
template:sdxl-lora
sdxl-sliders
ntcai.xyz-sliders
concept
Instructions to use ntc-ai/SDXL-LoRA-slider.sharp-focus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ntc-ai/SDXL-LoRA-slider.sharp-focus with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ntc-ai/SDXL-LoRA-slider.sharp-focus") prompt = "sharp focus" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
ntcai.xyz slider - sharp focus (SDXL LoRA)
| Strength: -3 | Strength: 0 | Strength: 3 |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Download
Weights for this model are available in Safetensors format.
Trigger words
You can apply this LoRA with trigger words for additional effect:
sharp focus
Use in diffusers
from diffusers import StableDiffusionXLPipeline
from diffusers import EulerAncestralDiscreteScheduler
import torch
pipe = StableDiffusionXLPipeline.from_single_file("https://huggingface.co/martyn/sdxl-turbo-mario-merge-top-rated/blob/main/topRatedTurboxlLCM_v10.safetensors")
pipe.to("cuda")
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
# Load the LoRA
pipe.load_lora_weights('ntc-ai/SDXL-LoRA-slider.sharp-focus', weight_name='sharp focus.safetensors', adapter_name="sharp focus")
# Activate the LoRA
pipe.set_adapters(["sharp focus"], adapter_weights=[2.0])
prompt = "medieval rich kingpin sitting in a tavern, sharp focus"
negative_prompt = "nsfw"
width = 512
height = 512
num_inference_steps = 10
guidance_scale = 2
image = pipe(prompt, negative_prompt=negative_prompt, width=width, height=height, guidance_scale=guidance_scale, num_inference_steps=num_inference_steps).images[0]
image.save('result.png')
Support the Patreon
If you like this model please consider joining our Patreon.
By joining our Patreon, you'll gain access to an ever-growing library of over 540+ unique and diverse LoRAs, covering a wide range of styles and genres. You'll also receive early access to new models and updates, exclusive behind-the-scenes content, and the powerful LoRA slider creator, allowing you to craft your own custom LoRAs and experiment with endless possibilities.
Your support on Patreon will allow us to continue developing and refining new models.
Other resources
- Downloads last month
- 31
Model tree for ntc-ai/SDXL-LoRA-slider.sharp-focus
Base model
stabilityai/stable-diffusion-xl-base-1.0







