feat(gpu): add GPU support for comfyui, photoprism, libretranslate

Added var_gpu=yes to ct scripts:
- comfyui.sh - Stable Diffusion (CRITICAL: had GPU selection but no passthrough!)
- photoprism.sh - TensorFlow face detection + FFmpeg transcoding
- libretranslate.sh - PyTorch ML translation

Added setup_hwaccel to install scripts:
- comfyui-install.sh
- photoprism-install.sh
- libretranslate-install.sh

These apps use PyTorch/TensorFlow for ML and benefit significantly
from GPU acceleration (Intel XPU, AMD ROCm, NVIDIA CUDA).
This commit is contained in:
CanbiZ
2025-12-17 10:20:11 +01:00
parent 2578e365f4
commit b73b83d45d
7 changed files with 16 additions and 10 deletions

View File

@ -13,6 +13,7 @@ var_disk="${var_disk:-25}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_gpu="${var_gpu:-yes}"
header_info "$APP"
variables

View File

@ -13,6 +13,7 @@ var_disk="${var_disk:-20}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_gpu="${var_gpu:-yes}"
header_info "$APP"
variables

View File

@ -13,6 +13,7 @@ var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_gpu="${var_gpu:-yes}"
header_info "$APP"
variables

View File

@ -12,6 +12,7 @@ catch_errors
setting_up_container
network_check
update_os
setup_hwaccel
echo
echo "${TAB3}Choose the GPU type for ComfyUI:"

View File

@ -12,6 +12,7 @@ catch_errors
setting_up_container
network_check
update_os
setup_hwaccel
msg_info "Installing dependencies"
$STD apt install -y \

View File

@ -12,6 +12,7 @@ catch_errors
setting_up_container
network_check
update_os
setup_hwaccel
msg_info "Installing Dependencies (Patience)"
$STD apt install -y \