Upload 4 files
Browse files
MAGREF/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"*.safetensors filter=lfs diff=lfs merge=lfs -text"
|
MAGREF/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: openrail++
|
| 3 |
+
tags:
|
| 4 |
+
- image-to-video
|
| 5 |
+
- wan2.1
|
| 6 |
+
- finetune
|
| 7 |
+
- magref
|
| 8 |
+
model_type: image-to-video
|
| 9 |
+
base_model: Wan2_1-I2V
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# MAGREF‑Video 14B I2V (WanGP-Ready)
|
| 13 |
+
|
| 14 |
+
📁 This repo bundles the FP16 MAGREF-14B Image‑to‑Video model with an INT8 quantized version optimized for WanGP.
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## 📥 Files
|
| 19 |
+
|
| 20 |
+
- **`Wan2_1-Wan-I2V-MAGREF-14B_fp16_pure.safetensors`** – original Wan2.1 FP16 MAGREF model, cleaned for WanGP loading.
|
| 21 |
+
- **`Wan2_1-Wan-I2V-MAGREF-14B_quanto_fp16_int8.safetensors`** – INT8 quantized version for faster inference, same architecture.
|
| 22 |
+
|
| 23 |
+
> These weights are based on the **fp8 MAGREF checkpoint** published by **Kijai** at [WanVideo_comfy](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1-Wan-I2V-MAGREF-14B_fp8_e4m3fn.safetensors).
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## ⚙️ Features
|
| 28 |
+
|
| 29 |
+
- **Image‑to‑Video pipeline** (i2v backbone)
|
| 30 |
+
- **Optimized for prompt-based subject preservation**
|
| 31 |
+
- **INT8 quantized version included for memory efficiency**
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## 🛠 Installation & Usage (WanGP)
|
| 36 |
+
|
| 37 |
+
1. **Clone/download** this repo.
|
| 38 |
+
2. Ensure both `.safetensors` files are in the same directory.
|
| 39 |
+
3. Use this JSON as your finetune definition:
|
| 40 |
+
|
| 41 |
+
```jsonc
|
| 42 |
+
{
|
| 43 |
+
"model": {
|
| 44 |
+
"name": "MAGREF‑14B I2V",
|
| 45 |
+
"architecture": "i2v",
|
| 46 |
+
"modules": [],
|
| 47 |
+
"URLs": [
|
| 48 |
+
"Wan2_1-Wan-I2V-MAGREF-14B_fp16_pure.safetensors",
|
| 49 |
+
"Wan2_1-Wan-I2V-MAGREF-14B_quanto_fp16_int8.safetensors"
|
| 50 |
+
],
|
| 51 |
+
"auto_quantize": false
|
| 52 |
+
},
|
| 53 |
+
"multi_images_gen_type": 1,
|
| 54 |
+
"prompt_enhancer": ""
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
4. **Start WanGP** with UI setup:
|
| 58 |
+
```bash
|
| 59 |
+
python wgp.py --multiple-images
|
| 60 |
+
```
|
| 61 |
+
5. Choose **“MAGREF‑14B I2V”**, upload reference image(s), then generate!
|
| 62 |
+
|
| 63 |
+
---
|
| 64 |
+
|
| 65 |
+
## 📊 Model Info (Wan 2.1, MAGREF)
|
| 66 |
+
|
| 67 |
+
- MAGREF extends the Wan2.1 14B I2V with **identity-preserving video generation**—originally published by **Kijai**.
|
| 68 |
+
- Built on the **Wan 2.1 framework**, a state-of-the-art open-source video foundation model with a 14B parameter backbone.
|
| 69 |
+
- MAGREF specializes in maintaining consistent subject appearance across varied motions, automatically managing pose and depth.
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## 🧠 Tips & Tricks
|
| 74 |
+
|
| 75 |
+
- 📸 Provide clear reference images—MAGREF handles blending but quality matters.
|
| 76 |
+
- 🎯 Use prompt slots like: “**[Left: ref‑image 1 with X], [Right: ref‑image 2 with Y]**” for layered scene control.
|
| 77 |
+
- 🎥 Fine-tune motion through clip speed (slower = softer movement).
|
| 78 |
+
- ⚡ FP16 is slow; use INT8 quant for real-time generation.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## 🧩 Credits
|
| 83 |
+
|
| 84 |
+
- **MAGREF 14B I2V** checkpoint by **Kijai / WanVideo_comfy**
|
| 85 |
+
- **Wan 2.1** open-source video model framework
|
| 86 |
+
- **WanGP** UI integration for finetune loading
|
| 87 |
+
|
| 88 |
+
---
|
| 89 |
+
|
| 90 |
+
Download, drop in WanGP, and go wild with your characters in motion!
|
MAGREF/Wan2_1-Wan-I2V-MAGREF-14B_fp16_pure.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c507e941cd6cb70ba3b023a5eb3610fc70d89d46755aa2aa40780d12acb7ce73
|
| 3 |
+
size 32789892720
|
MAGREF/Wan2_1-Wan-I2V-MAGREF-14B_quanto_bf16_int8_pure.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58c12fb3862e0d8cece1f414f4e465cabf1a2b5b8596c31af1957ac239caea37
|
| 3 |
+
size 16641621899
|