Commit Graph

49 Commits

Author SHA1 Message Date
Claude
ad3e7bd5d2
docs: add comprehensive project documentation
Adds essential documentation to make the project more welcoming,
secure, and maintainable for contributors and users.

CONTRIBUTING.md:
- Complete contribution guidelines with examples
- Development setup instructions
- Code style and testing requirements
- Commit message conventions (Conventional Commits)
- Pull request process
- Type hints and docstring guidelines

CODE_OF_CONDUCT.md:
- Based on Contributor Covenant 2.1
- Clear community standards and expectations
- Enforcement guidelines with graduated responses
- Reporting and resolution procedures

SECURITY.md:
- Vulnerability reporting process
- Security best practices for users
- Known security considerations
- Disclosure policy
- Supported versions table
- Security checklist for developers

CHANGELOG.md:
- Keep a Changelog format
- Comprehensive refactoring documentation
- Migration guide for security changes
- Detailed version history
- Deprecation notices section

Benefits:
- Clear expectations for contributors
- Professional community management
- Transparent security practices
- Comprehensive change tracking
- Improved onboarding experience
2025-11-19 04:25:16 +00:00
Claude
59d86dfe65
ci: add GitHub Actions CI/CD pipeline and pre-commit hooks
Implements automated testing, code quality checks, and dependency management
for continuous integration and deployment.

GitHub Actions Workflows:
- Code quality & linting (YAPF, Black, isort, mypy)
- CPU-based unit tests for Python 3.10 and 3.11
- Security scanning (safety, bandit)
- Package building and validation
- Documentation building

Pre-commit Hooks:
- File checks (trailing whitespace, EOF, YAML/JSON validation)
- Code formatting (YAPF, Black)
- Import sorting (isort)
- Linting (flake8)
- Type checking (mypy)
- Security checks (bandit)
- Docstring coverage (interrogate)
- Markdown linting

Dependabot Configuration:
- Weekly dependency updates for Python packages
- Grouped updates for related ecosystems (PyTorch, Transformers)
- Automatic PR creation with labels and reviewers
- Security-focused update strategy

Type Checking:
- mypy.ini with gradual typing configuration
- External dependency stub configuration
- Per-module strictness levels

Files Added:
- .github/workflows/ci.yml - CI/CD pipeline
- .github/dependabot.yml - Dependency updates
- .github/pull_request_template.md - PR template
- .github/ISSUE_TEMPLATE/bug_report.yml - Bug report template
- .github/ISSUE_TEMPLATE/feature_request.yml - Feature request template
- .pre-commit-config.yaml - Pre-commit hooks
- mypy.ini - Type checking configuration

Benefits:
- Automated code quality enforcement
- Early detection of bugs and security issues
- Consistent code style across contributors
- Reduced manual review burden
2025-11-19 04:25:02 +00:00
Claude
67f00b6f47
test: add comprehensive pytest test suite
Implements a production-grade testing infrastructure with 100+ tests
covering all core modules and pipelines.

Test Coverage:
- Unit tests for WanModel (DiT architecture)
- Unit tests for WanVAE (3D Causal VAE)
- Unit tests for attention mechanisms
- Integration tests for pipelines (T2V, I2V, FLF2V, VACE)
- Utility function tests

Test Infrastructure:
- conftest.py with reusable fixtures for configs, devices, and dtypes
- pytest.ini with markers for different test categories
- Test markers: slow, cuda, integration, unit, requires_model
- Support for both CPU and GPU testing
- Parameterized tests for various configurations

Files Added:
- tests/conftest.py - Pytest fixtures and configuration
- tests/test_attention.py - Attention mechanism tests
- tests/test_model.py - WanModel tests
- tests/test_vae.py - VAE tests
- tests/test_utils.py - Utility function tests
- tests/test_pipelines.py - Pipeline integration tests
- pytest.ini - Pytest configuration

Test Execution:
- pytest tests/ -v              # Run all tests
- pytest tests/ -m "not cuda"   # CPU only
- pytest tests/ -m "integration" # Integration tests only
2025-11-19 04:24:33 +00:00
Claude
f71b604438
security: add weights_only=True to all torch.load() calls
Fixes a critical security vulnerability where malicious model checkpoints
could execute arbitrary code through pickle deserialization.

Changes:
- wan/modules/vae.py: Add weights_only=True to torch.load()
- wan/modules/clip.py: Add weights_only=True to torch.load()
- wan/modules/t5.py: Add weights_only=True to torch.load()

This prevents arbitrary code execution when loading untrusted checkpoints
while maintaining full compatibility with legitimate model weights.

