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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

jgilewicz
/
SANA-LoRA-CIFAR10

Text-to-Image
Diffusers
Sana
diffusers-training
lora
sana-diffusers
template:sd-lora
Model card Files Files and versions
xet
Community

Instructions to use jgilewicz/SANA-LoRA-CIFAR10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use jgilewicz/SANA-LoRA-CIFAR10 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Efficient-Large-Model/Sana_1600M_1024px_BF16_diffusers", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("jgilewicz/SANA-LoRA-CIFAR10")
    
    prompt = "a low-resolution photo of an airplane, CIFAR-10 style"
    image = pipe(prompt).images[0]
  • Sana

    How to use jgilewicz/SANA-LoRA-CIFAR10 with Sana:

    # Load the model and infer image from text
    import torch
    from app.sana_pipeline import SanaPipeline
    from torchvision.utils import save_image
    
    sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml")
    sana.from_pretrained("hf://jgilewicz/SANA-LoRA-CIFAR10")
    
    image = sana(
        prompt='a cyberpunk cat with a neon sign that says "Sana"',
        height=1024,
        width=1024,
        guidance_scale=5.0,
        pag_guidance_scale=2.0,
        num_inference_steps=18,
    ) 
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
SANA-LoRA-CIFAR10
534 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Jakub Gilewicz
Upload resnet_data.tar.gz with huggingface_hub
a8bd9cf verified 3 months ago
  • .gitattributes
    1.71 kB
    End of training 3 months ago
  • README.md
    2.07 kB
    End of training 3 months ago
  • image_0.png
    1.19 MB
    xet
    End of training 3 months ago
  • image_1.png
    1.2 MB
    xet
    End of training 3 months ago
  • image_2.png
    1.24 MB
    xet
    End of training 3 months ago
  • image_3.png
    1.3 MB
    xet
    End of training 3 months ago
  • pytorch_lora_weights.safetensors
    2.18 MB
    xet
    End of training 3 months ago
  • resnet_data.tar.gz
    527 MB
    xet
    Upload resnet_data.tar.gz with huggingface_hub 3 months ago