LoRA-Boost: per-species FLUX.2-klein LoRAs

LoRA 15 ตัว เทรนแบบ DreamBooth บน FLUX.2-klein-base-4B ตัวละ 1 species สำหรับพืชเขตร้อนหายากใน Pl@ntNet-300K ใช้สร้างภาพสังเคราะห์มาเติมตอนเทรน classifier เพื่อช่วย species ที่ข้อมูลน้อย

Code: https://github.com/WinChawin/lora-boost · Demo: https://huggingface.co/spaces/Winnnnnnn/lora-boost

Contents

แต่ละโฟลเดอร์ชื่อตาม species_id ของ Pl@ntNet ข้างในมี pytorch_lora_weights.safetensors ไฟล์เดียว ส่วน lora_registry.csv บอกว่า species_id ไหนคือพืชอะไร พร้อม trigger word และ prompt template

species_id species
1416509 Nepenthes vieillardii
1419807 Vanilla planifolia
1376703 Petiveria alliacea
1409195 Pereskia aculeata
1408557 Pongamia pinnata
1420787 Alocasia odora
1406486 Kigelia africana
1408490 Pereskia grandifolia
1385700 Barringtonia asiatica
1356076 Tradescantia zebrina
1397598 Cobaea scandens
1618661 Dendrobium victoriae-reginae
1384499 Lagenaria siceraria
1406863 Acalypha indica
1392654 Gomphocarpus physocarpus

Usage

from diffusers import Flux2KleinPipeline
import torch

pipe = Flux2KleinPipeline.from_pretrained(
    "black-forest-labs/FLUX.2-klein-base-4B", torch_dtype=torch.bfloat16
).to("cuda")

# โหลด LoRA ของ species ที่ต้องการ (เช่น Vanilla planifolia = 1419807)
sid = "1419807"
pipe.load_lora_weights("Winnnnnnn/lora-boost-flux", subfolder=sid)

# prompt ต้องใช้ trigger sks_<species_id> ตาม template ตอนเทรน organ เลือก flower หรือ leaf
prompt = f"a photo of the flower of a sks_{sid} plant"
image = pipe(prompt, num_inference_steps=28, guidance_scale=4.0).images[0]

trigger word คือ sks_<species_id> และ template คือ a photo of the {organ} of a {trigger} plant ดูครบทุก species ได้ใน lora_registry.csv

License

CC-BY-SA-4.0 ภาพที่ใช้เทรนมาจาก Pl@ntNet-300K (https://zenodo.org/records/5645731)

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Winnnnnnn/lora-boost-flux

Adapter
(87)
this model

Space using Winnnnnnn/lora-boost-flux 1