maxwelljones14 commited on
Commit
6984677
Β·
verified Β·
1 Parent(s): 5ff522a

Add model card

Browse files
Files changed (1) hide show
  1. README.md +77 -23
README.md CHANGED
@@ -1,43 +1,97 @@
1
  ---
2
- license: other
3
- license_name: wan-community
4
- base_model: Wan-AI/Wan2.1-FLF2V-14B-720P
5
- library_name: diffusers
 
6
  tags:
7
  - lora
8
  - video
 
 
 
 
 
9
  - image-to-video
10
- - wan
11
- - refvfx
 
 
12
  ---
13
 
14
- # refVFX LoRA
15
 
16
- LoRA adapter for [`Wan-AI/Wan2.1-FLF2V-14B-720P`](https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P) trained to transfer a temporal visual effect from a *reference* video onto a separate input image or video.
 
17
 
18
- ## Files
 
19
 
20
- | File | Description |
21
- | --- | --- |
22
- | `epoch-0.safetensors` | LoRA model. |
23
 
24
- ## Training
 
 
 
 
25
 
26
- - **Base model:** `Wan-AI/Wan2.1-FLF2V-14B-720P`
 
 
 
 
 
 
27
  - **LoRA rank:** 1024
28
- - **Target modules:** `q, k, v, o, ffn.0, ffn.2` (applied to the DiT)
29
- - **Learning rate:** 4e-5, 200-step linear warmup
30
- - **Frames per clip:** 33
31
- - **Max pixels:** 399,360
32
- - **Optimizer parallelism:** DeepSpeed ZeRO-1, 8 ranks
33
- - **CFG dropout:** `p_drop_ref = 0.05`, `p_drop_control_video = 0.05`
34
 
