mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-04 09:05:47 +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["GIT"] = [f"{dir}/bin/git"]
|
||||||
env_entries["venv_dir"] = ["-"]
|
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"
|
env_entries["COMMANDLINE_ARGS"][0] += " --always-cpu"
|
||||||
|
|
||||||
if OS_NAME == "Darwin":
|
if OS_NAME == "Darwin":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user