Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

Import Tuple from typing instead of torch

Alex Gherghina8202ca13dfd6
diff --git a/opensora/models/mmdit/math.py b/opensora/models/mmdit/math.py
index 8257b0e..f09cd97 100644
--- a/opensora/models/mmdit/math.py
+++ b/opensora/models/mmdit/math.py
@@ -2,7 +2,8 @@ import torch
from einops import rearrange
from flash_attn import flash_attn_func as flash_attn_func_v2
from liger_kernel.ops.rope import LigerRopeFunction
-from torch import Tensor, Tuple
+from torch import Tensor
+from typing import Tuple
try:
from flash_attn_interface import flash_attn_func as flash_attn_func_v3