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
File size: 1,921 Bytes
3dc44a8 cf454c4 3dc44a8 cf454c4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ---
license: creativeml-openrail-m
base_model: stable-diffusion-v1-5/stable-diffusion-v1-5
library_name: diffusers
tags:
- lora
- stable-diffusion
- diffusers
- microstructure
- materials-design
- homogenization
- computational-mechanics
- few-shot
---
# Design of Microstructure Families with Targeted Homogenized Properties from Few-Shot Low-Rank Adaptation of Pretrained Foundation Models
> **Coming soon.** Model weights will be released upon publication of the paper.
This repository will host the pretrained weights accompanying the paper:
**Design of Microstructure Families with Targeted Homogenized Properties from Few-Shot Low-Rank Adaptation of Pretrained Foundation Models**
Kai Feng, Nikolaos Napoleon Vlassis
Department of Mechanical and Aerospace Engineering, Rutgers University
- **Code:** [GitHub](https://github.com/kf600/LoRa_Microstructure.git) (coming soon)
## Model description
The model adapts Stable Diffusion v1.5 in two stages with low-rank adapters (LoRA) to generate microstructures with targeted homogenized properties:
1. **Property LoRA and property encoder**, trained on source microstructure families (MICRO2D dataset), condition generation on a target homogenized property vector.
2. **Family LoRA**, trained on a small set of images (k = 20) from a target family, captures the family's appearance.
Generated candidates are screened with an FFT-based homogenization solver through best-of-N selection.
## Planned release
- [ ] Property encoder weights
- [ ] Property LoRA adapter
- [ ] Family LoRA adapter(s)
<!--
## Citation
```bibtex
@article{LASTNAME_Vlassis_fewshot_microstructure,
title = {Design of microstructure families with targeted homogenized properties from few-shot low-rank adaptation of pretrained foundation models},
author = {LASTNAME, Kai and Vlassis, Nikolaos Napoleon},
journal = {Coming soon},
year = {2026}
}
-->
``` |