forked from extern/easydiffusion
Show the controlnet buttons only for diffusers
This commit is contained in:
parent
404329f9b5
commit
d35a89bb01
@ -161,7 +161,9 @@
|
|||||||
<a href="https://github.com/easydiffusion/easydiffusion/wiki/Clip-Skip" target="_blank"><i class="fa-solid fa-circle-question help-btn"><span class="simple-tooltip top-left">Click to learn more about Clip Skip</span></i></a>
|
<a href="https://github.com/easydiffusion/easydiffusion/wiki/Clip-Skip" target="_blank"><i class="fa-solid fa-circle-question help-btn"><span class="simple-tooltip top-left">Click to learn more about Clip Skip</span></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="controlnet_model_container" class="pl-5"><td><label for="controlnet_model">ControlNet Image:</label></td><td>
|
<tr id="controlnet_model_container" class="pl-5">
|
||||||
|
<td><label for="controlnet_model">ControlNet Image:</label></td>
|
||||||
|
<td class="diffusers-restart-needed">
|
||||||
<div id="control_image_wrapper" class="preview_image_wrapper">
|
<div id="control_image_wrapper" class="preview_image_wrapper">
|
||||||
<img id="control_image_preview" class="image_preview" src="" crossorigin="anonymous" />
|
<img id="control_image_preview" class="image_preview" src="" crossorigin="anonymous" />
|
||||||
<span id="control_image_size_box" class="img_bottom_label"></span>
|
<span id="control_image_size_box" class="img_bottom_label"></span>
|
||||||
@ -214,7 +216,8 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<label><small>Will download the necessary models, the first time.</small></label>
|
<label><small>Will download the necessary models, the first time.</small></label>
|
||||||
</div>
|
</div>
|
||||||
</td></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
<tr class="pl-5"><td><label for="vae_model">Custom VAE:</label></td><td>
|
<tr class="pl-5"><td><label for="vae_model">Custom VAE:</label></td><td>
|
||||||
<input id="vae_model" type="text" spellcheck="false" autocomplete="off" class="model-filter" data-path="" />
|
<input id="vae_model" type="text" spellcheck="false" autocomplete="off" class="model-filter" data-path="" />
|
||||||
<a href="https://github.com/easydiffusion/easydiffusion/wiki/VAE-Variational-Auto-Encoder" target="_blank"><i class="fa-solid fa-circle-question help-btn"><span class="simple-tooltip top-left">Click to learn more about VAEs</span></i></a>
|
<a href="https://github.com/easydiffusion/easydiffusion/wiki/VAE-Variational-Auto-Encoder" target="_blank"><i class="fa-solid fa-circle-question help-btn"><span class="simple-tooltip top-left">Click to learn more about VAEs</span></i></a>
|
||||||
|
@ -461,6 +461,7 @@ async function getAppConfig() {
|
|||||||
if (!testDiffusersEnabled) {
|
if (!testDiffusersEnabled) {
|
||||||
document.querySelector("#lora_model_container").style.display = "none"
|
document.querySelector("#lora_model_container").style.display = "none"
|
||||||
document.querySelector("#tiling_container").style.display = "none"
|
document.querySelector("#tiling_container").style.display = "none"
|
||||||
|
document.querySelector("#controlnet_model_container").style.display = "none"
|
||||||
|
|
||||||
document.querySelectorAll("#sampler_name option.diffusers-only").forEach((option) => {
|
document.querySelectorAll("#sampler_name option.diffusers-only").forEach((option) => {
|
||||||
option.style.display = "none"
|
option.style.display = "none"
|
||||||
@ -470,6 +471,7 @@ async function getAppConfig() {
|
|||||||
} else {
|
} else {
|
||||||
document.querySelector("#lora_model_container").style.display = ""
|
document.querySelector("#lora_model_container").style.display = ""
|
||||||
document.querySelector("#tiling_container").style.display = ""
|
document.querySelector("#tiling_container").style.display = ""
|
||||||
|
document.querySelector("#controlnet_model_container").style.display = ""
|
||||||
|
|
||||||
document.querySelectorAll("#sampler_name option.k_diffusion-only").forEach((option) => {
|
document.querySelectorAll("#sampler_name option.k_diffusion-only").forEach((option) => {
|
||||||
option.style.display = "none"
|
option.style.display = "none"
|
||||||
|
Loading…
Reference in New Issue
Block a user