feat: Add PyTorch 2.6+ compatibility and RTX 5070 support#413
Open
hunterlarcuad wants to merge 1 commit intoTMElyralab:mainfrom
Open
feat: Add PyTorch 2.6+ compatibility and RTX 5070 support#413hunterlarcuad wants to merge 1 commit intoTMElyralab:mainfrom
hunterlarcuad wants to merge 1 commit intoTMElyralab:mainfrom
Conversation
- Add PyTorch 2.6+ compatibility monkey patch for torch.load - Add weights_only=False parameter to all torch.load calls - Fix relative import in preprocessing.py - Add RTX 5070 environment support files - Add CLI wrapper for easier inference - Optimize download_weights.sh script Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
torch.loadweights_only=Falseparameter to alltorch.loadcallspreprocessing.pydownload_weights.shscriptChanges
Core Fixes
app.py,scripts/inference.py,scripts/realtime_inference.py: Add PyTorch 2.6+ compatibility monkey patchmusetalk/models/unet.py,musetalk/utils/face_parsing/, etc.: Addweights_only=Falseto alltorch.loadcallsmusetalk/utils/preprocessing.py: Fix relative import issueNew Files
requirements-rtx5070.txt: RTX 5070 specific dependenciesrun_cli.py: CLI wrapper for easier inferenceanalyze-gemini.md,env-5070.md: Environment analysis documentationreset_mmdet.py: mmdet initialization reset scriptchumpy-0.70/: chumpy library for compatibilityOptimizations
download_weights.sh: Remove unnecessary pip installs, add HuggingFace mirrorTest Plan
torch.loadcalls work correctly🤖 Generated with Claude Code