n00mkrad / cupscale

Image Upscaling GUI based on ESRGAN
MIT License
2.16k stars 111 forks source link

RealESRGAN (NCNN) crashes cupscale after a few seconds of loading (AMD GPU) #89

Open radry opened 3 years ago

radry commented 3 years ago

1) Start cupscale 2) Load random image 3) select RealESRGAN (NCNN) as AI 4) select realesrgan-x4plus as model 5) start converting

Cupscale crashed after a few seconds of "loading RealESRGAN". Dependencies are all green and fullfilled. Using ESRGAN (NCNN) as AI works fine.

Session Log:

10-19-2021 20:4:32: Arg: C:\videoedit\Cupscale 1.39.0f1\Cupscale.exe 10-19-2021 20:4:33: Failed to initialize NvApi: Die DLL "nvapi64": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden. Ignore this if you don't have an Nvidia GPU. 10-19-2021 20:4:33: [DepCheck] CMD: /C python -V 10-19-2021 20:4:33: [DepCheck] System Python Check Output: Python 3.8.7 10-19-2021 20:4:33: [DepCheck] Sys Python Ver: Python 3.8.7 10-19-2021 20:4:33: [Servers] Ping to nmkd-hz.de: 24 ms 10-19-2021 20:4:33: Parsing Patrons from CSV... 10-19-2021 20:4:33: Found 15 Gold Patrons, 291 Silver Patrons 10-19-2021 20:4:33: [Servers] Ping to nmkd-cb.de: 135 ms 10-19-2021 20:4:33: [Servers] Closest Server: Germany (Nürnberg) (24 ms) 10-19-2021 20:4:55: [MainUI] Dropped 1 file(s), first = C:\videoedit\vlcsnap-2021-10-19-20h00m36s731.png 10-19-2021 20:4:55: [ImgProc] Converting C:\videoedit\vlcsnap-2021-10-19-20h00m36s731.png to PngRaw, DelSrc: False, Fill: True, Ext: UseNew 10-19-2021 20:4:55: [ImgProc] Color depth of vlcsnap-2021-10-19-20h00m36s731.png is 24. 10-19-2021 20:4:55: [ImgProc] Written image to C:\videoedit\Cupscale 1.39.0f1\CupscaleData\loaded-img\temp.png 10-19-2021 20:4:57: [ImgProc] Preprocessing C:\videoedit\Cupscale 1.39.0f1\CupscaleData\img-in\vlcsnap-2021-10-19-20h00m36s731.png - Fill Alpha: True 10-19-2021 20:4:57: [ImgProc] Color depth of vlcsnap-2021-10-19-20h00m36s731.png is 24. 10-19-2021 20:4:57: ConvertNcnnModel: C:\videoedit\Cupscale 1.39.0f1\CupscaleData\models\ESRGAN\realesrgan-x4plus.ncnn 10-19-2021 20:4:57: [ESRGAN] NCNN Model is ready: C:\videoedit\Cupscale 1.39.0f1\CupscaleData\models\ESRGAN\realesrgan-x4plus.ncnn 10-19-2021 20:4:57: [CMD] /C cd /D "C:\videoedit\Cupscale 1.39.0f1\CupscaleData\bin\realesrgan-ncnn" & realesrgan-ncnn-vulkan.exe -i "C:\videoedit\Cupscale 1.39.0f1\CupscaleData\img-in" -o "C:\videoedit\Cupscale 1.39.0f1\CupscaleData\img-out" -g 0 -m "C:\videoedit\Cupscale 1.39.0f1\CupscaleData\models\ESRGAN\realesrgan-x4plus.ncnn" -n esrgan-x4 -s 4 -t 128 10-19-2021 20:4:57: [NCNN] [0 Radeon RX 590 Series] queueC=1[2] queueG=0[1] queueT=2[2] 10-19-2021 20:4:57: [NCNN] [0 Radeon RX 590 Series] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0 10-19-2021 20:4:57: [NCNN] [0 Radeon RX 590 Series] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/1 10-19-2021 20:4:57: [NCNN] [0 Radeon RX 590 Series] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1 10-19-2021 20:5:1: [NCNN] 10,00%

EDIT:

Using the shell command directly in a command shell works fine. Something crashes cupscale and there is no indication to what it might be.

GeniusBroccoli commented 2 years ago

Same for me, but I have rare system with old radeon 200 series gpu.