Skip to content

Bug in Web UI: Unknown model arch 'sd15' when selecting SD 1.5 #1092

Open

Description

@igor44-tech

Describe the bug

There is a minor typo in the built-in Web UI model registration that prevents Stable Diffusion 1.5 from training out of the box.

When a user selects "SD 1.5" in the interface, the app generates a configuration file with arch: "sd15". However, the core backend trainer only recognizes "sd1" as a valid architecture name, causing the execution script to instantly crash with an Unknown model arch 'sd15' error.

Location of the bug

The typo is located in the Web UI source file:
extensions_built_in/diffusion_models/ui.tsx

Currently, the configuration block for SD 1.5 is registered as:

name: "sd15",
label: "SD 1.5",

How to fix it

It should be updated to use the standard core architecture string:

name: "sd1",
label: "SD 1.5",

Additional context

Manually changing "sd15" to "sd1" inside ui.tsx and restarting the toolkit completely fixes the issue. The configuration is then generated correctly, allowing the training loop to initialize fully offline and generate samples perfectly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions