Commit c5b8e67
committed
feat(stable_diffusion): expose StableDiffusionConfig.unet() and .autoencoder() accessors
Downstream consumers (e.g. mold's single-file SD1.5/SDXL Civitai checkpoint loader) need to construct UNet2DConditionModel and AutoEncoderKL with a custom VarBuilder backend. The configs sit on private fields with no accessor, blocking that path. Adding two read-only accessor methods is the minimal additive fix.1 parent aa70d79 commit c5b8e67
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
516 | 526 | | |
517 | 527 | | |
518 | 528 | | |
| |||
0 commit comments