成功的尝试

This commit is contained in:
qhy
2026-02-18 19:14:55 +08:00
parent 9a08e27a19
commit 65788be1b3
32 changed files with 1772 additions and 50 deletions

View File

@@ -585,6 +585,11 @@ def run_inference(args: argparse.Namespace, gpu_num: int, gpu_no: int) -> None:
if isinstance(m, CrossAttention) and m.fuse_kv())
print(f" ✓ KV fused: {kv_count} attention layers")
# Load TRT backbone if engine exists
trt_engine_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'trt_engines', 'video_backbone.engine')
if os.path.exists(trt_engine_path):
model.model.diffusion_model.load_trt_backbone(trt_engine_path)
# Run over data
assert (args.height % 16 == 0) and (
args.width % 16