Instructions to use OSNFK/QwenImage2.1_Lora_BuildingExtraction_I2I_1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OSNFK/QwenImage2.1_Lora_BuildingExtraction_I2I_1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("OSNFK/QwenImage2.1_Lora_BuildingExtraction_I2I_1.0") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
QwenImage2.1_Lora_BuildingExtraction_I2I_1.0
Description
An experimental LoRA for Qwen-Image-2.1 that extracts and simplifies building footprints from satellite imagery, aiming to produce building shapes on a transparent background.
Note: This lora is trained by 1km*1km satellite images in 1024 resolution. To get the same output quality, you might need to use the same image input setup.
Visual Showcase
Trigger Word
Use BuildingExtraction in your prompt to activate the intended usage.
Intended Use
Designed for preliminary architectural site analysis, urban-context mapping, and simplified building-footprint visualization.
Scope and limitations:
- Building detection and boundaries may be inaccurate or incomplete.
- Non-building objects may be incorrectly detected, and some buildings may be missed.
- Transparency and spatial alignment are not guaranteed.
- Outputs require visual inspection and correction before GIS analysis. This model does not produce authoritative building data.
ComfyUI Workflow
Parameters Suggestion
- cfg: 3.0
- steps: 40
- sampler: euler
- schduler: simple
- lora_strength: 1.00
Workflow Template:
QwenImage2.1_Lora_BuildingExtraction_I2I_1.0
License and Attribution
This model is based on Qwen Image 2.1 and is subject to the applicable Qwen Research License Agreement. Please read the accompanying LICENSE file before use or redistribution.
Improved using Qwen.
Download model
Download them in the Files & versions tab.
- Downloads last month
- 74
Model tree for OSNFK/QwenImage2.1_Lora_BuildingExtraction_I2I_1.0
Base model
Qwen/Qwen-Image-2.1
