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
|
Download README.md from kf600/LoRa_Microstructure: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/kf600/LoRa_Microstructure/resolve/main/README.md
- Command line
-
hf download hf://kf600/LoRa_Microstructure/README.md
-
curl -L -o README.md https://huggingface.co/kf600/LoRa_Microstructure/resolve/main/README.md
1.92 kB
| 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} | |
| } | |
| --> | |
| ``` |