support HunyuanVideo

This commit is contained in:
LiewFeng 2024-12-24 23:05:04 +08:00
parent 773bb5b0b0
commit 76f351bc2a
6 changed files with 47 additions and 2 deletions

BIN
.vs/TeaCache/v17/.wsuo Normal file

Binary file not shown.

View File

@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\25142\\Documents\\TeaCache\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\25142\\Documents\\TeaCache\\TeaCache4HunyuanVideo\\README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:TeaCache4HunyuanVideo\\README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "README.md",
"DocumentMoniker": "C:\\Users\\25142\\Documents\\TeaCache\\TeaCache4HunyuanVideo\\README.md",
"RelativeDocumentMoniker": "TeaCache4HunyuanVideo\\README.md",
"ToolTip": "C:\\Users\\25142\\Documents\\TeaCache\\TeaCache4HunyuanVideo\\README.md",
"RelativeToolTip": "TeaCache4HunyuanVideo\\README.md",
"ViewState": "AgIAACEAAAAAAAAAAAAAACIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001818|",
"WhenOpened": "2024-12-24T15:01:17.968Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@ -0,0 +1,8 @@
{
"ExpandedNodes": [
"",
"\\TeaCache4HunyuanVideo"
],
"SelectedNode": "\\TeaCache4HunyuanVideo\\README.md",
"PreviewInSolutionExplorer": false
}

BIN
.vs/slnx.sqlite Normal file

Binary file not shown.

View File

@ -14,7 +14,7 @@
## Usage ## Usage
Follow [HunyuanVideo](https://github.com/Tencent/HunyuanVideo) to clone the repo and finish the installation, then copy 'teacache_sample_video.py' in this repo to the HunyuanVideo repo. Follow [HunyuanVideo](https://github.com/Tencent/HunyuanVideo) to clone the repo and finish the installation, then copy 'teacache_sample_video.py' in this repo to the HunyuanVideo repo. You can modify the thresh in line 220 to obtain your desired trade-off between latency and visul quality.
For single-gpu inference, you can use the following command: For single-gpu inference, you can use the following command:
@ -48,7 +48,7 @@ torchrun --nproc_per_node=8 teacache_sample_video.py \
--save-path ./teacache_results --save-path ./teacache_results
``` ```
You can modify the thresh in line 220 to obtain your desired trade-off between latency and visul quality.
## Acknowledgements ## Acknowledgements