Instructions to use csbowei/ART with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use csbowei/ART 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("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("csbowei/ART") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -59,7 +59,9 @@ ART is a makeup transfer framework that applies a reference cosmetic style to a
|
|
| 59 |
| File | Task |
|
| 60 |
| ----------------------------------- | --------------- |
|
| 61 |
| `art_transfer_lora_512.safetensors` | Makeup transfer |
|
|
|
|
| 62 |
| `art_demakeup_lora_512.safetensors` | Makeup removal |
|
|
|
|
| 63 |
|
| 64 |
Higher-resolution checkpoints will be released in the future. Stay tuned.
|
| 65 |
|
|
@@ -77,8 +79,8 @@ python infer.py \
|
|
| 77 |
--task mt \
|
| 78 |
--input ./examples/source/src_001.jpg \
|
| 79 |
--ref ./examples/ref/ref_001.jpg \
|
| 80 |
-
--lora_path /path/to/
|
| 81 |
-
--resolution
|
| 82 |
```
|
| 83 |
|
| 84 |
```bash
|
|
@@ -86,8 +88,8 @@ python infer.py \
|
|
| 86 |
python infer.py \
|
| 87 |
--task demakeup \
|
| 88 |
--input ./examples/ref/ref_002.jpg \
|
| 89 |
-
--lora_path /path/to/
|
| 90 |
-
--resolution
|
| 91 |
```
|
| 92 |
|
| 93 |
## Citation
|
|
|
|
| 59 |
| File | Task |
|
| 60 |
| ----------------------------------- | --------------- |
|
| 61 |
| `art_transfer_lora_512.safetensors` | Makeup transfer |
|
| 62 |
+
| `art_transfer_lora_1024.safetensors` | Makeup transfer |
|
| 63 |
| `art_demakeup_lora_512.safetensors` | Makeup removal |
|
| 64 |
+
| `art_demakeup_lora_1024.safetensors` | Makeup removal |
|
| 65 |
|
| 66 |
Higher-resolution checkpoints will be released in the future. Stay tuned.
|
| 67 |
|
|
|
|
| 79 |
--task mt \
|
| 80 |
--input ./examples/source/src_001.jpg \
|
| 81 |
--ref ./examples/ref/ref_001.jpg \
|
| 82 |
+
--lora_path /path/to/art_transfer_lora_1024.safetensors \
|
| 83 |
+
--resolution 1024
|
| 84 |
```
|
| 85 |
|
| 86 |
```bash
|
|
|
|
| 88 |
python infer.py \
|
| 89 |
--task demakeup \
|
| 90 |
--input ./examples/ref/ref_002.jpg \
|
| 91 |
+
--lora_path /path/to/art_demakeup_lora_1024.safetensors \
|
| 92 |
+
--resolution 1024
|
| 93 |
```
|
| 94 |
|
| 95 |
## Citation
|