Image-to-Image
Diffusers
Safetensors
MiniMax H3
English
character-swap
image-editing
lora-merge
ml-intern
Instructions to use akhaliq/MiniMax-H3-Image-Character-Swap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use akhaliq/MiniMax-H3-Image-Character-Swap 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("akhaliq/MiniMax-H3-Image-Character-Swap", 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
File size: 591 Bytes
f2b901b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | {
"_class_name": "PatchedMiniMaxH3ImageTransformer",
"_diffusers_version": "0.43.0",
"_name_or_path": "MiniMaxAI/MiniMax-H3-Image",
"attention_head_dim": 128,
"ffn_dim": 14336,
"final_norm_eps": 1e-05,
"freq_dim": 256,
"hidden_size": 5376,
"in_channels": 24,
"norm_eps": 1e-05,
"num_attention_heads": 56,
"num_layers": 50,
"num_pdd_heads": 6,
"num_refiner_layers": 2,
"patch_size": [
1,
2,
2
],
"qk_norm_eps": 1e-05,
"rope_freq_dim": 16,
"rope_theta": 10000.0,
"text_dim": 5120,
"time_embed_dim": 2688,
"time_embed_hidden_dim": 5376
}
|