Text-to-Image
alphaanything
rgba
lora
image-to-image
WLuLi commited on
Commit
533166a
·
verified ·
1 Parent(s): dce736e

Update model card metadata and usage

Browse files
Files changed (1) hide show
  1. README.md +6 -2
README.md CHANGED
@@ -2,6 +2,7 @@
2
  license: other
3
  license_name: mixed-flux-non-commercial-and-apache-2.0
4
  license_link: LICENSE
 
5
  base_model:
6
  - black-forest-labs/FLUX.2-klein-base-9B
7
  - black-forest-labs/FLUX.2-klein-9B
@@ -12,7 +13,6 @@ tags:
12
  - alphaanything
13
  - rgba
14
  - lora
15
- - diffusers
16
  - text-to-image
17
  - image-to-image
18
  ---
@@ -36,12 +36,16 @@ Each directory contains `adapter_config.json`, `pytorch_lora_weights.safetensors
36
 
37
  ## Usage
38
 
39
- Clone the [code repository](https://github.com/WLuLi/AlphaAnything), install dependencies, and place the downloaded checkpoint directories under `alphaanything/checkpoints/`:
 
 
 
40
 
41
  ```bash
42
  git clone https://github.com/WLuLi/AlphaAnything.git
43
  cd AlphaAnything
44
  pip install -r requirements.txt
 
45
 
46
  # Standard inference on FLUX.2 Klein Base 9B
47
  python scripts/flux2_klein/infer_t2rgba.py \
 
2
  license: other
3
  license_name: mixed-flux-non-commercial-and-apache-2.0
4
  license_link: LICENSE
5
+ library_name: alphaanything
6
  base_model:
7
  - black-forest-labs/FLUX.2-klein-base-9B
8
  - black-forest-labs/FLUX.2-klein-9B
 
13
  - alphaanything
14
  - rgba
15
  - lora
 
16
  - text-to-image
17
  - image-to-image
18
  ---
 
36
 
37
  ## Usage
38
 
39
+ > [!IMPORTANT]
40
+ > Each checkpoint directory contains both a transformer LoRA (`pytorch_lora_weights.safetensors`) and an alpha decoder branch (`alpha_decoder.safetensors`). Please load them together using the official [AlphaAnything](https://github.com/WLuLi/AlphaAnything) repository — calling `load_lora_weights` directly in Diffusers only loads the RGB LoRA and will not decode the alpha channel.
41
+
42
+ Clone the [code repository](https://github.com/WLuLi/AlphaAnything), install dependencies, and download the checkpoints into `alphaanything/checkpoints/`:
43
 
44
  ```bash
45
  git clone https://github.com/WLuLi/AlphaAnything.git
46
  cd AlphaAnything
47
  pip install -r requirements.txt
48
+ hf download WLuLi/AlphaAnything --local-dir alphaanything/checkpoints
49
 
50
  # Standard inference on FLUX.2 Klein Base 9B
51
  python scripts/flux2_klein/infer_t2rgba.py \