mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-02 16:16:10 +02:00
Enable rendering only the CPU
This commit is contained in:
parent
b6ba782c35
commit
5a5d37ba52
@ -268,7 +268,9 @@ def get_env():
|
||||
env_entries["GIT"] = [f"{dir}/bin/git"]
|
||||
env_entries["venv_dir"] = ["-"]
|
||||
|
||||
if OS_NAME in ("Windows", "Linux") and not has_discrete_graphics_card():
|
||||
if config.get("render_devices", "auto") == "cpu" or (
|
||||
OS_NAME in ("Windows", "Linux") and not has_discrete_graphics_card()
|
||||
):
|
||||
env_entries["COMMANDLINE_ARGS"][0] += " --always-cpu"
|
||||
|
||||
if OS_NAME == "Darwin":
|
||||
|
Loading…
x
Reference in New Issue
Block a user