Add GPU selection to desktop installer (#1888)

* Remove redundant code

* Add GPU picker screen to installer

* Permit jumping installation steps when visited

* Prevent sad girl from covering buttons

* Update gpu options to match availability

* Ensure install screen renders inside bounds

* Pre-select GPU detected by desktop native

* Redesign GPU selection screen

* Prevent text highlight on installer stepper

* Add translations for GPU picker

* Rename for clarity

* Remove unused code

* Update electron types

* Update locales [skip ci]

---------

Co-authored-by: huchenlei <huchenlei@proton.me>
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2024-12-17 10:26:40 +11:00
committed by GitHub
parent a441908db3
commit 601b739f75
14 changed files with 441 additions and 68 deletions

View File

@@ -141,6 +141,7 @@
"bookmark": "书签",
"box": "盒子",
"briefcase": "公文包",
"exclamation-triangle": "警告",
"file": "文件",
"folder": "文件夹",
"heart": "心",
@@ -157,6 +158,22 @@
"desktopAppSettingsDescription": "配置 ComfyUI 在桌面上的行为。您可以稍后更改这些设置。",
"desktopSettings": "桌面设置",
"failedToSelectDirectory": "选择目录失败",
"gpu": "GPU",
"gpuSelection": {
"cpuMode": "CPU 模式",
"cpuModeDescription": "CPU 模式仅适用于开发者和极少数特殊情况。",
"cpuModeDescription2": "如果你不完全确定你需要这个,请忽略这个选项并在上面选择你的 GPU。",
"customComfyNeedsPython": "在 python 设置之前ComfyUI 将无法工作",
"customInstallRequirements": "安装所有需求和依赖项(例如:自定义 torch",
"customManualVenv": "手动配置 python venv",
"customMayNotWork": "这完全不受支持,可能根本无法工作",
"customSkipsPython": "此选项跳过正常的 python 设置。",
"enableCpuMode": "启用 CPU 模式",
"mpsDescription": "Apple Metal Performance Shaders 使用 pytorch nightly 支持。",
"nvidiaDescription": "NVIDIA 设备直接支持使用 pytorch CUDA 构建。",
"selectGpu": "选择 GPU",
"selectGpuDescription": "选择你拥有的 GPU 类型"
},
"installLocation": "安装位置",
"installLocationDescription": "选择 ComfyUI 用户数据的目录。将安装一个 Python 环境到所选位置。请确保所选磁盘有足够的空间(约 15GB。",
"installLocationTooltip": "ComfyUI 的用户数据目录。存储:\n- Python 环境\n- 模型\n- 自定义节点\n",