Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

SynLayers
/
synlayers

Image-to-Image
Diffusers
Safetensors
image-decomposition
layered-image-editing
diffusion
flux
lora
transparent-rgba
Model card Files Files and versions
xet
Community

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
synlayers / infer
25.7 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
SynLayers's picture
SynLayers
Upload infer/infer.py with huggingface_hub
2d3ec50 verified about 11 hours ago
  • __init__.py
    35 Bytes
    Upload infer/__init__.py with huggingface_hub 1 day ago
  • common_infer.py
    7.37 kB
    Upload infer/common_infer.py with huggingface_hub 1 day ago
  • convert_vlm_jsonl.py
    3.8 kB
    Upload infer/convert_vlm_jsonl.py with huggingface_hub about 11 hours ago
  • infer.py
    13.4 kB
    Upload infer/infer.py with huggingface_hub about 11 hours ago
  • infer.yaml
    1.12 kB
    Upload infer/infer.yaml with huggingface_hub 1 day ago