Instructions to use maria26/Floor_Plan_LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use maria26/Floor_Plan_LoRA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("sd-legacy/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("maria26/Floor_Plan_LoRA") prompt = "Floor plan of a small apartment, few rooms, one bathroom, big kitchen, many windows." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
How to load inference
#1
by narsi123 - opened
How to load inference pls put code
You can find the code in the repository I linked in the description (https://github.com/mariaaoprea/Diffusion-Models-for-floor-plan-drafting.git), there I explained all the steps and also developed an interface for interacting with the model:) For loading the model you usually do:
pipeline = AutoPipelineForText2Image.from_pretrained("runwayml/stable-diffusion-v1-5").to(device) #path to SD-v1.5
pipeline.load_lora_weights("maria26/Floor_Plan_LoRA") # path to LoRA Module
narsi123 changed discussion status to closed