In GOLANG We Trust
I'm open to collaborate on interesting projects~
Skill Set 💪
These are some of the major technologies that I use or have worked on in the past:
Programming Languages
Libraries and Frameworks
Env
2^x Image Super-Resolution
Home Page: https://final2x.tohru.top
License: BSD 3-Clause "New" or "Revised" License
I'm open to collaborate on interesting projects~
Skill Set 💪
These are some of the major technologies that I use or have worked on in the past:
Programming Languages
Libraries and Frameworks
Env
1.2.0, 1.1.5, 1.0.2, beta
macOS arm64 (M1,M2...)
Mac Os Sonoma 14.4.1
Can't open arm64 version on Macbook Air M1, it says 'Application is damaged'. Intel x64 version opens just fine
There is no log as application doesn't open
No response
在 Mac OS X 10.15.7 中不能正常运行。
Steps to reproduce the behavior:
{"gpuid":-1,"inputpath":["/Users/WangChunsheng/Desktop/WechatIMG7.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":-1,"outputpath":"/Users/WangChunsheng/Downloads","targetscale":0,"tta":false}
[722] Error loading Python lib '/Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib': dlopen: dlopen(/Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib, 10): Symbol not found: _preadv
Referenced from: /Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib (which was built for Mac OS X 11.7)
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib
CLOSE CODE:255
python 版本 是 3.10.x
与现有问题无关
请求对视频处理的支持
此程序无法处理频视频,需要拆帧后小批量处理,但视频的帧率满高的不方便
test
无
1.2.00
Windows x64
Windows 11 23H2
转换图片输入后即报错
尝试过tif png jpg都会出现
初次安装后放入图片立即出现报错
2024-01-18 21:54:39.630 | ERROR | Final2x_core.src.SRFactory.SRBaseClass:process:77 - An error has been caught in function 'process', process 'MainProcess' (6796), thread 'MainThread' (6000):
Traceback (most recent call last):
File "Final2x_core_main_.py", line 82, in
File "Final2x_core_main_.py", line 73, in main
File "Final2x_core\src\SRqueue.py", line 71, in SR_queue
File "Final2x_core\src\SRFactory\SRBaseClass.py", line 77, in process
File "Final2x_core\src\SRFactory\SRBaseClass.py", line 95, in _process_n
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 181, in process_cv2
cv2.error: OpenCV(4.8.1) d:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::anonymous-namespace'::CvtHelper<struct cv::impl::
anonymous namespace'::Set<3,4,-1>,struct cv::impl::A0xd8611878::Set<3,4,-1>,struct cv::impl::A0xd8611878::Set<0,2,5>,3>::CvtHelper(const class cv::InputArray &,const class cv::OutputArray &,int)'
Invalid number of channels in input image:
'VScn::contains(scn)'
where
'scn' is 6
Traceback (most recent call last):
File "Final2x_core_main.py", line 82, in
File "Final2x_core_main.py", line 73, in main
File "Final2x_core\src\SRqueue.py", line 81, in SR_queue
cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:1113: error: (-215:Assertion failed) !image.empty() in function 'cv::imencode'
[6796] Failed to execute script 'main' due to unhandled exception!
CLOSE CODE:3221226505
No response
It works fine when I use cpu, but I get an error when using gpu.
{"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
No
Thanks for your great work!
The electron app size can be optimized. there are plenty of useless npm dependencies be packaged into the app
According to https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling and electron-builder doc, all the dependencies are bundled by vite and there is no need to package them into app.
The recommended approach is simply moving all the dependencies, except for native modules, from the dependencies
to the devDependencies
in the package.json
.
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
{"gpuid":1,"inputpath":["C:\\Users\\chenx\\Desktop\\Snipaste_2023-07-02_08-04-43.png"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":-1,"outputpath":"C:\\Users\\chenx\\Desktop","targetscale":0,"tta":false}
2023-07-10 21:08:18.400 | INFO | __main__:main:58 - projectPATH: C:\Users\chenx\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-10 21:08:18.400 | INFO | __main__:main:71 - config loaded
2023-07-10 21:08:18.400 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-10 21:08:18.401 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 NVIDIA GeForce RTX 4070 Ti] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 4070 Ti] bugsbn1=0 bugbilz=65 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 4070 Ti] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 4070 Ti] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-10 21:08:18.522 | ERROR | src.SRFactory.REALCUGAN:__init__:14 - An error has been caught in function '__init__', process 'MainProcess' (26452), thread 'MainThread' (14184):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, 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-10 21:08:18.524 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (26452), thread 'MainThread' (14184):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, 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 88, in <module>
File "__main__.py", line 79, 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!
[26452] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:3221225477
Add any other context and screenshots to help explain your problem.
After conversion, the enlarged image loses its transparent layer.
I used a png image with a transparent layer, like this one.
And after conversion, I got the enlarged image with a black background color, which means that the transparent layer is lost.
{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\热词系列\\知识增加-小丑.png"],"model":"RealESRGAN-anime","modelscale":4,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\热词系列","targetscale":0,"tta":false}
2023-07-12 09:03:11.683 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:03:11.684 | INFO | __main__:main:71 - config loaded
2023-07-12 09:03:11.684 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:03:11.684 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:03:14.594 | INFO | src.SRFactory.REALESRGAN:_init_SR_class:66 - RealESRGAN model loaded
2023-07-12 09:03:14.594 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:03:14.596 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png, save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��.png
0.00%
2023-07-12 09:03:15.910 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:03:15.921 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png
2023-07-12 09:03:15.943 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\热词系列\\知识增加-小丑.png"],"model":"RealESRGAN-animevideov3","modelscale":4,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\热词系列","targetscale":0,"tta":false}
2023-07-12 09:04:15.404 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:04:15.404 | INFO | __main__:main:71 - config loaded
2023-07-12 09:04:15.405 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:04:15.405 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:04:17.073 | INFO | src.SRFactory.REALESRGAN:_init_SR_class:66 - RealESRGAN model loaded
2023-07-12 09:04:17.073 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:04:17.074 | WARNING | src.SRqueue:SR_queue:36 - Image already exists: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��.png
2023-07-12 09:04:17.074 | WARNING | src.SRqueue:SR_queue:42 - Try to save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(1).png
2023-07-12 09:04:17.076 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png, save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(1).png
0.00%
2023-07-12 09:04:17.290 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:04:17.314 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png
2023-07-12 09:04:17.319 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\热词系列\\知识增加-小丑.png"],"model":"RealESRGAN-animevideov3","modelscale":4,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\热词系列","targetscale":0,"tta":true}
2023-07-12 09:05:29.989 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:05:29.990 | INFO | __main__:main:71 - config loaded
2023-07-12 09:05:29.990 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:05:29.990 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=32 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:05:31.807 | INFO | src.SRFactory.REALESRGAN:_init_SR_class:66 - RealESRGAN model loaded
2023-07-12 09:05:31.807 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:05:31.808 | WARNING | src.SRqueue:SR_queue:36 - Image already exists: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��.png
2023-07-12 09:05:31.808 | WARNING | src.SRqueue:SR_queue:42 - Try to save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(1).png
2023-07-12 09:05:31.808 | WARNING | src.SRqueue:SR_queue:36 - Image already exists: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(1).png
2023-07-12 09:05:31.808 | WARNING | src.SRqueue:SR_queue:42 - Try to save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(2).png
2023-07-12 09:05:31.809 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png, save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\4x-֪ʶ����-С��(2).png
0.00%
2023-07-12 09:05:32.770 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:05:32.785 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png
2023-07-12 09:05:32.790 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\热词系列\\知识增加-小丑.png"],"model":"Waifu2x-upconv_7_anime_style_art_rgb","modelscale":2,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\热词系列","targetscale":0,"tta":true}
2023-07-12 09:06:14.742 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:06:14.742 | INFO | __main__:main:71 - config loaded
2023-07-12 09:06:14.743 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:06:14.743 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=101 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:06:16.450 | INFO | src.SRFactory.WAIFU2X:_init_SR_class:74 - Waifu2x model initialized
2023-07-12 09:06:16.451 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:06:16.452 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png, save to: D:\Downloads\Bվ�����\�ȴ�ϵ��\outputs\2x-֪ʶ����-С��.png
2023-07-12 09:06:17.186 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:06:17.189 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\�ȴ�ϵ��\֪ʶ����-С��.png
2023-07-12 09:06:17.190 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\小黄脸\\爱心.png"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\小黄脸","targetscale":0,"tta":true}
2023-07-12 09:12:13.317 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:12:13.318 | INFO | __main__:main:71 - config loaded
2023-07-12 09:12:13.318 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:12:13.319 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=40 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:12:15.759 | INFO | src.SRFactory.REALCUGAN:_init_SR_class:63 - RealCUGAN model initialized
2023-07-12 09:12:15.760 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:12:15.761 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\С����\����.png, save to: D:\Downloads\Bվ�����\С����\outputs\2x-����.png
2023-07-12 09:12:16.386 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:12:16.389 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\С����\����.png
2023-07-12 09:12:16.393 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505{"gpuid":0,"inputpath":["D:\\Downloads\\B站表情包\\小黄脸\\爱心.png"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"D:\\Downloads\\B站表情包\\小黄脸","targetscale":0,"tta":true}
2023-07-12 09:16:18.203 | INFO | __main__:main:58 - projectPATH: D:\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-12 09:16:18.204 | INFO | __main__:main:71 - config loaded
2023-07-12 09:16:18.204 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-12 09:16:18.204 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 Intel(R) Iris(R) Plus Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[0 Intel(R) Iris(R) Plus Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 Intel(R) Iris(R) Plus Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 Intel(R) Iris(R) Plus Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-12 09:16:20.570 | INFO | src.SRFactory.REALCUGAN:_init_SR_class:63 - RealCUGAN model initialized
2023-07-12 09:16:20.570 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-12 09:16:20.571 | INFO | src.SRqueue:SR_queue:63 - Processing: D:\Downloads\Bվ�����\С����\����.png, save to: D:\Downloads\Bվ�����\С����\outputs\2x-����.png
2023-07-12 09:16:21.220 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-12 09:16:21.222 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: D:\Downloads\Bվ�����\С����\����.png
2023-07-12 09:16:21.226 | SUCCESS | __main__:main:81 - ______SR_COMPLETED______
CLOSE CODE:3221226505
No more additional context.
Windows安装版强制安装在系统盘,无法更改安装位置
添加安装位置选择功能
No response
目前三端ui均使用带边框,不美观。
需要全部改成无边框。重写退出、最小化、全屏幕按钮。
/
1.1.5
Windows x64
22H2
[{"label":"CPU: Core™ i5-10600KF","value":-1},{"label":"GPU 0: NVIDIA GeForce RTX 3070","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["F:\\Pictures\\hya.jpg"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\\Users\\dio07\\Desktop","targetscale":0,"tta":false}
2023-10-14 09:46:46.628 | INFO | __main__:main:58 - projectPATH: D:\Program Files\Final2x\resources\app\resources\Final2x-core
2023-10-14 09:46:46.628 | INFO | __main__:main:71 - config loaded
2023-10-14 09:46:46.628 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-10-14 09:46:46.628 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
vkCreateInstance failed -9
vkCreateInstance failed -9
2023-10-14 09:46:46.728 | ERROR | src.SRFactory.REALESRGAN:__init__:14 - An error has been caught in function '__init__', process 'MainProcess' (18180), thread 'MainThread' (2860):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
> File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
2023-10-14 09:46:46.728 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (18180), thread 'MainThread' (2860):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
> File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, 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 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
[18180] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:3221225477
No response
Cannot use the graphics card.
Steps to reproduce the behavior:
0%
GPU: NVIDIA GeForce GTX 1070
Waifu2x-upconv_7_photo
2
0
0
G:\
Log
{"gpuid":1,"inputpath":["G:\\1.jpg"],"model":"Waifu2x-upconv_7_photo","modelscale":2,"modelnoise":0,"outputpath":"G:\\","targetscale":0,"tta":true}
2023-07-08 16:42:13.430 | INFO | __main__:main:57 - projectPATH: F:\Downloads\Final2x\resources\app\resources\Final2x-core
2023-07-08 16:42:13.431 | INFO | __main__:main:70 - config loaded
2023-07-08 16:42:13.431 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-08 16:42:13.431 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 NVIDIA GeForce GTX 1070] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce GTX 1070] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce GTX 1070] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/1
[0 NVIDIA GeForce GTX 1070] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-08 16:42:13.532 | ERROR | src.SRFactory.WAIFU2X:__init__:14 - An error has been caught in function '__init__', process 'MainProcess' (1924), thread 'MainThread' (16040):
Traceback (most recent call last):
File "__main__.py", line 87, in <module>
File "__main__.py", line 78, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 49, in getSR
> File "src\SRFactory\WAIFU2X.py", line 14, in __init__
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in __init__
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
2023-07-08 16:42:13.535 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (1924), thread 'MainThread' (16040):
Traceback (most recent call last):
File "__main__.py", line 87, in <module>
File "__main__.py", line 78, in main
> File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 49, in getSR
File "src\SRFactory\WAIFU2X.py", line 14, in __init__
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in __init__
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "__main__.py", line 87, in <module>
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 49, in getSR
File "src\SRFactory\WAIFU2X.py", line 14, in __init__
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in __init__
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
[1924] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:3221225477
Add any other context and screenshots to help explain your problem.
Final2x-core opens the output directory after running. This behavior is very undesirable in some cases. If running multiple instances in parallel, Final2x-core will repeatedly try to open the same folder, resulting in many Windows errors.
Please add an option to disable this behavior.
Please add an option to disable opening the "outputs" folder.
No response
A clear and concise description of what the bug is.
arm64的dmg,在macos 13.4.1安装后点击打开,弹窗app文件损坏无法打开,移到废纸篓。
Steps to reproduce the behavior:
your error log
Add any other context and screenshots to help explain your problem.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what you want to happen.
Add any other context or screenshots about the feature request here.
1.15
Windows x64
Win10
No image comes out after third time while using TTA.
Each time of third re-creation. Some times even the second time will disappear as well.
2023-08-24 11:00:52.088 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 50.0% ]
2023-08-24 11:01:00.043 | ERROR | src.SRFactory.SRBaseClass:process:78 - An error has been caught in function 'process', process 'MainProcess' (24248), thread 'MainThread' (4188):
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, in main
File "src\SRqueue.py", line 74, in SR_queue
File "src\SRFactory\SRBaseClass.py", line 78, in process
File "src\SRFactory\SRBaseClass.py", line 96, in _process_n
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 172, in process_cv2
MemoryError
2023-08-24 11:01:00.662 | ERROR | src.SRFactory.SRBaseClass:process:79 - An error has been caught in function 'process', process 'MainProcess' (24248), thread 'MainThread' (4188):
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, in main
File "src\SRqueue.py", line 74, in SR_queue
File "src\SRFactory\SRBaseClass.py", line 79, in process
File "src\SRFactory\SRBaseClass.py", line 89, in _process_downscale
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4062: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, in main
File "src\SRqueue.py", line 84, in SR_queue
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:1109: error: (-215:Assertion failed) !image.empty() in function 'cv::imencode'
[24248] Failed to execute script 'main' due to unhandled exception!
No response
暂时只能拖拽上传!
直接操作N-upload的filelist,调用electron dialog实现点击上传。
/
1.1.5
Windows x64
Windows 10 Pro 22H2
Short after start program stop with Pocessing failed.
Could it be that my GT 610 ist too old?
1.2.0
Windows arm64
23H2 22631.3085
图片文件偏大时,不显示进度,只显示100%
图片文件小时,只显示50%和100%
1.运行软件
2.选择PNG或JPG图片
3.GPU选择Auto
4.TTA打开
5.自定义Scale:2
Log
[{"label":"CPU: ™ 8cx Gen 3","value":-1},{"label":"GPU 0: Qualcomm(R) Adreno(TM) 8cx Gen 3","value":0},{"label":"GPU 1: Virtual Display Device","value":1},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["C:\Users\11593\Downloads\outputs\2.0x-屏幕截图 2023-09-26 215414.png"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\Users\11593\Downloads","targetscale":2,"tta":true}
2024-01-30 22:42:01.023 | INFO | main:main:55 - projectPATH: C:\Users\11593\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2024-01-30 22:42:01.024 | INFO | main:main:70 - config loaded
2024-01-30 22:42:01.024 | DEBUG | main:main:71 - C:\Users\11593\Downloads
2024-01-30 22:42:01.026 | INFO | Final2x_core.src.SRFactory.SRBaseClass:_set_sr_n:50 - sr_n set to 1
2024-01-30 22:42:01.026 | INFO | Final2x_core.src.SRFactory.SRBaseClass:init:32 - SRBaseClass init
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] queueC=1[8] queueG=0[4] queueT=0[4]
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] fp16-p/s/a=1/0/0 int8-p/s/a=1/0/0
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] queueC=1[8] queueG=0[4] queueT=0[4]
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] bugsbn1=0 bugbilz=3 bugcopc=0 bugihfa=0
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] fp16-p/s/a=1/1/1 int8-p/s/a=1/0/0
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] subgroup=4 basic=1 vote=1 ballot=1 shuffle=1
2024-01-30 22:42:04.252 | INFO | Final2x_core.src.SRFactory.REALESRGAN:_init_SR_class:58 - RealESRGAN model loaded
2024-01-30 22:42:04.254 | INFO | Final2x_core.src.SRqueue:SR_queue:22 - Processing------[ 0.0% ]
2024-01-30 22:42:04.267 | WARNING | Final2x_core.src.SRqueue:SR_queue:54 - 4 channels image detected.
2024-01-30 22:42:04.268 | INFO | Final2x_core.src.SRqueue:SR_queue:70 - Processing: C:\Users\11593\Downloads\outputs\2.0x-��Ļ��ͼ 2023-09-26 215414.png, save to: C:\Users\11593\Downloads\outputs\2.0x-2.0x-��Ļ��ͼ 2023-09-26 215414.png
0.00%
2024-01-30 22:42:16.345 | INFO | Final2x_core.src.utils.progressLog:printProgress:29 - Processing------[ 50.0% ]
0.00%
2024-01-30 22:42:29.282 | INFO | Final2x_core.src.utils.progressLog:printProgress:29 - Processing------[ 100.0% ]
2024-01-30 22:42:29.294 | SUCCESS | Final2x_core.src.SRqueue:SR_queue:83 - Process_Completed: C:\Users\11593\Downloads\outputs\2.0x-��Ļ��ͼ 2023-09-26 215414.png
2024-01-30 22:42:29.377 | SUCCESS | main:main:75 - SR_COMPLETED
CLOSE CODE:3221226505
[{"label":"CPU: ™ 8cx Gen 3","value":-1},{"label":"GPU 0: Qualcomm(R) Adreno(TM) 8cx Gen 3","value":0},{"label":"GPU 1: Virtual Display Device","value":1},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["C:\Users\11593\Downloads\2859EEF80E898594799B57330741CA2E.jpg"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\Users\11593\Downloads","targetscale":2,"tta":true}
2024-01-30 22:42:55.130 | INFO | main:main:55 - projectPATH: C:\Users\11593\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2024-01-30 22:42:55.131 | INFO | main:main:70 - config loaded
2024-01-30 22:42:55.131 | DEBUG | main:main:71 - C:\Users\11593\Downloads
2024-01-30 22:42:55.131 | INFO | Final2x_core.src.SRFactory.SRBaseClass:_set_sr_n:50 - sr_n set to 1
2024-01-30 22:42:55.132 | INFO | Final2x_core.src.SRFactory.SRBaseClass:init:32 - SRBaseClass init
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] queueC=1[8] queueG=0[4] queueT=0[4]
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] bugsbn1=0 bugbilz=115 bugcopc=0 bugihfa=0
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] fp16-p/s/a=1/0/0 int8-p/s/a=1/0/0
[0 Microsoft Direct3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] queueC=1[8] queueG=0[4] queueT=0[4]
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] bugsbn1=0 bugbilz=105 bugcopc=0 bugihfa=0
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] fp16-p/s/a=1/1/1 int8-p/s/a=1/0/0
[1 Microsoft Direct3D12 (Microsoft Basic Render Driver)] subgroup=4 basic=1 vote=1 ballot=1 shuffle=1
2024-01-30 22:42:58.392 | INFO | Final2x_core.src.SRFactory.REALESRGAN:_init_SR_class:58 - RealESRGAN model loaded
2024-01-30 22:42:58.393 | INFO | Final2x_core.src.SRqueue:SR_queue:22 - Processing------[ 0.0% ]
2024-01-30 22:42:58.394 | WARNING | Final2x_core.src.SRqueue:SR_queue:29 - Image already exists: C:\Users\11593\Downloads\outputs\2.0x-2859EEF80E898594799B57330741CA2E.png
2024-01-30 22:42:58.395 | WARNING | Final2x_core.src.SRqueue:SR_queue:34 - Try to save to: C:\Users\11593\Downloads\outputs\2.0x-2859EEF80E898594799B57330741CA2E(1).png
2024-01-30 22:42:58.425 | INFO | Final2x_core.src.SRqueue:SR_queue:70 - Processing: C:\Users\11593\Downloads\2859EEF80E898594799B57330741CA2E.jpg, save to: C:\Users\11593\Downloads\outputs\2.0x-2859EEF80E898594799B57330741CA2E(1).png
0.00%
2.38%
4.76%
7.14%
9.52%
11.90%
14.29%
16.67%
19.05%
21.43%
23.81%
26.19%
28.57%
30.95%
33.33%
35.71%
38.10%
40.48%
42.86%
45.24%
47.62%
50.00%
52.38%
54.76%
57.14%
59.52%
61.90%
64.29%
66.67%
69.05%
71.43%
73.81%
76.19%
78.57%
80.95%
83.33%
85.71%
88.10%
90.48%
92.86%
95.24%
97.62%
2024-01-30 22:55:33.979 | INFO | Final2x_core.src.utils.progressLog:printProgress:29 - Processing------[ 100.0% ]
2024-01-30 22:55:34.460 | SUCCESS | Final2x_core.src.SRqueue:SR_queue:83 - Process_Completed: C:\Users\11593\Downloads\2859EEF80E898594799B57330741CA2E.jpg
2024-01-30 22:55:34.564 | SUCCESS | main:main:75 - SR_COMPLETED
CLOSE CODE:3221226505
无
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
0%
CPU: Core™ i7-4770
RealCUGAN-pro
2
0
Please Input
Please Input
C:\Users\Administrator\Downloads
Log
[{"label":"CPU: Core™ i7-4770","value":-1},{"label":"GPU 0: Intel(R) HD Graphics 4600","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":-1,"inputpath":["C:\\Users\\Administrator\\Downloads\\微信图片_20230719074724.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"C:\\Users\\Administrator\\Downloads","targetscale":null,"tta":false}
2023-07-19 07:48:41.720 | INFO | __main__:main:58 - projectPATH: C:\Users\Administrator\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-19 07:48:41.720 | ERROR | src.utils.getConfig:targetscale:125 - targetscale must be int or float
2023-07-19 07:48:41.721 | ERROR | src.utils.getConfig:getConfigfromBase64toJson:61 - An error has been caught in function 'getConfigfromBase64toJson', process 'MainProcess' (7460), thread 'MainThread' (2240):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 63, in main
> File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
2023-07-19 07:48:41.722 | ERROR | __main__:main:63 - An error has been caught in function 'main', process 'MainProcess' (7460), thread 'MainThread' (2240):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
> File "__main__.py", line 63, in main
File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 63, in main
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
[7460] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:1
Add any other context and screenshots to help explain your problem.
Processing the image will cause an error.
Steps to reproduce the behavior:
bootstrap()
File "C:\Users\goalo\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core\cv2\__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "importlib\__init__.py", line 127, in import_module
applySysPathWorkaround = True
ImportError: DLL load failed while importing cv2: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "__main__.py", line 12, in <module>
ModuleNotFoundError: No module named 'Final2x_core'
[16524] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:1
Add any other context and screenshots to help explain your problem.
Log
[{"label":"CPU: Core™ i7-8700K","value":-1},{"label":"GPU 0: NVIDIA GeForce RTX 2060","value":0},{"label":"GPU 1: Intel(R) UHD Graphics 630","value":1},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["F:\1临时文件\final2x\final2x\2 (4).png"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"F:\1临时文件\final2x\final2x","targetscale":0,"tta":false}
ϵͳ�Ҳ���ָ����·����
CLOSE CODE:1
操作系统及环境:w处理器:lntel(R) Core(TM) i7-8700K CPU @3.70GHz 3.70 GHz
已安装的内存(RAM): 8.00 GB (7.86 GB可用)
系统类型:64位操作系统,基于x64的处理器
处理了一张图片后就这样报错了,请问大佬是什么问题?
Please support Face Restoration, it will be more useful.
https://github.com/TencentARC/GFPGAN
It works fine when I use cpu, but I get an error when using gpu.
{"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
1.1.5
Windows x64
Windows 10专业版22H219045
图片处理失败
1.打开final2x,选择模型和放大倍数
2.点击到此上传文件,选择文件上传(有时还存在图片无法拖拽的问题)
3.显示“处理失败,请点击日志查看错误信息”
PS:换了几个模型都无法处理
your error log
0%
GPU 2: NVIDIA GeForce RTX 4060 Laptop GPU
Waifu2x-upconv_7_anime_style_art_rgb
2
3
0.2
E:\
Log
[{"label":"CPU: Ryzen 9 7940H w/ Radeon 780M Graphics","value":-1},{"label":"GPU 0: OrayIddDriver Device","value":0},{"label":"GPU 1: AMD Radeon 780M Graphics","value":1},{"label":"GPU 2: NVIDIA GeForce RTX 4060 Laptop GPU","value":2},{"label":"GPU: Auto","value":114514}]
{"gpuid":2,"inputpath":["C:\Users\19963\Desktop\ab0950c1c91cc8df228a1c9056c881d.png"],"model":"Waifu2x-upconv_7_anime_style_art_rgb","modelscale":2,"modelnoise":3,"outputpath":"E:\","targetscale":0.2,"tta":false}
2023-11-28 16:27:52.859 | INFO | main:main:58 - projectPATH: C:\Users\19963\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-11-28 16:27:52.859 | INFO | main:main:71 - config loaded
2023-11-28 16:27:52.859 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-11-28 16:27:52.859 | INFO | src.SRFactory.SRBaseClass:init:35 - SRBaseClass init
[0 NVIDIA GeForce RTX 4060 Laptop GPU] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 4060 Laptop GPU] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 4060 Laptop GPU] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 4060 Laptop GPU] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
[1 AMD Radeon 780M Graphics] queueC=1[2] queueG=0[1] queueT=2[1]
[1 AMD Radeon 780M Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[1 AMD Radeon 780M Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[1 AMD Radeon 780M Graphics] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
2023-11-28 16:27:53.263 | ERROR | src.SRFactory.WAIFU2X:init:14 - An error has been caught in function 'init', process 'MainProcess' (16612), thread 'MainThread' (29344):
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 49, in getSR
File "src\SRFactory\WAIFU2X.py", line 14, in init
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in init
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
2023-11-28 16:27:53.264 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (16612), thread 'MainThread' (29344):
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 49, in getSR
File "src\SRFactory\WAIFU2X.py", line 14, in init
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in init
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "main.py", line 88, in
File "main.py", line 79, 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 49, in getSR
File "src\SRFactory\WAIFU2X.py", line 14, in init
File "loguru_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\WAIFU2X.py", line 72, in _init_SR_class
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 79, in init
File "waifu2x_ncnn_py\waifu2x_ncnn_vulkan.py", line 94, in set_parameters
RuntimeError: Caught an unknown exception!
[16612] Failed to execute script 'main' due to unhandled exception!
CLOSE CODE:3221225477
A clear and concise description of what the bug is.
// ...
/bin/sh: 1: /tmp/.mount_Final2jeBEwi/resources/app/resources/Final2x-core/Final2x-core: not found
CLOSE CODE:127
Steps to reproduce the behavior:
Add any other context and screenshots to help explain your problem.
No
Thanks for your great work!
The electron app size can be optimized. there are plenty of useless npm dependencies be packaged into the app
According to https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling and electron-builder doc, all the dependencies are bundled by vite and there is no need to package them into app.
The recommended approach is simply moving all the dependencies, except for native modules, from the dependencies
to the devDependencies
in the package.json
.
1.1.5
Windows x64
Windows 10 x64 1909
All the modules I can use properly on CPU only; the GPU-vulkan-based modules always report error messages.
I am using AMD 5700G with Vega 5000 iGPU supporting Vulkan-API up to 1.3.
the graphic driver is the latest adrenalin 23.11.1.
i have the same problem with AMD 2400G iGPU, Vega 11.
I have allocated iGPU with 4GB shared RAM.
[{"label":"CPU: Ryzen 7 5700G with Radeon Graphics","value":-1},{"label":"GPU 0: AMD Radeon(TM) Graphics","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["C:\\Users\\user\\Desktop\\9545a7303c098c0f972f6a16f81livb5.JPG"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\\Users\\user\\Desktop","targetscale":0,"tta":true}
2023-12-21 16:06:45.099 | INFO | __main__:main:58 - projectPATH: C:\Users\user\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-12-21 16:06:45.100 | INFO | __main__:main:71 - config loaded
2023-12-21 16:06:45.105 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-12-21 16:06:45.105 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 AMD Radeon(TM) Graphics] queueC=1[2] queueG=0[1] queueT=2[1]
[0 AMD Radeon(TM) Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 AMD Radeon(TM) Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 AMD Radeon(TM) Graphics] subgroup=64 basic=1 vote=1 ballot=1 shuffle=1
2023-12-21 16:06:48.681 | INFO | src.SRFactory.REALESRGAN:_init_SR_class:66 - RealESRGAN model loaded
2023-12-21 16:06:48.681 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-12-21 16:06:48.717 | INFO | src.SRqueue:SR_queue:73 - Processing: C:\Users\user\Desktop\9545a7303c098c0f972f6a16f81livb5.JPG, save to: C:\Users\user\Desktop\outputs\4x-9545a7303c098c0f972f6a16f81livb5.png
vkAllocateMemory failed -2
2023-12-21 16:06:48.804 | ERROR | src.SRFactory.SRBaseClass:process:78 - An error has been caught in function 'process', process 'MainProcess' (22824), thread 'MainThread' (37964):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
File "src\SRqueue.py", line 74, in SR_queue
> File "src\SRFactory\SRBaseClass.py", line 78, in process
File "src\SRFactory\SRBaseClass.py", line 96, in _process_n
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 188, in process_cv2
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 122, in process
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
File "src\SRqueue.py", line 84, in SR_queue
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:1109: error: (-215:Assertion failed) !image.empty() in function 'cv::imencode'
[22824] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:1
No response
I really love Final2x UI, and I think adding screenshots will allow you to have more user interested by it, because some users are looking for Waifu2x app with a good UI (and here it's a really good one). I almost didn't use Final2x because of the lack of UI screenshots.
Adding UI screenshots to README.md
No response
Describe the bug
{"gpuid":0,"inputpath":["/home/declarcall/Pictures/Image.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":-1,"outputpath":"/home/declarcall/Downloads","targetscale":0,"tta":false}
Traceback (most recent call last):
File "__main__.py", line 87, in <module>
File "__main__.py", line 56, in main
File "loguru/_logger.py", line 776, in add
File "loguru/_file_sink.py", line 194, in __init__
File "loguru/_file_sink.py", line 226, in _create_dirs
File "os.py", line 225, in makedirs
OSError: [Errno 30] Read-only file system: '/tmp/.mount_Final2WbPEaI/resources/app/resources/Final2x-core/logs'
[1745726] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:1
To Reproduce
Steps to reproduce the behavior:
1.
$ ./Final2x-ubuntu-x64-AppImage.AppImage
[1745521:0705/204133.620933:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1745579:0705/204133.875234:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1745574:0705/204134.123052:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Desktop (please complete the following information):
0%
GPU: NVIDIA GeForce GTX 1070
RealCUGAN-pro
2
0
0
G:\
Log
{"gpuid":1,"inputpath":["G:\1.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"G:\","targetscale":0,"tta":true}
2023-07-08 16:23:38.663 | INFO | main:main:57 - projectPATH: F:\Downloads\Final2x\resources\app\resources\Final2x-core
2023-07-08 16:23:38.663 | INFO | main:main:70 - config loaded
2023-07-08 16:23:38.663 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-08 16:23:38.664 | INFO | src.SRFactory.SRBaseClass:init:35 - SRBaseClass init
[0 NVIDIA GeForce GTX 1070] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce GTX 1070] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce GTX 1070] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/1
[0 NVIDIA GeForce GTX 1070] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-07-08 16:23:38.765 | ERROR | src.SRFactory.REALCUGAN:init:14 - An error has been caught in function 'init', process 'MainProcess' (21164), thread 'MainThread' (19000):
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 16:23:38.768 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (21164), thread 'MainThread' (19000):
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!
[21164] Failed to execute script 'main' due to unhandled exception!
CLOSE CODE:3221225477
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what you want to happen.
Add any other context or screenshots about the feature request here.
win10X64 system.
{"gpuid":0,"inputpath":["C:\Users\Administrator\Downloads\1644638548ZOQSET.png"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\Users\Administrator\Downloads","targetscale":0,"tta":false}
2023-07-05 17:30:21.382 | INFO | main:main:56 - projectPATH: C:\Users\Administrator\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-05 17:30:21.382 | INFO | main:main:67 - config loaded
2023-07-05 17:30:21.395 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-05 17:30:21.396 | INFO | src.SRFactory.SRBaseClass:init:35 - SRBaseClass init
2023-07-05 17:30:21.412 | ERROR | src.SRFactory.REALESRGAN:init:14 - An error has been caught in function 'init', process 'MainProcess' (18372), thread 'MainThread' (18288):
Traceback (most recent call last):
File "src\SRFactory\REALESRGAN.py", line 20, in init_SR_class
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "src\SRncnn\REALESRGANncnn.py", line 3, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py_init.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 33, in
ImportError: DLL load failed while importing realesrgan_ncnn_vulkan_wrapper: �Ҳ���ָ����ģ�顣
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 82, in
File "main.py", line 73, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in init
File "src\SRFactory\REALESRGAN.py", line 23, in _init_SR_class
ModuleNotFoundError: No module named 'Final2x_core'
2023-07-05 17:30:21.422 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (18372), thread 'MainThread' (18288):
Traceback (most recent call last):
File "src\SRFactory\REALESRGAN.py", line 20, in init_SR_class
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "src\SRncnn\REALESRGANncnn.py", line 3, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py_init.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 33, in
ImportError: DLL load failed while importing realesrgan_ncnn_vulkan_wrapper: �Ҳ���ָ����ģ�顣
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 82, in
File "main.py", line 73, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in init
File "src\SRFactory\REALESRGAN.py", line 23, in _init_SR_class
ModuleNotFoundError: No module named 'Final2x_core'
Traceback (most recent call last):
File "src\SRFactory\REALESRGAN.py", line 20, in init_SR_class
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "src\SRncnn\REALESRGANncnn.py", line 3, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py_init.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 33, in
ImportError: DLL load failed while importing realesrgan_ncnn_vulkan_wrapper: �Ҳ���ָ����ģ�顣
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 82, in
File "main.py", line 73, 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 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in init
File "loguru_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\REALESRGAN.py", line 23, in _init_SR_class
ModuleNotFoundError: No module named 'Final2x_core'
[18372] Failed to execute script 'main' due to unhandled exception!
CLOSE CODE:1
First of all, congratulations on a great program! Keep up the good work.
I would like to request a new custom feature, and it's the ability to also specify the final Custom Width of an image instead of just relying on the current Model Scale, or Custom Scale Factor to upscale images.
This is important because if we are batch upscaling hundreds of images with different sizes from a folder, and we need to normalize the final width for all images, let's say to 3840px, then with the current Model Scale, or Custom Scale Factor, all images are upscaled relative to their original image size, and what we need is to upscale all images to a specific width, no matter the original image size. The height of all images should be adjusted automatically based on the specified custom width.
This allows a greater degree of flexibility while upscaling images.
Thank you.
No response
处理了一张图片后就这样报错了,请问大佬是什么问题?
操作系统及环境:w处理器:lntel(R) Core(TM) i7-8700K CPU @3.70GHz 3.70 GHz
已安装的内存(RAM): 8.00 GB (7.86 GB可用)
系统类型:64位操作系统,基于x64的处理器
Describe the bug | 描述错误 | BUGの説明
Log
[{"label":"CPU: Core™ i7-8700K","value":-1},{"label":"GPU 0: NVIDIA GeForce RTX 2060","value":0},{"label":"GPU 1: Intel(R) UHD Graphics 630","value":1},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["F:\1临时文件\final2x\final2x\2 (4).png"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"F:\1临时文件\final2x\final2x","targetscale":0,"tta":false}
ϵͳ�Ҳ���ָ����·����
CLOSE CODE:1
1.1.5
Windows x64
Windows 10
Final2x conversions seems to always fail if inputting a grayscale JPEGs. ImageMagick identifies them as being "PseudoClass Gray".
I've uploaded an example of a grayscale image that won't convert.
Log
[{"label":"CPU: Core™ i7-8750H","value":-1},{"label":"GPU 0: NVIDIA GeForce GTX 1070","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["D:\_Junk\_Cache\test\Claymore v1-001.jpg"],"model":"Waifu2x-cunet","modelscale":2,"modelnoise":0,"outputpath":"D:\_Junk\_Cache\test","targetscale":2,"tta":false}
2023-09-25 20:33:22.697 | INFO | main:main:58 - projectPATH: C:\Users\mpgri\Downloads\Final2x-windows-x64-unpacked\resources\app\resources\Final2x-core
2023-09-25 20:33:22.698 | INFO | main:main:71 - config loaded
2023-09-25 20:33:22.698 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-09-25 20:33:22.698 | INFO | src.SRFactory.SRBaseClass:init:35 - SRBaseClass init
[0 NVIDIA GeForce GTX 1070] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce GTX 1070] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce GTX 1070] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/1
[0 NVIDIA GeForce GTX 1070] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
2023-09-25 20:33:23.450 | INFO | src.SRFactory.WAIFU2X:_init_SR_class:74 - Waifu2x model initialized
2023-09-25 20:33:23.451 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-09-25 20:33:23.473 | ERROR | src.SRqueue:SR_queue:67 - tuple index out of range
2023-09-25 20:33:23.473 | WARNING | src.SRqueue:SR_queue:68 - CV2 load image failed: D:_Junk_Cache\test\Claymore v1-001.jpg, skip.
2023-09-25 20:33:23.473 | WARNING | src.SRqueue:SR_queue:69 - Skip_Image: D:_Junk_Cache\test\Claymore v1-001.jpg
2023-09-25 20:33:23.474 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-09-25 20:33:23.479 | SUCCESS | main:main:81 - SR_COMPLETED
CLOSE CODE:3221226505
No response
How to call it through the command line?
How to call it through the command line?
No response
1.1.5
Windows x64
22H2
图片处理失败
[{"label":"CPU: Core™ i5-10600KF","value":-1},{"label":"GPU 0: NVIDIA GeForce RTX 3070","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":0,"inputpath":["F:\\Pictures\\hya.jpg"],"model":"RealESRGAN","modelscale":4,"modelnoise":0,"outputpath":"C:\\Users\\dio07\\Desktop","targetscale":0,"tta":false}
2023-10-14 09:46:46.628 | INFO | __main__:main:58 - projectPATH: D:\Program Files\Final2x\resources\app\resources\Final2x-core
2023-10-14 09:46:46.628 | INFO | __main__:main:71 - config loaded
2023-10-14 09:46:46.628 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-10-14 09:46:46.628 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
vkCreateInstance failed -9
vkCreateInstance failed -9
2023-10-14 09:46:46.728 | ERROR | src.SRFactory.REALESRGAN:__init__:14 - An error has been caught in function '__init__', process 'MainProcess' (18180), thread 'MainThread' (2860):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
> File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
2023-10-14 09:46:46.728 | ERROR | src.SRqueue:SR_queue:23 - An error has been caught in function 'SR_queue', process 'MainProcess' (18180), thread 'MainThread' (2860):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, in main
> File "src\SRqueue.py", line 23, in SR_queue
File "src\SRFactory\SRFactory.py", line 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 79, 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 39, in getSR
File "src\SRFactory\REALESRGAN.py", line 14, in __init__
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\SRFactory\REALESRGAN.py", line 65, in _init_SR_class
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 68, in __init__
File "src\SRncnn\REALESRGANncnn.py", line 46, in load
File "realesrgan_ncnn_py\realesrgan_ncnn_vulkan.py", line 79, in _set_parameters
RuntimeError: Caught an unknown exception!
[18180] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:3221225477
No response
在 Mac 10.15.7 上产生错误日志
Steps to reproduce the behavior:
{"gpuid":-1,"inputpath":["/Users/WangChunsheng/Desktop/WechatIMG7.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":-1,"outputpath":"/Users/WangChunsheng/Downloads","targetscale":0,"tta":false}
[722] Error loading Python lib '/Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib': dlopen: dlopen(/Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib, 10): Symbol not found: _preadv
Referenced from: /Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib (which was built for Mac OS X 11.7)
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/Final2x.app/Contents/Resources/app/resources/Final2x-core/libpython3.9.dylib
CLOSE CODE:255
请问可以放大 GIF 吗?
可以通过将 GIF 拆分为多张图片,分别对图片放大,最后合并成 GIF 文件
Describe the bug
{"gpuid":0,"inputpath":["/home/declarcall/Pictures/Image.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"/home/declarcall/Downloads","targetscale":0,"tta":false}
2023-07-05 20:58:05.006 | INFO | __main__:main:57 - projectPATH: /home/declarcall/Desktop/temp/Final2x-ubuntu-x64-unpacked/resources/app/resources/Final2x-core
2023-07-05 20:58:05.006 | INFO | __main__:main:70 - config loaded
2023-07-05 20:58:05.007 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-05 20:58:05.007 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 llvmpipe (LLVM 12.0.0, 256 bits)] queueC=0[1] queueG=0[1] queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)] subgroup=8 basic=1 vote=1 ballot=1 shuffle=0
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
2023-07-05 20:58:05.675 | INFO | src.SRFactory.REALCUGAN:_init_SR_class:63 - RealCUGAN model initialized
2023-07-05 20:58:05.676 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-05 20:58:05.730 | INFO | src.SRqueue:SR_queue:63 - Processing: /home/declarcall/Pictures/Image.jpg, save to: /home/declarcall/Downloads/outputs/2x-Image.png
Invalid bitcast
%379 = bitcast i32 %378 to i16
LLVM ERROR: Broken function
Aborted (core dumped)
CLOSE CODE:134{"gpuid":-1,"inputpath":["/home/declarcall/Pictures/Image.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"/home/declarcall/Downloads","targetscale":0,"tta":false}
2023-07-05 20:58:15.109 | INFO | __main__:main:57 - projectPATH: /home/declarcall/Desktop/temp/Final2x-ubuntu-x64-unpacked/resources/app/resources/Final2x-core
2023-07-05 20:58:15.110 | INFO | __main__:main:70 - config loaded
2023-07-05 20:58:15.110 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-05 20:58:15.110 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
2023-07-05 20:58:15.177 | INFO | src.SRFactory.REALCUGAN:_init_SR_class:63 - RealCUGAN model initialized
2023-07-05 20:58:15.178 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-05 20:58:15.237 | INFO | src.SRqueue:SR_queue:63 - Processing: /home/declarcall/Pictures/Image.jpg, save to: /home/declarcall/Downloads/outputs/2x-Image.png
2023-07-05 21:00:24.259 | INFO | src.utils.progressLog:printProgress:34 - Processing------[ 100.0% ]
2023-07-05 21:00:24.913 | SUCCESS | src.SRqueue:SR_queue:67 - ______Process_Completed______: /home/declarcall/Pictures/Image.jpg
2023-07-05 21:00:25.175 | SUCCESS | __main__:main:80 - ______SR_COMPLETED______
CLOSE CODE:0{"gpuid":0,"inputpath":["/home/declarcall/Pictures/celluloid-shot0002.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"/home/declarcall/Downloads","targetscale":0,"tta":false}
2023-07-05 21:02:31.482 | INFO | __main__:main:57 - projectPATH: /home/declarcall/Desktop/temp/Final2x-ubuntu-x64-unpacked/resources/app/resources/Final2x-core
2023-07-05 21:02:31.482 | INFO | __main__:main:70 - config loaded
2023-07-05 21:02:31.483 | INFO | src.SRFactory.SRBaseClass:_set_sr_n:53 - sr_n set to 1
2023-07-05 21:02:31.483 | INFO | src.SRFactory.SRBaseClass:__init__:35 - SRBaseClass init
[0 llvmpipe (LLVM 12.0.0, 256 bits)] queueC=0[1] queueG=0[1] queueT=0[1]
[0 llvmpipe (LLVM 12.0.0, 256 bits)] bugsbn1=0 bugbilz=155 bugcopc=0 bugihfa=0
[0 llvmpipe (LLVM 12.0.0, 256 bits)] fp16-p/s/a=1/1/0 int8-p/s/a=1/1/0
[0 llvmpipe (LLVM 12.0.0, 256 bits)] subgroup=8 basic=1 vote=1 ballot=1 shuffle=0
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
2023-07-05 21:02:32.156 | INFO | src.SRFactory.REALCUGAN:_init_SR_class:63 - RealCUGAN model initialized
2023-07-05 21:02:32.156 | INFO | src.SRqueue:SR_queue:25 - Processing------[ 0.0% ]
2023-07-05 21:02:32.160 | INFO | src.SRqueue:SR_queue:63 - Processing: /home/declarcall/Pictures/celluloid-shot0002.jpg, save to: /home/declarcall/Downloads/outputs/2x-celluloid-shot0002.png
Invalid bitcast
%379 = bitcast i32 %378 to i16
LLVM ERROR: Broken function
Aborted (core dumped)
CLOSE CODE:134
To Reproduce
Steps to reproduce the behavior:
$ ./final2x
[1747592:0705/205756.000513:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1747598:0705/205756.098153:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
"/home/declarcall/Desktop/temp/Final2x-ubuntu-x64-unpacked/resources/app/resources/Final2x-core/Final2x-core" -b eyJncHVpZCI6MCwiaW5wdXRwYXRoIjpbIi9ob21lL2RlY2xhcmNhbGwvUGljdHVyZXMvSW1hZ2UuanBnIl0sIm1vZGVsIjoiUmVhbENVR0FOLXBybyIsIm1vZGVsc2NhbGUiOjIsIm1vZGVsbm9pc2UiOjAsIm91dHB1dHBhdGgiOiIvaG9tZS9kZWNsYXJjYWxsL0Rvd25sb2FkcyIsInRhcmdldHNjYWxlIjowLCJ0dGEiOmZhbHNlfQ==
Desktop (please complete the following information):
$ clang --version
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /bin
$ clang++ --version
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /bin
Final2X lacks a CLI.
A command line interface for this tool would be a nice addition. I was hoping to incorporate Final2X into my custom image processing tool set. But without a CLI, that's not possible.
No response
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
0%
CPU: Core™ i7-4770
RealCUGAN-pro
2
0
Please Input
Please Input
C:\Users\Administrator\Downloads
Log
[{"label":"CPU: Core™ i7-4770","value":-1},{"label":"GPU 0: Intel(R) HD Graphics 4600","value":0},{"label":"GPU: Auto","value":114514}]
{"gpuid":-1,"inputpath":["C:\\Users\\Administrator\\Downloads\\微信图片_20230719074724.jpg"],"model":"RealCUGAN-pro","modelscale":2,"modelnoise":0,"outputpath":"C:\\Users\\Administrator\\Downloads","targetscale":null,"tta":false}
2023-07-19 07:48:41.720 | INFO | __main__:main:58 - projectPATH: C:\Users\Administrator\AppData\Local\Programs\Final2x\resources\app\resources\Final2x-core
2023-07-19 07:48:41.720 | ERROR | src.utils.getConfig:targetscale:125 - targetscale must be int or float
2023-07-19 07:48:41.721 | ERROR | src.utils.getConfig:getConfigfromBase64toJson:61 - An error has been caught in function 'getConfigfromBase64toJson', process 'MainProcess' (7460), thread 'MainThread' (2240):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 63, in main
> File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
2023-07-19 07:48:41.722 | ERROR | __main__:main:63 - An error has been caught in function 'main', process 'MainProcess' (7460), thread 'MainThread' (2240):
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
> File "__main__.py", line 63, in main
File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
Traceback (most recent call last):
File "__main__.py", line 88, in <module>
File "__main__.py", line 63, in main
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\utils\getConfig.py", line 61, in getConfigfromBase64toJson
File "loguru\_logger.py", line 1251, in catch_wrapper
File "src\utils\getConfig.py", line 73, in _setConfig
File "src\utils\getConfig.py", line 126, in targetscale
TypeError: targetscale must be int or float
[7460] Failed to execute script '__main__' due to unhandled exception!
CLOSE CODE:1
Add any other context and screenshots to help explain your problem.
MacOS currently does not support the Homebrew package manager.
MacOS 暂时不支持 Homebrew 包管理器。
Support Homebrew and pr to the official repository with automatic detection of arm/intel versions.
支持 Homebrew,提交到官方仓库,自动检测 arm/intel 版本。
I hope to receive support from the community as I'm not very familiar with Homebrew.
希望得到社区的支持,个人不是很熟悉 Homebrew。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.