Instructions to use zjwfufu/SMD-MiniMax-H3-Ref2VA-4step with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zjwfufu/SMD-MiniMax-H3-Ref2VA-4step with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("zjwfufu/SMD-MiniMax-H3-Ref2VA-4step") prompt = "A man with short gray hair plays a red electric guitar." input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png") output = pipe(image=input_image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download examples/reference_generation.json from zjwfufu/SMD-MiniMax-H3-Ref2VA-4step: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/resolve/main/examples/reference_generation.json
- Command line
-
hf download hf://zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/examples/reference_generation.json
-
curl -L -o reference_generation.json https://huggingface.co/zjwfufu/SMD-MiniMax-H3-Ref2VA-4step/resolve/main/examples/reference_generation.json
1.25 kB
| [ | |
| { | |
| "prompt": "Full-length studio photograph of an adult woman with a short dark bob, wearing a mustard yellow raincoat, dark trousers and brown boots. Relaxed standing pose with empty hands. Plain light gray background, soft even lighting.", | |
| "seed": 1234, | |
| "height": 1024, | |
| "width": 1024, | |
| "sigmas": [ | |
| 0.999, | |
| 0.9320267290061409, | |
| 0.8044392117499536, | |
| 0.4775642604809712, | |
| 0.0 | |
| ], | |
| "output": "ref_woman.png", | |
| "output_sha256": "08bdadae2f0ce2cb39b98153a6173ec360378b73b389276e2acfaac7f37971b3", | |
| "model_id": "zjwfufu/SMD-FLUX.2-Klein-4B", | |
| "variant": "teacher-9b", | |
| "steps": 4 | |
| }, | |
| { | |
| "prompt": "Full-body studio photograph of a fluffy white Samoyed dog with a red bandana, standing in a relaxed pose, mouth slightly open. Isolated on a plain light gray background, soft even light.", | |
| "seed": 1234, | |
| "height": 1024, | |
| "width": 1024, | |
| "sigmas": [ | |
| 0.999, | |
| 0.9320267290061409, | |
| 0.8044392117499536, | |
| 0.4775642604809712, | |
| 0.0 | |
| ], | |
| "output": "ref_dog.png", | |
| "output_sha256": "6b16db993ff16833d48012234d811ae9712a358da1c8b3ac6bc05124ddc49c71", | |
| "model_id": "zjwfufu/SMD-FLUX.2-Klein-4B", | |
| "variant": "teacher-9b", | |
| "steps": 4 | |
| } | |
| ] | |