| 411 | 411 | const data = await result.json(); |
| 412 | 412 | |
| 413 | 413 | const ckpts = data.CheckpointLoaderSimple.input.required.ckpt_name[0].map(it => ({ value: it, text: it })) || []; |
| 414 | + const unets = data.UNETLoader.input.required.unet_name[0].map(it => ({ value: it, text: `UNet: ${it}` })) || []; |
| 414 | 415 | |
| 415 | 416 | // load list of GGUF unets from diffusion_models if the loader node is available |
| 416 | 417 | const ggufs = data.UnetLoaderGGUF?.input.required.unet_name[0].map(it => ({ value: it, text: `GGUF: ${it}` })) || []; |
| 417 | 418 | const models = [...ckpts, .concat(..unets, ...ggufs)]; |
| 418 | 419 | |
| 419 | 420 | // make the display names of the models somewhat presentable |
| 420 | 421 | models.forEach(it => it.text = it.text.replace(/\.[^.]*$/, '').replace(/_/g, ' ')); |