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

mengtingwei
/
MagicPortrait

Diffusers
ONNX
Safetensors
Model card Files Files and versions
xet
Community
1

Instructions to use mengtingwei/MagicPortrait with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use mengtingwei/MagicPortrait with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("mengtingwei/MagicPortrait", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
MagicPortrait / stable-diffusion-v1-5
31.9 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
mengting
upload models
247d297 about 1 year ago
  • feature_extractor
    upload models about 1 year ago
  • safety_checker
    upload models about 1 year ago
  • scheduler
    upload models about 1 year ago
  • text_encoder
    upload models about 1 year ago
  • tokenizer
    upload models about 1 year ago
  • unet
    upload models about 1 year ago
  • vae
    upload models about 1 year ago
  • README.md
    14.5 kB
    upload models about 1 year ago
  • model_index.json
    541 Bytes
    upload models about 1 year ago
  • v1-5-pruned-emaonly.ckpt

    Detected Pickle imports (9)

    • "numpy.dtype",
    • "collections.OrderedDict",
    • "torch.IntStorage",
    • "torch.LongStorage",
    • "torch.FloatStorage",
    • "numpy.core.multiarray.scalar",
    • "_codecs.encode",
    • "torch._utils._rebuild_tensor_v2",
    • "pytorch_lightning.callbacks.model_checkpoint.ModelCheckpoint"

    How to fix it?

    4.27 GB
    xet
    upload models about 1 year ago
  • v1-5-pruned-emaonly.safetensors
    4.27 GB
    xet
    upload models about 1 year ago
  • v1-inference.yaml
    1.87 kB
    upload models about 1 year ago