mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-05-21 11:59:01 +02:00
hotfix (#482)
This commit is contained in:
parent
2461c0cb55
commit
ccb85fc3c3
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue