stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

sd3

Open Myoko opened this issue 6 months ago • 5 comments

The latest main branch f1.0.0v1.10.0rc-previous-14-g33e381f1 fails to load the sd3 model.

loading stable diffusion model: TypeError Traceback (most recent call last): File "F:\Content\Forge\launch.py", line 51, in main() File "F:\Content\Forge\launch.py", line 47, in main start() File "F:\Content\Forge\modules\launch_utils.py", line 549, in start main_thread.loop() File "F:\Content\Forge\modules_forge\main_thread.py", line 37, in loop task.work() File "F:\Content\Forge\modules_forge\main_thread.py", line 26, in work self.result = self.func(*self.args, **self.kwargs) File "F:\Content\Forge\modules\sd_models.py", line 572, in get_sd_model errors.display(e, "loading stable diffusion model", full_traceback=True) File "F:\Content\Forge\modules\sd_models.py", line 569, in get_sd_model load_model() File "F:\Content\Forge\modules\sd_models.py", line 668, in load_model sd_model = forge_loader.load_model_for_a1111(timer=timer, checkpoint_info=checkpoint_info, state_dict=state_dict) File "F:\Content\Forge\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "F:\Content\Forge\modules_forge\forge_loader.py", line 150, in load_model_for_a1111 sd_model = instantiate_from_config(a1111_config.model) File "F:\Content\Forge\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "F:\Content\Forge\modules\models\sd3\sd3_model.py", line 28, in init self.model = BaseModel(shift=shift, state_dict=state_dict, prefix="model.diffusion_model.", device="cpu", dtype=devices.dtype) File "F:\Content\Forge\modules\models\sd3\sd3_impls.py", line 55, in init patch_size = state_dict[f"{prefix}x_embedder.proj.weight"].shape[2] TypeError: 'NoneType' object is not subscriptable

Stable diffusion model failed to load

To create a public link, set share=True in launch(). Startup time: 26.9s (prepare environment: 5.5s, launcher: 1.5s, import torch: 3.4s, setup paths: 2.1s, initialize shared: 0.2s, other imports: 0.8s, load scripts: 4.5s, create ui: 4.6s, gradio launch: 2.3s, app_started_callback: 1.9s). Loading weights [cc236278d2] from F:\Content\Forge\models\Stable-diffusion\SD3\sd3_medium.safetensors loading stable diffusion model: TypeError Traceback (most recent call last): File "F:\Content\Forge\python\lib\threading.py", line 973, in _bootstrap self._bootstrap_inner() File "F:\Content\Forge\python\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "<enhanced_experience vendors.sentry_sdk.integrations.threading>", line 70, in run File "F:\Content\Forge\python\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, *args) File "F:\Content\Forge\python\lib\site-packages\gradio\utils.py", line 818, in wrapper response = f(*args, **kwargs) File "F:\Content\Forge\modules\ui.py", line 1156, in update_image_cfg_scale_visibility = lambda: gr.update(visible=shared.sd_model and shared.sd_model.cond_stage_key == "edit") File "F:\Content\Forge\modules\shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "F:\Content\Forge\modules\sd_models.py", line 572, in get_sd_model errors.display(e, "loading stable diffusion model", full_traceback=True) File "F:\Content\Forge\modules\sd_models.py", line 569, in get_sd_model load_model() File "F:\Content\Forge\modules\sd_models.py", line 668, in load_model sd_model = forge_loader.load_model_for_a1111(timer=timer, checkpoint_info=checkpoint_info, state_dict=state_dict) File "F:\Content\Forge\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "F:\Content\Forge\modules_forge\forge_loader.py", line 150, in load_model_for_a1111 sd_model = instantiate_from_config(a1111_config.model) File "F:\Content\Forge\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "F:\Content\Forge\modules\models\sd3\sd3_model.py", line 28, in init self.model = BaseModel(shift=shift, state_dict=state_dict, prefix="model.diffusion_model.", device="cpu", dtype=devices.dtype) File "F:\Content\Forge\modules\models\sd3\sd3_impls.py", line 55, in init patch_size = state_dict[f"{prefix}x_embedder.proj.weight"].shape[2] TypeError: 'NoneType' object is not subscriptable

Stable diffusion model failed to load

Myoko avatar Jul 27 '24 11:07 Myoko