Instructions to use wshw/texture_pp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wshw/texture_pp 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("wshw/texture_pp", 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
Remove stray speed-test file
Browse files- _speedtest.json +0 -32
_speedtest.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_class_name": "AutoencoderKL",
|
| 3 |
-
"_diffusers_version": "0.25.0",
|
| 4 |
-
"_name_or_path": "/ssd7/wsw/texture_pp/models/stable-diffusion-2-1-base",
|
| 5 |
-
"act_fn": "silu",
|
| 6 |
-
"block_out_channels": [
|
| 7 |
-
128,
|
| 8 |
-
256,
|
| 9 |
-
512,
|
| 10 |
-
512
|
| 11 |
-
],
|
| 12 |
-
"down_block_types": [
|
| 13 |
-
"DownEncoderBlock2D",
|
| 14 |
-
"DownEncoderBlock2D",
|
| 15 |
-
"DownEncoderBlock2D",
|
| 16 |
-
"DownEncoderBlock2D"
|
| 17 |
-
],
|
| 18 |
-
"force_upcast": true,
|
| 19 |
-
"in_channels": 3,
|
| 20 |
-
"latent_channels": 4,
|
| 21 |
-
"layers_per_block": 2,
|
| 22 |
-
"norm_num_groups": 32,
|
| 23 |
-
"out_channels": 3,
|
| 24 |
-
"sample_size": 768,
|
| 25 |
-
"scaling_factor": 0.18215,
|
| 26 |
-
"up_block_types": [
|
| 27 |
-
"UpDecoderBlock2D",
|
| 28 |
-
"UpDecoderBlock2D",
|
| 29 |
-
"UpDecoderBlock2D",
|
| 30 |
-
"UpDecoderBlock2D"
|
| 31 |
-
]
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|