Instructions to use nvidia/ChronoEdit-14B-Diffusers-Paint-Brush-Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nvidia/ChronoEdit-14B-Diffusers-Paint-Brush-Lora 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("nvidia/ChronoEdit-14B-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("nvidia/ChronoEdit-14B-Diffusers-Paint-Brush-Lora") 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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,16 +24,30 @@ base_model:
|
|
| 24 |
-----
|
| 25 |
# ChronoEdit Paint Brush Lora
|
| 26 |
|
| 27 |
-
**Trigger Prompt** (no need to use prompt enhancer):
|
| 28 |
-
|
| 29 |
-
|
| 30 |
[How to use this lora?]()
|
| 31 |
|
| 32 |
[Official Diffuser Example with LoRA Loading](https://huggingface.co/docs/diffusers/main/api/pipelines/chronoedit#inference-with-8-step-distillation-lora)
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
. Additional Information: [Apache License Version 2.0](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/apache-2.0.md).
|
|
|
|
| 24 |
-----
|
| 25 |
# ChronoEdit Paint Brush Lora
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
[How to use this lora?]()
|
| 28 |
|
| 29 |
[Official Diffuser Example with LoRA Loading](https://huggingface.co/docs/diffusers/main/api/pipelines/chronoedit#inference-with-8-step-distillation-lora)
|
| 30 |
|
| 31 |
+
Note: the lora works best together with [step distillation lora](https://huggingface.co/nvidia/ChronoEdit-14B-Diffusers/tree/main/lora?show_file_info=lora%2Fchronoedit_distill_lora.safetensors).
|
| 32 |
+
See https://github.com/nv-tlabs/ChronoEdit for example usage.
|
| 33 |
+
|
| 34 |
+
**Trigger Prompt**:
|
| 35 |
+
|
| 36 |
+
Turn the pencil sketch in the image into an actual object that is consistent with the image’s content. The user wants to change the sketch to a {}
|
| 37 |
+
|
| 38 |
+
{} should be filled with simple description of what you are drawing. examples:
|
| 39 |
+
|
| 40 |
+
- a crown and hat that matches the original image’s style.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
- five simple, black-line cartoon cat doodles in various playful poses—such as waving, peeking, and lying down—drawn as if they are interacting with the clouds at sunset.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+
- a dragon in anime style
|
| 49 |
|
| 50 |
+

|
| 51 |
|
| 52 |
### License/Terms of Use
|
| 53 |
Governing Terms: Use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/). Additional Information: [Apache License Version 2.0](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/apache-2.0.md).
|