hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
20.1k stars 1.91k forks source link

OpenSoraVAE_V1_2() got an unexpected keyword argument 'force_huggingface' #548

Closed kisstea closed 5 days ago

kisstea commented 6 days ago
vae = build_module(cfg.vae, MODELS).to(device, dtype).eval()

File "/root/miniconda3/envs/opensora/lib/python3.9/site-packages/opensora/registry.py", line 24, in build_module return builder.build(cfg) File "/root/miniconda3/envs/opensora/lib/python3.9/site-packages/mmengine/registry/registry.py", line 570, in build return self.build_func(cfg, *args, kwargs, registry=self) File "/root/miniconda3/envs/opensora/lib/python3.9/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg obj = obj_cls(args) # type: ignore TypeError: OpenSoraVAE_V1_2() got an unexpected keyword argument 'force_huggingface'

kisstea commented 6 days ago

模型是手动下载的

CQSim commented 6 days ago

I have met the same error. Could any one help us?

kisstea commented 6 days ago

remove ‘force_huggingface’ from config file。

odel = dict( type="STDiT3-XL/2", from_pretrained="hpcai-tech/OpenSora-STDiT-v3", qk_norm=True, enable_flash_attn=True, enable_layernorm_kernel=True, ) vae = dict( type="OpenSoraVAE_V1_2", from_pretrained="hpcai-tech/OpenSora-VAE-v1.2", micro_frame_size=17, micro_batch_size=4, )