Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

hotfix (#482)

Zheng Zangwei (Alex Zheng)ccb85fc3c3e0
diff --git a/opensora/models/stdit/stdit3.py b/opensora/models/stdit/stdit3.py
index e6dc8b4..1c7b516 100644
--- a/opensora/models/stdit/stdit3.py
+++ b/opensora/models/stdit/stdit3.py
@@ -458,8 +458,9 @@ def STDiT3_XL_2(from_pretrained=None, **kwargs):
@MODELS.register_module("STDiT3-3B/2")
-def STDiT3_3B_2(from_pretrained=None, force_huggingface=True, **kwargs):
+def STDiT3_3B_2(from_pretrained=None, **kwargs):
# check if from_pretrained is a path
+ force_huggingface = kwargs.pop("force_huggingface", True)
if force_huggingface or (from_pretrained is not None and not os.path.isdir(from_pretrained)):
model = STDiT3.from_pretrained(from_pretrained, **kwargs)
else: