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

  • Log In
  • Sign Up

lamm-mit
/
leaf-FLUX.1-dev

Text-to-Image
Diffusers
diffusers-training
lora
FLUX.1-dev
science
materiomics
bio-inspired
materials science
generative AI for science
Model card Files Files and versions
xet
Community

Instructions to use lamm-mit/leaf-FLUX.1-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use lamm-mit/leaf-FLUX.1-dev 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("lamm-mit/leaf-FLUX.1-dev")
    
    prompt = "<leaf microstructure>"
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
leaf-FLUX.1-dev
209 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
mjbuehler's picture
mjbuehler
Update README.md
61620c6 verified over 1 year ago
  • .gitattributes
    1.87 kB
    Upload leaf-FLUX-inference-example.ipynb over 1 year ago
  • README.md
    6.43 kB
    Update README.md over 1 year ago
  • image_grid_20240902_063338.png
    5.01 MB
    xet
    Upload 2 files over 1 year ago
  • image_grid_20240902_064301.png
    7.8 MB
    xet
    Upload 2 files over 1 year ago
  • image_grid_20240902_070955.png
    1.53 MB
    xet
    Upload image_grid_20240902_070955.png over 1 year ago
  • leaf-FLUX-inference-example.ipynb
    22.5 MB
    xet
    Upload leaf-FLUX-inference-example.ipynb over 1 year ago
  • leaf-flux.safetensors
    172 MB
    xet
    Upload leaf-flux.safetensors over 1 year ago