justmalhar / flux-mobile-ui

Generate detailed mobile app user interfaces (UIs) using prefix “MOBIUI containing..” in 4-15 steps.

  • Public
  • 485 runs

Run time and cost

This model costs approximately $0.049 to run on Replicate, or 20 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 50 seconds. The predict time for this model varies significantly based on the inputs.

Readme

Flux Mobi UI

Generate detailed mobile app UIs using prefix “MOBIUI containing..” in 4-15 steps

Examples have been added for both dev and schnell models.

Trained on Replicate using:

https://replicate.com/ostris/flux-dev-lora-trainer/train

Trigger words

You should use MOBIUI to trigger the image generation.

Training Token, Prefix & Sufdix

This model uses TOK as MOBIUI. Additionally, all training images have been prefixed with MOBIUI containing and suffixed with app ui, mobile application UI, user interface design, website ui design, ios application ui, user interface

Use it with the 🧨 diffusers library

from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('justmalhar/flux-mobi-ui', weight_name='lora.safetensors')
image = pipeline('your prompt').images[0]

For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers.