Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
diffusers-training
stable-diffusion-2
stable-diffusion-2-diffusers
science
materiomics
bio-inspired
materials science
text-to-3D
text-to-STL
text-t-mesh
additive manufacturing
3D
3D printing
Instructions to use lamm-mit/SD2x-leaf-inspired with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lamm-mit/SD2x-leaf-inspired with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lamm-mit/SD2x-leaf-inspired", dtype=torch.bfloat16, device_map="cuda") prompt = "<leaf microstructure>" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,10 +23,12 @@ These are fine-tuned weights for the ```stabilityai/stable-diffusion-2``` model.
|
|
| 23 |
|
| 24 |
The following image were used during fine-tuning using the keyword \<leaf microstructure\>:
|
| 25 |
|
| 26 |
-

|
| 27 |
|
| 28 |
You should use \<leaf microstructure\> to trigger the image generation.
|
| 29 |
|
|
|
|
|
|
|
| 30 |
## How to use
|
| 31 |
|
| 32 |
Defining some helper functions:
|
|
|
|
| 23 |
|
| 24 |
The following image were used during fine-tuning using the keyword \<leaf microstructure\>:
|
| 25 |
|
| 26 |
+
[]()
|
| 27 |
|
| 28 |
You should use \<leaf microstructure\> to trigger the image generation.
|
| 29 |
|
| 30 |
+
https://colab.research.google.com/#fileId=https://huggingface.co/lamm-mit/SD2x-leaf-inspired/blob/main/SD2x_leaf_inspired_inference.ipynb
|
| 31 |
+
|
| 32 |
## How to use
|
| 33 |
|
| 34 |
Defining some helper functions:
|