File size: 1,436 Bytes
e1600e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e83f48d
e1600e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
license: creativeml-openrail-m
tags:
  - flux
  - lora
  - kontext
  - avatar
  - image-to-image
  - style-transfer
  - na'vi
  - stable-diffusion
  - art
  - character-design
  - ai-generated
inference: true
---

# FLUX.1-Kontext-Dev Na'vi Style LoRA 🎨🧞‍♂️

This is a LoRA adapter trained on top of the [`black-forest-labs/FLUX.1-Kontext-dev`](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev) model to transform images into *Avatar-style Na'vi characters*, inspired by the visuals from James Cameron's *Avatar* films.

---

## 🧠 Model Details

- **Base Model**: FLUX.1-Kontext-dev (custom diffusion)
- **LoRA Rank**: 4 / 8 (depending on your version)
- **Training Resolution**: 1024*1024
- **Target Style**: Na'vi characters (blue skin, elongated facial features, glowing eyes, etc.)
- **Architecture**: LoRA fine-tuning with Stable Diffusion compatible UNet blocks.

---

## 💻 Usage

### In Diffusers

```python
from diffusers import StableDiffusionPipeline
from peft import PeftModel
import torch

# Load the base model
pipe = StableDiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.float16).to("cuda")

# Load the LoRA adapter
pipe.unet.load_attn_procs("your-username/flux-kontext-na-vi-lora")

# Use the model
prompt = "A close-up portrait of a Na'vi warrior in a glowing forest, cinematic lighting"
image = pipe(prompt).images[0]
image.save("output.png")