Tohrusky / Final2x

2^x Image Super-Resolution

Home Page:https://final2x.tohru.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]It works fine when I use cpu, but I get an error when using gpu

mangic opened this issue · comments

commented

Describe the bug | 描述错误 | BUGの説明

It works fine when I use cpu, but I get an error when using gpu.
image
image

Context | 运行环境 | バックグラウンド

  • system: [win7_X64]

Error log | 报错日志 | ログ

{"gpuid":0,"inputpath":["C:\Users\Administrator\Downloads\微信图片_20230708143021.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"C:\Users\Administrator\Downloads","targetscale":0,"tta":false}
2023-07-08 14:55:22.113 | INFO | main:main:57 - projectPATH: C:\Users\Administrator\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-08 14:55:22.114 | INFO | main:main:70 - config loaded
2023-07-08 14:55:22.114 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-08 14:55:22.114 | INFO | src.SRFactory.SRBaseClass:init:35 - SRBaseClass init
vkCreateInstance failed -9
vkCreateInstance failed -9
2023-07-08 14:55:22.138 | ERROR | src.SRFactory.REALCUGAN:init:14 - An error has been caught in function 'init', process 'MainProcess' (16896), thread 'MainThread' (9556):
Traceback (most recent call last):
File "main.py", line 87, in
File "main.py", line 78, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 26, in getSR

File "src\SRFactory\REALCUGAN.py", line 14, in init
File "src\SRFactory\REALCUGAN.py", line 61, in _init_SR_class
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 78, in init
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 96, in _set_parameters
RuntimeError: Caught an unknown exception!
2023-07-08 14:55:22.142 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (16896), thread 'MainThread' (9556):
Traceback (most recent call last):
File "main.py", line 87, in
File "main.py", line 78, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 26, in getSR
File "src\SRFactory\REALCUGAN.py", line 14, in init
File "src\SRFactory\REALCUGAN.py", line 61, in _init_SR_class
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 78, in init
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 96, in _set_parameters
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "main.py", line 87, in
File "main.py", line 78, in main
File "src\SRqueue.py", line 23, in SR_queue
File "loguru_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\SRFactory.py", line 26, in getSR
File "src\SRFactory\REALCUGAN.py", line 14, in init
File "loguru_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\REALCUGAN.py", line 61, in _init_SR_class
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 78, in init
File "realcugan_ncnn_py\realcugan_ncnn_vulkan.py", line 96, in _set_parameters
RuntimeError: Caught an unknown exception!
[16896] Failed to execute script 'main' due to unhandled exception!
CLOSE CODE:3221225477

commented

Hello @mangic, your issue has been closed because because the title does not conform to our specification.

你好 @mangic,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为标题不符合规范而被自动关闭。

こんにちは、@mangicさん、タイトルが仕様に準拠していないため、ご提案いただいた問題はクローズされました。

commented

Hello @mangic, your issue has been closed because because the title does not conform to our specification.

你好 @mangic,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为标题不符合规范而被自动关闭。

こんにちは、@mangicさん、タイトルが仕様に準拠していないため、ご提案いただいた問題はクローズされました。