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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
--extra-index-url https://download.pytorch.org/whl/
|
| 2 |
gradio
|
| 3 |
accelerate==0.34.2
|
| 4 |
diffusers==0.31.0
|
|
@@ -13,7 +13,7 @@ safetensors==0.6.2
|
|
| 13 |
scipy==1.15.3
|
| 14 |
sentencepiece==0.2.0
|
| 15 |
spaces
|
| 16 |
-
torch==2.
|
| 17 |
-
torchvision==0.
|
| 18 |
tqdm==4.67.1
|
| 19 |
-
transformers==4.
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/cu126
|
| 2 |
gradio
|
| 3 |
accelerate==0.34.2
|
| 4 |
diffusers==0.31.0
|
|
|
|
| 13 |
scipy==1.15.3
|
| 14 |
sentencepiece==0.2.0
|
| 15 |
spaces
|
| 16 |
+
torch==2.8.0
|
| 17 |
+
torchvision==0.23.0
|
| 18 |
tqdm==4.67.1
|
| 19 |
+
transformers==4.57.6
|