Views
No views yet

hkstyle to trigger the image generation.1from diffusers import AutoPipelineForText2Image
2import torch
3
4device = "cuda" if torch.cuda.is_available() else "cpu"
5
6pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
7pipeline.load_lora_weights('Keltezaa/flux-fantasy-knights-by-hailoknight', weight_name='FluxFantasyKnightV2Test.safetensors')
8image = pipeline('a cinematic shot of a mechanical robotic knight, glowing blue core, holding a giant blue glowing plasma sword by the handle, mecha wings on helmet, futuristic background, HKStyle, mythp0rt ').images[0]