Skip to content

Error message when starting Wan2GP, but UI seems to work afterwards. #1549

@UliG67

Description

@UliG67

Package

WanGP v10.84

When did the issue occur?

Running the Package

What GPU / hardware type are you using?

AMD Ryzen 7 3600X, 32GB Ram, RTX 5060ti 16GB

What happened?

NameError: name 'mode_def' is not defined. Did you mean: 'model_def'? appears when stating the ui. But it seems to work afterwards. (Or may it be more a fault in the wangp starting script code? I`m not so deep in this stuff yet.)

Console output

Traceback (most recent call last):
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\gradio\blocks.py", line 2146, in process_api
result = await self.call_function(
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\gradio\blocks.py", line 1664, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\anyio\to_thread.py", line 63, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\anyio_backends_asyncio.py", line 2502, in run_sync_in_worker_thread
return await future
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\anyio_backends_asyncio.py", line 986, in run
result = context.run(func, *args)
File "D:\StabilityMatrix\Data\Packages\Wan2GP\venv\lib\site-packages\gradio\utils.py", line 884, in wrapper
response = f(*args, **kwargs)
File "D:\StabilityMatrix\Data\Packages\Wan2GP\wgp.py", line 9150, in refresh_prompt_labels
prompt_label, wizard_prompt_label = get_prompt_labels(multi_prompts_gen_type, model_def, image_mode > 0, mode_def.get("audio_only", False))
NameError: name 'mode_def' is not defined. Did you mean: 'model_def'?
Loading Model 'ckpts\ltx-2-19b-distilled-fp8_diffusion_model.safetensors' ...
Loading Text Encoder 'ckpts\gemma-3-12b-it-qat-q4_0-unquantized\gemma-3-12b-it-qat-q4_0-unquantized_quanto_bf16_int8.safetensors' ...

Version

v 2.15.6

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions