Diffusers
lora
stable-diffusion
microstructure
materials-design
homogenization
computational-mechanics
few-shot
Instructions to use kf600/LoRa_Microstructure with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kf600/LoRa_Microstructure with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("kf600/LoRa_Microstructure") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
| 1 |
---
|
| 2 |
-
license: openrail
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
base_model: stable-diffusion-v1-5/stable-diffusion-v1-5
|
| 4 |
+
library_name: diffusers
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- stable-diffusion
|
| 8 |
+
- diffusers
|
| 9 |
+
- microstructure
|
| 10 |
+
- materials-design
|
| 11 |
+
- homogenization
|
| 12 |
+
- computational-mechanics
|
| 13 |
+
- few-shot
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# Design of Microstructure Families with Targeted Homogenized Properties from Few-Shot Low-Rank Adaptation of Pretrained Foundation Models
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
> **Coming soon.** Model weights will be released upon publication of the paper.
|
| 21 |
+
|
| 22 |
+
This repository will host the pretrained weights accompanying the paper:
|
| 23 |
+
|
| 24 |
+
**Design of Microstructure Families with Targeted Homogenized Properties from Few-Shot Low-Rank Adaptation of Pretrained Foundation Models**
|
| 25 |
+
|
| 26 |
+
Kai Feng, Nikolaos Napoleon Vlassis
|
| 27 |
+
Department of Mechanical and Aerospace Engineering, Rutgers University
|
| 28 |
+
|
| 29 |
+
- **Code:** [GitHub](https://github.com/kf600/LoRa_Microstructure.git) (coming soon)
|
| 30 |
+
|
| 31 |
+
## Model description
|
| 32 |
+
|
| 33 |
+
The model adapts Stable Diffusion v1.5 in two stages with low-rank adapters (LoRA) to generate microstructures with targeted homogenized properties:
|
| 34 |
+
|
| 35 |
+
1. **Property LoRA and property encoder**, trained on source microstructure families (MICRO2D dataset), condition generation on a target homogenized property vector.
|
| 36 |
+
2. **Family LoRA**, trained on a small set of images (k = 20) from a target family, captures the family's appearance.
|
| 37 |
+
|
| 38 |
+
Generated candidates are screened with an FFT-based homogenization solver through best-of-N selection.
|
| 39 |
+
|
| 40 |
+
## Planned release
|
| 41 |
+
|
| 42 |
+
- [ ] Property encoder weights
|
| 43 |
+
- [ ] Property LoRA adapter
|
| 44 |
+
- [ ] Family LoRA adapter(s)
|
| 45 |
+
|
| 46 |
+
<!--
|
| 47 |
+
|
| 48 |
+
## Citation
|
| 49 |
+
|
| 50 |
+
```bibtex
|
| 51 |
+
@article{LASTNAME_Vlassis_fewshot_microstructure,
|
| 52 |
+
title = {Design of microstructure families with targeted homogenized properties from few-shot low-rank adaptation of pretrained foundation models},
|
| 53 |
+
author = {LASTNAME, Kai and Vlassis, Nikolaos Napoleon},
|
| 54 |
+
journal = {Coming soon},
|
| 55 |
+
year = {2026}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
-->
|
| 59 |
+
```
|