Merge pull request #1584 from easydiffusion/beta

Beta
This commit is contained in:
cmdr2 2023-09-13 18:14:26 +05:30 committed by GitHub
commit d12877987f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,6 @@ import shutil
from pathlib import Path
from pprint import pprint
from rich.console import Console
from rich.panel import Panel
os_name = platform.system()
modules_to_check = {
@ -217,16 +214,16 @@ def get_config():
def setup_amd_environment():
if not os.access("/dev/kfd", os.W_OK):
Console().print(
Panel(
"\n"
+ "[black]EasyDiffusion has no write access to /dev/kfd.\n\n"
print(
"#########################################################################\n"
+ "# EasyDiffusion has no write access to /dev/kfd. #\n"
+ "#########################################################################\n"
+ "\n"
+ "Without this, the ROCm driver will probably not be able to initialize the GPU and EasyDiffusion will use the CPU for rendering.\n"
+ f"Follow the instructions on this site to configure the access:\n"
+ f"[bold yellow underline]https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux#access-permissions\n",
title="Missing write access to /dev/kfd",
style="white on red",
)
+ "\n"
+ "Follow the instructions on this site to configure the access:\n"
+ "https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux#access-permissions\n"
+ "\n"
)
gpus = list(filter(lambda x: ("amdgpu" in x), open("/proc/bus/pci/devices", "r").readlines()))