From 505db279d87a77e743b7f83ac6e5f815fa1e8f56 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sat, 20 Dec 2025 20:56:24 -0500 Subject: [PATCH] Gate AI upscale on ncnn backend --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b89fd25..ec90fdf 100644 --- a/main.go +++ b/main.go @@ -13135,7 +13135,7 @@ func buildUpscaleView(state *appState) fyne.CanvasObject { // Check AI availability on first load if state.upscaleAIBackend == "" { state.upscaleAIBackend = detectAIUpscaleBackend() - state.upscaleAIAvailable = state.upscaleAIBackend != "" + state.upscaleAIAvailable = state.upscaleAIBackend == "ncnn" } if len(state.filterActiveChain) > 0 { state.upscaleFilterChain = append([]string{}, state.filterActiveChain...) @@ -13529,8 +13529,12 @@ func buildUpscaleView(state *appState) fyne.CanvasObject { widget.NewLabel("Note: AI upscaling is slower but produces higher quality results"), )) } else { + backendNote := "Real-ESRGAN not detected. Install for enhanced quality:" + if state.upscaleAIBackend == "python" { + backendNote = "Python Real-ESRGAN detected, but the ncnn backend is required for now." + } aiSection = widget.NewCard("AI Upscaling", "Not Available", container.NewVBox( - widget.NewLabel("Real-ESRGAN not detected. Install for enhanced quality:"), + widget.NewLabel(backendNote), widget.NewLabel("https://github.com/xinntao/Real-ESRGAN"), widget.NewLabel("Traditional scaling methods will be used."), ))