Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

prithivMLmods
/
Flux-Lego-Ref-LoRA

Text-to-Image
Diffusers
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use prithivMLmods/Flux-Lego-Ref-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use prithivMLmods/Flux-Lego-Ref-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("prithivMLmods/Flux-Lego-Ref-LoRA")
    
    prompt = "lego --fref --89890, a Lego Star Wars figure stands in a pile of snow. The figure is adorned with a white snow-covered hat, a white coat, and a black and white striped jacket. The face of the figure is yellow, and the eyes are blue. The background is a grayish-gray color, and there are small white dots dotting the top of the image."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
Flux-Lego-Ref-LoRA
617 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
prithivMLmods's picture
prithivMLmods
Update README.md
c64ab7e verified over 1 year ago
  • images
    Delete images/e6cf0bdb013f62b731e598e930d50fd2.jpg over 1 year ago
  • .gitattributes
    2.31 kB
    initial commit over 1 year ago
  • Lego.safetensors
    613 MB
    xet
    Add 2 files over 1 year ago
  • README.md
    3.65 kB
    Update README.md over 1 year ago