35
- Trained on [`maxwelljones14/refVFX_dataset`](https://huggingface.co/datasets/maxwelljones14/refVFX_dataset) (code-based edits + neural V2V edits + I2V LoRA effects, sampled as triplets).
 
 
 
 
 
 
 
36
 
37
  ## Usage
38
 
39
- Load the weights into a Wan2.1-FLF2V pipeline and inject them as a LoRA on the DiT (target modules above, `remove_prefix_in_ckpt="pipe.dit."`). See `infer_refvfx.py` in the [refVFX trainer repo](https://github.com/) for a reference implementation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  ## License
42
 
43
- Inherits the base-model license from `Wan-AI/Wan2.1-FLF2V-14B-720P`. Use is subject to its terms.
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ base_model:
4
+ - Wan-AI/Wan2.1-FLF2V-14B-720P
5
+ datasets:
6
+ - maxwelljones14/refVFX_dataset
7
  tags:
8
  - lora
9
  - video
10
+ - video-editing
11
+ - visual-effects
12
+ - vfx
13
+ - temporal-transitions
14
+ - wan2.1
15
  - image-to-video
16
+ - video-to-video
17
+ pipeline_tag: image-to-video
18
+ library_name: peft
19
+ pretty_name: RefVFX LoRA (Wan2.1-FLF2V-14B-720P)
20
  ---
21
 
22
+ # RefVFX LoRA β€” Tuning-free Visual Effect Transfer across Videos
23
 
24
+ This is a **LoRA adapter** for [`Wan-AI/Wan2.1-FLF2V-14B-720P`](https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P),
25
+ trained for the **RefVFX** project on tuning-free visual effect transfer across videos.
26
 
27
+ > **Note:** This is an *unofficial* reimplementation produced at CMU. All code and training data were
28
+ > created from scratch using the publicly available arXiv paper and AI coding tools as the only resources.
29
 
30
+ ## Links
 
 
31
 
32
+ - πŸ“„ **Paper:** [Tuning-free Visual Effect Transfer across Videos](https://arxiv.org/abs/2601.07833) (arXiv:2601.07833)
33
+ - 🌐 **Project page:** https://snap-research.github.io/RefVFX/
34
+ - πŸ’» **Code (GitHub):** https://github.com/maxwelljones14/refVFX
35
+ - πŸ—‚οΈ **Training dataset:** [`maxwelljones14/refVFX_dataset`](https://huggingface.co/datasets/maxwelljones14/refVFX_dataset)
36
+ - 🧱 **Base model:** [`Wan-AI/Wan2.1-FLF2V-14B-720P`](https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P)
37
 
38
+ ## Model Details
39
+
40
+ - **Type:** LoRA adapter (fine-tune on top of Wan2.1-FLF2V-14B-720P)
41
+ - **Base model:** `Wan-AI/Wan2.1-FLF2V-14B-720P` (first-last-frame-to-video, 14B parameters, 720P)
42
+ - **Training data:** [`maxwelljones14/refVFX_dataset`](https://huggingface.co/datasets/maxwelljones14/refVFX_dataset)
43
+ - **Training steps:** 40K steps
44
+ - **Hardware:** 8Γ— NVIDIA Blackwell GPUs
45
  - **LoRA rank:** 1024
46
+ - **Precision:** bf16
47
+ - **Target modules:** all 40 transformer blocks β€” self-attention (`q`, `k`, `v`, `o`),
48
+ cross-attention (`q`, `k`, `v`, `o`), and feed-forward (`ffn.0`, `ffn.2`)
49
+ - **Checkpoint file:** `step-10000.safetensors`
50
+
51
+ ## What it does
52
 
53
+ RefVFX performs **tuning-free visual effect transfer across videos**: given a reference effect,
54
+ the model transfers that effect onto new input content while preserving the underlying motion and
55
+ structure. The adapter was trained on the multi-part RefVFX dataset, which combines:
56
+
57
+ - **Code-based edits** β€” deterministic spatial effects (posterize, pixelate, glitch, glow, halftone, …)
58
+ composited with temporal transitions (wipes, circle/diamond reveals, checkerboard, dissolves, …).
59
+ - **Neural V2V edits** β€” diffusion-generated effect videos sharing motion with a base (no-effect) video.
60
+ - **I2V LoRA effects** β€” image-to-video effects generated with LoRA adapters.
61
 
62
  ## Usage
63
 
64
+ This is a LoRA adapter and must be applied on top of the base Wan2.1-FLF2V-14B-720P weights.
65
+ See the [GitHub repo](https://github.com/maxwelljones14/refVFX) for inference scripts and the full
66
+ pipeline. At a high level:
67
+
68
+ ```python
69
+ from huggingface_hub import hf_hub_download
70
+
71
+ lora_path = hf_hub_download(
72
+ repo_id="maxwelljones14/refVFX-LoRA",
73
+ filename="step-10000.safetensors",
74
+ )
75
+ # Load Wan2.1-FLF2V-14B-720P, then apply the LoRA weights from `lora_path`.
76
+ # Refer to https://github.com/maxwelljones14/refVFX for the exact loading code.
77
+ ```
78
+
79
+ The checkpoint stores LoRA `A`/`B` matrices keyed as
80
+ `blocks.{i}.<module>.lora_A.default.weight` / `...lora_B.default.weight`.
81
+
82
+ ## Citation
83
+
84
+ ```bibtex
85
+ @article{jones2026tuning,
86
+ title={Tuning-free Visual Effect Transfer across Videos},
87
+ author={Jones, Maxwell and Abdal, Rameen and Patashnik, Or and Salakhutdinov, Ruslan and Tulyakov, Sergey and Zhu, Jun-Yan and Wang, Kuan-Chieh Jackson},
88
+ journal={arXiv preprint arXiv:2601.07833},
89
+ year={2026}
90
+ }
91
+ ```
92
 
93
  ## License
94
 
95
+ Released under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). The adapter derives from
96
+ [`Wan-AI/Wan2.1-FLF2V-14B-720P`](https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P); please also
97
+ review the base model's license terms before use.