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

microsoft
/
Mage-Flow-Edit-Base

Image-to-Image
Diffusers
Safetensors
MageFlowPipeline
image-editing
instruction-based-editing
diffusion
rectified-flow
mage-flow
Model card Files Files and versions
xet
Community

Instructions to use microsoft/Mage-Flow-Edit-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use microsoft/Mage-Flow-Edit-Base 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("microsoft/Mage-Flow-Edit-Base", torch_dtype=torch.bfloat16, device_map="cuda")
    
    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
Mage-Flow-Edit-Base / text_encoder
8.89 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Xinjie-Q's picture
Xinjie-Q
add text_encoder
94ad6dc verified 2 days ago
  • .gitattributes
    1.52 kB
    add text_encoder 2 days ago
  • README.md
    7.13 kB
    add text_encoder 2 days ago
  • chat_template.json
    5.5 kB
    add text_encoder 2 days ago
  • config.json
    1.51 kB
    add text_encoder 2 days ago
  • generation_config.json
    269 Bytes
    add text_encoder 2 days ago
  • merges.txt
    1.67 MB
    add text_encoder 2 days ago
  • model-00001-of-00002.safetensors
    4.97 GB
    xet
    add text_encoder 2 days ago
  • model-00002-of-00002.safetensors
    3.91 GB
    xet
    add text_encoder 2 days ago
  • model.safetensors.index.json
    64.7 kB
    add text_encoder 2 days ago
  • preprocessor_config.json
    390 Bytes
    add text_encoder 2 days ago
  • tokenizer.json
    7.03 MB
    add text_encoder 2 days ago
  • tokenizer_config.json
    10.9 kB
    add text_encoder 2 days ago
  • video_preprocessor_config.json
    385 Bytes
    add text_encoder 2 days ago
  • vocab.json
    2.78 MB
    add text_encoder 2 days ago