Instructions to use dimmexer/flux-device-mockup-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use dimmexer/flux-device-mockup-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("dimmexer/flux-device-mockup-lora") prompt = "devicemk" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
FLUX.1-dev Device Mockup LoRA
A specialized LoRA fine-tune for FLUX.1-dev designed to generate high-quality, photorealistic device mockups—including smartphones, laptops, tablets, and desktop displays—featuring clean, blank white screens ideal for product showcases, UI/UX presentations, and design mockups.
Model Details
- Trigger Word:
devicemk - Base Model: black-forest-labs/FLUX.1-dev
- Model Type: LoRA (Low-Rank Adaptation)
- Rank / Alpha: 16 / 16
- Training Epochs / Steps: 1500 steps
- Training Framework: ai-toolkit
- Hardware: NVIDIA A100-SXM4-40GB
Recommended Generation Settings
- LoRA Strength / Weight:
0.8 - 1.0(optimal at1.0) - Guidance Scale (CFG):
3.5 - Inference Steps:
28 - 35 - Sampler / Scheduler: FlowMatch / Euler
- Resolution:
1024x768,1024x1024, or768x1024
Trigger Word & Prompting Tips
Always include the trigger word devicemk in your prompt. Describe the device type, environment, lighting, and specify "blank pure white screen" for seamless UI insertion.
Example Prompts
Smartphone on Velvet Cushion:
devicemk, a sleek modern smartphone on an orange velvet sofa cushion, blank pure white screen, soft studio lighting, photorealistic 8kLaptop in Brutalist Setting:
devicemk, an open modern laptop resting in a brutalist concrete stone pillar cutout, blank pure white screen, dramatic studio lightingHandheld Tablet:
devicemk, a modern tablet ipad held in hands, blank pure white screen, clean studio backgroundFloating Pastel Aesthetic:
devicemk, a minimalist smartphone floating above a pastel podium, blank screen, subtle soft shadows, clean aesthetic, 8kArchitectural Studio Desk:
devicemk, an ultra-thin laptop and dual monitor desk setup in an architectural design studio, blank pure white screens, soft natural window light, photorealistic
How to Use with Diffusers
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("dimmexer/flux-device-mockup-lora")
pipe.to("cuda")
prompt = "devicemk, a sleek modern smartphone on an orange velvet sofa cushion, blank pure white screen, soft studio lighting, photorealistic 8k"
image = pipe(prompt=prompt, num_inference_steps=28, guidance_scale=3.5).images[0]
image.save("device_mockup_output.png")
License
This model is built on top of FLUX.1-dev and follows the FLUX.1-dev non-commercial license.
- Downloads last month
- 30
Model tree for dimmexer/flux-device-mockup-lora
Base model
black-forest-labs/FLUX.1-dev