Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

AEmotionStudio
/
flux-klein

Image-to-Image
Diffusers
Safetensors
Flux2KleinPipeline
flux
inpainting
image-editing
diffusion
Model card Files Files and versions
xet
Community

Instructions to use AEmotionStudio/flux-klein with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use AEmotionStudio/flux-klein 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("AEmotionStudio/flux-klein", 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
flux-klein
16 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 21 commits
AEmotionStudio's picture
AEmotionStudio
Add Apache 2.0 license file
f7b5a9b verified 2 months ago
  • scheduler
    Add scheduler/scheduler_config.json 2 months ago
  • text_encoder
    Add text_encoder/model-00002-of-00002.safetensors 2 months ago
  • tokenizer
    Add tokenizer/vocab.json 2 months ago
  • transformer
    Add transformer/diffusion_pytorch_model.safetensors 2 months ago
  • vae
    Add vae/diffusion_pytorch_model.safetensors 2 months ago
  • .gitattributes
    1.58 kB
    Add tokenizer/tokenizer.json 2 months ago
  • LICENSE.md
    10.8 kB
    Add Apache 2.0 license file 2 months ago
  • README.md
    2.98 kB
    Add mirror README with usage instructions 2 months ago
  • model_index.json
    446 Bytes
    Add model_index.json 2 months ago