mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
Added conda-forge channel to environment.yaml to make it so nodejs and yarn can be installed with it as part of the environment for the UI. (#1655)
This commit is contained in:
commit
94abf30e99
@ -27,6 +27,7 @@ general:
|
||||
gpu: 0
|
||||
outdir: outputs
|
||||
default_model: "Stable Diffusion v1.5"
|
||||
base_model: "Stable Diffusion v1.5"
|
||||
default_model_config: "configs/stable-diffusion/v1-inference.yaml"
|
||||
default_model_path: "models/ldm/stable-diffusion-v1/Stable Diffusion v1.5.ckpt"
|
||||
use_sd_concepts_library: True
|
||||
|
@ -15,6 +15,7 @@ name: ldm
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
channels:
|
||||
- conda-forge
|
||||
- pytorch
|
||||
- defaults
|
||||
- nvidia
|
||||
|
@ -1502,7 +1502,7 @@ def load_sd_model(model_name: str):
|
||||
"""Loads Stable Diffusion model by name"""
|
||||
ckpt_path = st.session_state.defaults.general.default_model_path
|
||||
|
||||
if model_name != st.session_state.defaults.general.default_model:
|
||||
if model_name != st.session_state.defaults.general.base_model:
|
||||
ckpt_path = os.path.join("models", "custom", f"{model_name}.ckpt")
|
||||
|
||||
if st.session_state.defaults.general.optimized:
|
||||
|
Loading…
Reference in New Issue
Block a user