Text-to-Image
Diffusers
diffusers-training
lora
FLUX.1-dev
science
materiomics
bio-inspired
materials science
generative AI for science
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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,6 +41,10 @@ Full dataset used for training: (lamm-mit/leaf-flux-images-and-captions)
|
|
| 41 |
|
| 42 |
You should use \<leaf microstructure\> to trigger this feature during image generation.
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
## How to use
|
| 45 |
|
| 46 |
Defining some helper functions:
|
|
|
|
| 41 |
|
| 42 |
You should use \<leaf microstructure\> to trigger this feature during image generation.
|
| 43 |
|
| 44 |
+
|
| 45 |
+
[](https://colab.research.google.com/#fileId=https://huggingface.co/lamm-mit/leaf-FLUX.1-dev/resolve/main/leaf-FLUX-inference-example.ipynb)
|
| 46 |
+
|
| 47 |
+
|
| 48 |
## How to use
|
| 49 |
|
| 50 |
Defining some helper functions:
|