Text-to-video diffusion models are notoriously limited in their ability to model temporal aspects such as motion, physics, and dynamic interactions. Existing approaches address this limitation by retraining the model or introducing external conditioning signals to enforce temporal consistency.
FlowMo explores whether a meaningful temporal representation can be extracted directly from the predictions of a pre-trained model without any additional training or auxiliary inputs. Our novel training-free guidance method enhances motion coherence using only the model's own predictions in each diffusion step.
Clone the repository
bash
git clone https://github.com/arielshaulov/video-motion.git
cd video-motion
Set up Wan2.1 model
Visit the official Wan2.1 repository and follow their setup instructions to obtain the model weights.
bash
pip install -r requirements.txtpython generate.py --task t2v-1.3B \
--size 832*480 \
--ckpt_dir path/to/model/weights \
--prompts "A painter creating a landscape on canvas." \
--seeds 42 72 \
--optimize "True"
| Parameter | Description | Default |
|---|---|---|
--task |
Model task specification | t2v-1.3B |
--size |
Output video resolution | 832*480 |
--ckpt_dir |
Path to model weights | Required |
--prompts |
Text prompt for generation | Required |
--seeds |
Random seed for reproducibility | 42 72 |
--optimize |
Enable FlowMo optimization | True |
FlowMo demonstrates significant improvements in: - ✅ Motion coherence across various text-to-video models - ✅ Temporal consistency without sacrificing visual quality - ✅ Prompt alignment maintained at original levels - ✅ Plug-and-play compatibility with existing models
We welcome contributions! Please feel free to: - 🐛 Report bugs - 💡 Suggest new features - 🔧 Submit pull requests - 📖 Improve documentation
If you find our work useful for your research, please consider citing:
@article{flowmo2025,
title={FlowMo: Variance-Based Flow Guidance for Coherent Motion in Video Generation},
author={Shaulov, Ariel and Hazan, Itay and Wolf, Lior and Chefer, Hila},
journal={arXiv preprint arXiv:2309.03884},
year={2025}
}
This project is licensed under the MIT License - see the LICENSE file for details.
⭐ Star this repository if you find it helpful!
$ claude mcp add FlowMo \
-- python -m otcore.mcp_server <graph>