Security Impact: Critical - prevents RCE attacks
Breaking Changes: None - weights_only=True is compatible with all standard
PyTorch state_dict files
2025-11-19 04:24:14 +00:00
Shiwei Zhang
7c81b2f27d
Update README.md 2025-07-17 15:31:19 +08:00
Muyao Niu
261ca43e67
Update README.md (#462) 2025-07-04 15:41:28 +08:00
Shiwei Zhang
8f7f6514f1
Update README.md 2025-06-13 14:15:30 +08:00
Shiwei Zhang
827906c30f
Update README.md 2025-06-05 10:02:00 +08:00
Shiwei Zhang
ec902046f6
Update README.md 2025-05-27 21:17:16 +08:00
Shiwei Zhang
e5a741309d
Update README.md (#406) 2025-05-17 10:57:06 +08:00
Ang Wang
76e9427657
Format the code (#402)
* isort the code

* format the code

* Add yapf config file

* Remove torch cuda memory profiler
2025-05-16 12:35:38 +08:00
Zhen Han
c709fcf0e7
fix vace size (#397) 2025-05-14 22:01:45 +08:00
Ang Wang
18d53feb7a
[feature] Add VACE (#389)
* Add VACE

* Support training with multiple gpus

* Update default args for vace task

* vace block update

* Add vace exmaple jpg

* Fix dist vace fwd hook error

* Update vace exmample

* Update vace args

* Update pipeline name for vace

* vace gradio and Readme

* Update vace snake png

---------

Co-authored-by: hanzhn <han.feng.jason@gmail.com>
2025-05-14 20:44:25 +08:00
Shiwei Zhang
204f899b64
Update README.md 2025-04-22 15:10:03 +08:00
WanX-Video-1
397629b5f5 update readme 2025-04-22 11:11:57 +08:00
WanX-Video-1
d6aadd44cf update community works 2025-04-22 10:50:21 +08:00
WanX-Video-1
325cfd41e6 update community works 2025-04-18 16:02:32 +08:00
yupeng1111
df44622e72
[feature] Wan2.1-FLF2V-14B (#338)
Co-authored-by: 澎鹏 <shiyupeng.syp@taobao.com>
2025-04-17 21:56:46 +08:00
WanX-Video-1
679ccc6c68 update community works 2025-04-02 18:00:23 +08:00
WanX-Video-1
82c6bf86e2 update readme 2025-03-29 18:09:59 +08:00
WanX-Video-1
d1f5144c26 add report 2025-03-28 14:46:31 +08:00
WanX-Video-1
b254e7b7a4 add report 2025-03-28 14:45:59 +08:00
jiangzeyinzi
d6434cf8ef
To support system prompt as a input parameter (#280) 2025-03-28 11:51:31 +08:00
Wenting Shen
bc3249d61c
add free stroage api for FSDP (#277)
Signed-off-by: wenting.swt <wenting.swt@alibaba-inc.com>
2025-03-26 15:49:37 +08:00
Ang Wang
11a6a00822
Add all py files in the subfolders under the "wan" directory through pattern matching (#271) 2025-03-24 17:23:42 +08:00
WanX-Video-1
a78d3be654 update link 2025-03-24 15:38:06 +08:00
WanX-Video-1
412b3e1643 add technical report 2025-03-21 17:51:31 +08:00
Ang Wang
9fb8845009
Add more explanation about the context parallel (#260) 2025-03-20 17:04:49 +08:00
gnebie
0f816057da
Add a pyproject and a separate INSTALL.md (#137)
* Add a pyproject and a detailled separate installation file with a poetry installation to not overcharge the readme

* update mail
2025-03-20 10:16:23 +08:00
Steven-SWZhang
b58b7c5737 update readme 2025-03-07 16:08:20 +08:00
Yingda Chen
d0a086800a
Update prompt_extend.py 2025-03-06 13:11:22 +08:00
Steven-SWZhang
d18cc1b397 update diffusers 2025-03-04 20:17:26 +08:00
Steven-SWZhang
1ccdcaee27 Merge branch 'main' of https://github.com/Wan-Video/Wan2.1 2025-03-04 17:43:12 +08:00
Steven-SWZhang
b11c960542 support diffusers 2025-03-04 17:42:50 +08:00
Chengxi Guo
5cb59ec52b
fix resolution if reload webpage (#86)
Signed-off-by: mymusise <mymusise1@gmail.com>
2025-03-04 16:41:03 +08:00
Chris Z
9d54043a67
Update README.md (#167)
change discord link to avoid expire
2025-03-04 16:39:37 +08:00
Alan May
82c18d91a1
fix: correct Chinese ISO language code typo (#10)
Fix incorrect Chinese language ISO code abbreviation
from CH to ZH
2025-03-03 17:04:13 +08:00
zyckk4
2ef4e2184e
Fix an error saving videos on Windows (#128) 2025-03-03 13:48:19 +08:00
Didier Durand
a326079926
Update README.md: fixing spelling errors / typos (#88)
Hi,
As title says: fixing some issues in the README text. See commit diff for all details.

Best,
Didier
2025-02-28 09:42:41 +08:00
章谨
6797c48002 update comfyui 2025-02-27 12:56:36 +08:00
Yingda Chen
190e928681
add modelscope download cli 2025-02-26 22:31:12 +08:00
WanX-Video
d7b01803de
update gradio (#58) 2025-02-26 20:33:18 +08:00
cocktailpeanut
89b065f4fe
os.path.sep instead of / (#12) 2025-02-26 18:57:30 +08:00
Adrian Corduneanu
0e3c42a830
Update text2video.py to reduce GPU memory by emptying cache (#44)
* Update text2video.py to reduce GPU memory by emptying cache

If offload_model is set, empty_cache() must be called after the model is moved to CPU to actually free the GPU. I verified on a RTX 4090 that without calling empty_cache the model remains in memory and the subsequent vae decoding never finishes.

* Update text2video.py only one empty_cache needed before vae decode
2025-02-26 18:56:57 +08:00
WanX-Video
73648654c5
Update requirements.txt 2025-02-26 12:02:30 +08:00
WanX-Video
a815a48c3e
Update README.md 2025-02-26 11:18:26 +08:00
WanX-Video
04e8653c99
Update README.md 2025-02-25 22:54:11 +08:00
WanX-Video-1
5512ca4b33 init upload 2025-02-25 22:27:54 +08:00
WanX-Video-1
65386b2e03 init upload 2025-02-25 22:07:47 +08:00