Image-to-Image
Diffusers
Safetensors
image-decomposition
layered-image-editing
diffusion
flux
lora
transparent-rgba
Instructions to use SynLayers/synlayers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SynLayers/synlayers 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("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("SynLayers/synlayers") 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
- Draw Things
Upload demo/requirements-hf-space.txt with huggingface_hub
Browse files
demo/requirements-hf-space.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/cu121
|
| 2 |
+
gradio
|
| 3 |
+
accelerate==0.34.2
|
| 4 |
+
diffusers==0.31.0
|
| 5 |
+
einops==0.8.0
|
| 6 |
+
huggingface_hub==0.34.4
|
| 7 |
+
numpy==2.2.6
|
| 8 |
+
peft==0.12.0
|
| 9 |
+
Pillow==11.3.0
|
| 10 |
+
protobuf==5.29.5
|
| 11 |
+
PyYAML==6.0.2
|
| 12 |
+
safetensors==0.6.2
|
| 13 |
+
scipy==1.15.3
|
| 14 |
+
sentencepiece==0.2.0
|
| 15 |
+
spaces
|
| 16 |
+
torch==2.4.0
|
| 17 |
+
torchvision==0.19.0
|
| 18 |
+
tqdm==4.67.1
|
| 19 |
+
transformers==4.44.0
|