You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: default to old PyTorch weight_norm for RVC fork compat + fix FAISS AVX2
- Add arvc/engine/models/weight_norm.py wrapper module:
- Default: torch.nn.utils.weight_norm (old-style, .weight_g/.weight_v)
compatible with virtually all RVC forks
- New mode: torch.nn.utils.parametrizations.weight_norm (PyTorch 2.0+)
Enable by setting new_pytorch_weight_norm: true in config.json
- Update 20+ model files to use weight_norm wrapper instead of
direct torch.nn.utils.parametrizations imports
- Make checkpoint key conversion conditional:
- Old mode: no conversion needed (model uses .weight_g/.weight_v directly)
- New mode: convert between old checkpoint format and new parametrizations
format on load/save (same behavior as before)
- Fix ModuleNotFoundError for faiss.swigfaiss_avx2:
Add fallback import in models/utils.py and create_index.py that
catches the AVX2 module error and falls back to non-AVX2 faiss
0 commit comments