🚀 Flux-Isometric-Site-LoRA模型
Flux-Isometric-Site-LoRA是一個用於圖像生成的模型,通過特定的參數設置和觸發詞,能夠生成等軸測建築風格的圖像,為圖像創作提供了新的可能。
🚀 快速開始
環境設置
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Flux-Isometric-Site-LoRA"
trigger_word = "Isometric Building"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
觸發詞使用
你應該使用 Isometric Building
來觸發圖像生成。
模型下載
該模型的權重以Safetensors格式提供。
點擊下載,可在 Files & versions 標籤中獲取。
✨ 主要特性
- 支持文本到圖像的轉換,通過特定的觸發詞生成等軸測建築風格的圖像。
- 提供了豐富的圖像生成示例,展示了不同場景下的等軸測建築圖像。
📦 安裝指南
本部分代碼展示瞭如何設置環境以使用該模型:
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Flux-Isometric-Site-LoRA"
trigger_word = "Isometric Building"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
💻 使用示例
基礎用法
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "strangerzonehf/Flux-Isometric-Site-LoRA"
trigger_word = "Isometric Building"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
📚 詳細文檔
模型描述

圖像生成示例
輸入文本 |
輸出圖像 |
'Isometric Building: A top-down view of a rustic farmhouse with a green tin roof and red-brick walls. The farm includes a small barn, a chicken coop, and a tractor parked in the field. Rows of crops stretch out behind the farmhouse, and a wooden fence surrounds the property.' |
點擊查看 |
'Isometric Building: A top-down view of a two-story beach house with a large wooden deck overlooking the ocean. The house features a blue roof and white walls, with large glass doors opening to the deck. The deck has lounge chairs, a surfboard, and a barbecue grill. The sandy beach stretches out in the background, with palm trees swaying in the breeze.' |
點擊查看 |
'Isometric Building, a 3-level view of a two-story house, adorned with a black roof and a black balcony. The house is situated on a grassy lawn, with a swimming pool on the right side of the frame. The pool is surrounded by a wooden deck, with chairs and a white umbrella on the deck. A black SUV is parked in front of the house, adding a pop of color to the scene. A fire pit is lit up in the middle of the lawn, creating a warm and inviting ambiance.' |
點擊查看 |
'Isometric Building, a top-down view of a two-story white house with a blue roof is seen against a beige backdrop. The house is adorned with a variety of plants, including a tree, a table, and a bench, adding a touch of greenery to the scene. The staircase leads to the entrance of the house, which is flanked by a brown wooden gate. The ground is covered in grass, with a small patio in the middle of the stairs.' |
點擊查看 |
'Isometric Building, a top-down view of a two-story house with a pool in the foreground. The pool is surrounded by a lush green lawn, with a variety of plants and shrubs, adding a touch of greenery to the scene. The house is adorned with a white bed, a white blanket, and a white umbrella. The balcony of the house casts a shadow on the ground, providing a contrast to the blue sky.' |
點擊查看 |
'Isometric Building, An aerial view of a two story white house with a blue pool in the middle of it. There is a white car parked on the right side of the house. There are two trees on the left side and right side as well as a small white car on the bottom right side.' |
點擊查看 |
圖像生成參數
參數 |
值 |
參數 |
值 |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat & Steps |
24 & 2770 |
Epoch |
17 |
Save Every N Epochs |
1 |
標註信息
標註使用:florence2 - en(自然語言 & 英語)
訓練數據
總共使用了 18 張高清圖像進行訓練。
最佳尺寸與推理
尺寸 |
長寬比 |
推薦情況 |
1280 x 832 |
3:2 |
最佳 |
1024 x 1024 |
1:1 |
默認 |
推理範圍
🔧 技術細節
本模型基於 black-forest-labs/FLUX.1-dev
基礎模型,使用 LoRA 技術進行微調。在訓練過程中,使用了特定的圖像生成參數,如 LR Scheduler 設置為 constant,Optimizer 選擇 AdamW 等。通過這些參數的設置,使得模型能夠生成高質量的等軸測建築圖像。同時,模型在不同的尺寸和長寬比下有不同的表現,推薦的尺寸和長寬比能夠獲得更好的生成效果。
📄 許可證
本模型使用 creativeml-openrail-m
許可證。