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
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
base_model: stabilityai/stable-diffusion-2-1-base
|
| 4 |
+
tags:
|
| 5 |
+
- diffusers
|
| 6 |
+
- stable-diffusion
|
| 7 |
+
- texture-super-resolution
|
| 8 |
+
- 3d
|
| 9 |
+
pipeline_tag: image-to-image
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
## File structure
|
| 13 |
+
|
| 14 |
+
```
|
| 15 |
+
unet/
|
| 16 |
+
βββ config.json
|
| 17 |
+
βββ diffusion_pytorch_model.safetensors
|
| 18 |
+
vae/
|
| 19 |
+
βββ config.json
|
| 20 |
+
βββ diffusion_pytorch_model.safetensors
|
| 21 |
+
text_encoder/
|
| 22 |
+
βββ config.json
|
| 23 |
+
βββ model.safetensors
|
| 24 |
+
tokenizer/
|
| 25 |
+
βββ merges.txt
|
| 26 |
+
βββ special_tokens_map.json
|
| 27 |
+
βββ tokenizer.json
|
| 28 |
+
βββ tokenizer_config.json
|
| 29 |
+
βββ vocab.json
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
The U-Net is fine-tuned from Stable Diffusion 2.1-base and takes a 5-channel input
|
| 33 |
+
(4-channel latent + 1-channel mask). The VAE and text encoder are frozen.
|