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
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 (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:
- Property LoRA and property encoder, trained on source microstructure families (MICRO2D dataset), condition generation on a target homogenized property vector.
- 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)
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for kf600/LoRa_Microstructure
Base model
stable-diffusion-v1-5/stable-diffusion-v1-5