Instructions to use timbrooks/instruct-pix2pix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use timbrooks/instruct-pix2pix 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("timbrooks/instruct-pix2pix", dtype=torch.bfloat16, device_map="cuda") 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
Update scheduler/scheduler_config.json
Browse files
scheduler/scheduler_config.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "EulerAncestralDiscreteScheduler",
|
| 3 |
"_diffusers_version": "0.12.0.dev0",
|
|
|
|
| 4 |
"beta_end": 0.012,
|
| 5 |
"beta_schedule": "scaled_linear",
|
| 6 |
"beta_start": 0.00085,
|
| 7 |
"clip_sample": false,
|
|
|
|
|
|
|
| 8 |
"num_train_timesteps": 1000,
|
| 9 |
"prediction_type": "epsilon",
|
|
|
|
| 10 |
"set_alpha_to_one": false,
|
| 11 |
"skip_prk_steps": true,
|
|
|
|
|
|
|
| 12 |
"steps_offset": 1,
|
|
|
|
| 13 |
"trained_betas": null
|
| 14 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "EulerAncestralDiscreteScheduler",
|
| 3 |
"_diffusers_version": "0.12.0.dev0",
|
| 4 |
+
"algorithm_type": "dpmsolver++",
|
| 5 |
"beta_end": 0.012,
|
| 6 |
"beta_schedule": "scaled_linear",
|
| 7 |
"beta_start": 0.00085,
|
| 8 |
"clip_sample": false,
|
| 9 |
+
"dynamic_thresholding_ratio": 0.995,
|
| 10 |
+
"lower_order_final": true,
|
| 11 |
"num_train_timesteps": 1000,
|
| 12 |
"prediction_type": "epsilon",
|
| 13 |
+
"sample_max_value": 1.0,
|
| 14 |
"set_alpha_to_one": false,
|
| 15 |
"skip_prk_steps": true,
|
| 16 |
+
"solver_order": 2,
|
| 17 |
+
"solver_type": "midpoint",
|
| 18 |
"steps_offset": 1,
|
| 19 |
+
"thresholding": false,
|
| 20 |
"trained_betas": null
|
| 21 |
}
|