Giter Club home page Giter Club logo

final2x's Introduction

Socialify Image

English | 中文

Enhance Your Images with Effortless Cross-Platform Super-Resolution at Any Scale

MacOS x64 MacOS arm64 Windows x64 Windows arm64 Linux x64 codecov CI-Test CI-Build Release Download GitHub

This is a powerful tool that allows for image super-resolution to arbitrary sizes using multiple models, designed to enhance the resolution and quality of images, making them clearer and more detailed. Presently, it supports several models, such as RealCUGAN, RealESRGAN, and Waifu2x.

Comparison

use Final2x to perform 4x super-resolution on a 256x256 Hutao RGBA image

Screenshots

Installation

Windows

Just Run! Furthermore, you can use package mananger to install and upgrade.

winget

winget install Final2x

MacOS

sudo spctl --master-disable
# Disable Gatekeeper, then allow applications downloaded from anywhere in System Preferences > Security & Privacy > General
xattr -cr /Applications/Final2x.app

In first time, you need to run the command above in terminal to allow the app to run, and first process may very slow because of Apple's Check.

Linux

For General Linux (Suggested, download linux-pip)

Python >= 3.8, then check install in terminal.

pip install Final2x-core
Final2x-core -o # 114514
apt install -y libomp5 xdg-utils

For Deb/Ubuntu

Set 777 permission for the file and resources folder.

Features

  • Cross-platform: The tool is available for Windows x64/arm64, MacOS x64/arm64, and Linux x64, allowing users to enjoy the benefits of super-resolution regardless of their operating system.
  • Super-resolution: The tool employs advanced algorithms and models to upscale images, significantly increasing their resolution without sacrificing quality.
  • Multiple models: It offers a wide range of models that can be used to achieve different levels of super-resolution, allowing users to choose the one that best suits their specific needs.
  • Customizable Scale: Users have the flexibility to specify the desired output size for their images, ranging from small enhancements to large-scale super-resolution.
  • i18n: The tool is available in ['English', 'Chinese', 'Japanese', 'French'] allowing users from different countries to enjoy the benefits of super-resolution.

Reference

The following references were referenced in the development of this project:

  • Final2x-core - This project provided the core of the Final2x algorithm using the ncnn and Vulkan libraries.
  • naive-ui - This project provided the UI framework for the Final2x.
  • electron-vite - This project provided the build framework for the Final2x.
  • ncnn - ncnn is a high-performance neural network inference framework developed by Tencent AI Lab.
  • nihui/realcugan-ncnn-vulkan - This project provided the core implementation of the Real-CUGAN algorithm using the ncnn and Vulkan libraries.
  • xinntao/Real-ESRGAN-ncnn-vulkan - This project provided the core implementation of the Real-ESRGAN algorithm using the ncnn and Vulkan. libraries.
  • nihui/waifu2x-ncnn-vulkan - This project provided the core implementation of the Waifu2x algorithm using the ncnn and Vulkan libraries.

License

This project is licensed under the BSD 3-Clause - see the LICENSE file for details.

Acknowledgements

Feel free to reach out to the project maintainers with any questions or concerns. Happy image super-resolution!

Star History Chart

final2x's People

Contributors

damncrab avatar dependabot[bot] avatar face1essboy avatar hychaowang avatar hyw-dev avatar justin62628 avatar mrintrepide avatar tohrusky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

final2x's Issues

[BUG] 無法找到 GPU

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

僅有 CPU 的選項
image

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

windows11 x64

[BUG]Cannot use the Nvidia GTX 1070 graphics card.

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

Cannot use the graphics card.

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to 'Device'
  2. Click on ' choose an graphics card'
  3. See error in log

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

  • OS: [Windows 10 22H2]
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[FEATURE] 功能反馈

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

  1. Windows安装版没有自由选择安装位置的功能,会强制安装在系统盘
  2. 对于不清楚各种模型作用与偏向性的用户,门槛较高,不方便用户使用
  3. 输入目录强制要求添加outputs文件夹,不方便使用
  4. 优化后的图片文件体积大幅增大,存在大量冗余重复数据,占用大量空间,存储空间浪费严重

Detail | 详细描述 | 詳細な説明

  1. 为安装版添加自由更改安装位置功能
  2. 修改模型名称为其模型作用,如:动漫模型,真人模型,景物模型等
  3. 强烈要求修改输出目录为文件原路径
  4. 强烈要求添加无损压缩功能或低损压缩功能(支持透明图片压缩),在图片优化之后进行体积压缩

Additional context | 附加内容 | 追加コンテキスト

[Bug] Processing failed

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

22H2

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

图片处理失败

360截图20231014095430796

To reproduce | 复现步骤 | 再現方法

  1. 打开final2x,选择模型和放大倍数
  2. 将图片拖拽到主界面
  3. 显示“处理失败,请点击日志查看错误信息”
    *之前可以正常使用,突然就不行了。

Error log | 报错日志 | ログ

[{"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

Additional context | 附加内容 | 追加コンテキスト

No response

[FEATURE] Add software screenshots to readme.md

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

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.

Detail | 详细描述 | 詳細な説明

Adding UI screenshots to README.md

Additional context | 附加内容 | 追加コンテキスト

No response

[FEATURE] Custom Width

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

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.

Detail | 详细描述 | 詳細な説明

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.

Additional context | 附加内容 | 追加コンテキスト

No response

[FEATURE] 增加点击上传

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

暂时只能拖拽上传!

Detail | 详细描述 | 詳細な説明

直接操作N-upload的filelist,调用electron dialog实现点击上传。

Additional context | 附加内容 | 追加コンテキスト

/

[Bug]

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Windows 10专业版22H219045

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

图片处理失败

To reproduce | 复现步骤 | 再現方法

1.打开final2x,选择模型和放大倍数
2.点击到此上传文件,选择文件上传(有时还存在图片无法拖拽的问题)
3.显示“处理失败,请点击日志查看错误信息”
PS:换了几个模型都无法处理

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

Uploading 屏幕截图 2023-11-28 163025.png…

[BUG]

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

操作系统及环境:w处理器:lntel(R) Core(TM) i7-8700K CPU @3.70GHz 3.70 GHz
已安装的内存(RAM): 8.00 GB (7.86 GB可用)
系统类型:64位操作系统,基于x64的处理器

处理了一张图片后就这样报错了,请问大佬是什么问题?

[BUG] DLL load failed while importing cv2

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

Processing the image will cause an error.

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

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

  • OS: windows 10
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[BUG]

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

A clear and concise description of what the bug is.

arm64的dmg,在macos 13.4.1安装后点击打开,弹窗app文件损坏无法打开,移到废纸篓。

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

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

  • OS: [e.g. Ubuntu 20.04]
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

your error log

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

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

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

[FEATURE] Final2x CORE. Add option to disable opening output folder

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

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.

Detail | 详细描述 | 詳細な説明

Please add an option to disable opening the "outputs" folder.

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG] the enlarged image loses its transparent layer

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

After conversion, the enlarged image loses its transparent layer.

To reproduce | 复现步骤 | 再現方法

I used a png image with a transparent layer, like this one.
屏幕截图 2023-07-12 091922

And after conversion, I got the enlarged image with a black background color, which means that the transparent layer is lost.
屏幕截图 2023-07-12 091945

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

  • OS: Windows 10 LTSC 2021 21H2 Enterprise
  • Arch: x64

Error log | 报错日志 | ログ

{"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

Additional context | 附加内容 | 追加コンテキスト

No more additional context.

[Bug] 文件处理时,未显示进度或只显示50%

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.2.0

Operating System | 操作系统 | オペレーティングシステム

Windows arm64

System Version | 系统版本 | システムバージョン

23H2 22631.3085

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

图片文件偏大时,不显示进度,只显示100%
图片文件小时,只显示50%和100%

To reproduce | 复现步骤 | 再現方法

1.运行软件
2.选择PNG或JPG图片
3.GPU选择Auto
4.TTA打开
5.自定义Scale:2

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

[Bug] No image comes out after third time while using TTA.

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.15

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Win10

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

No image comes out after third time while using TTA.

To reproduce | 复现步骤 | 再現方法

Each time of third re-creation. Some times even the second time will disappear as well.

Error log | 报错日志 | ログ

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!

Additional context | 附加内容 | 追加コンテキスト

No response

[FEATURE] MacOS Homebrew Cask

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関

MacOS currently does not support the Homebrew package manager.
MacOS 暂时不支持 Homebrew 包管理器。

Detail | 详细描述 | 詳細な説明

Support Homebrew and pr to the official repository with automatic detection of arm/intel versions.
支持 Homebrew,提交到官方仓库,自动检测 arm/intel 版本。

Additional context | 附加内容 | 追加コンテキスト

I hope to receive support from the community as I'm not very familiar with Homebrew.
希望得到社区的支持,个人不是很熟悉 Homebrew。

[BUG] 在 Mac OS X 10.15.7 中不能正常运行

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

在 Mac OS X 10.15.7 中不能正常运行。

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. 拖拽图片
  2. 点击开始
    提示错误查看日志

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

  • OS: [Mac OS X 10.15.7]
  • Arch: [Intel x64]

Error log | 报错日志 | ログ

{"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

Additional context | 附加内容 | 追加コンテキスト

python 版本 是 3.10.x

[FEATURE] (CLI) Command Line Interface support

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

Final2X lacks a CLI.

Detail | 详细描述 | 詳細な説明

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.

Additional context | 附加内容 | 追加コンテキスト

No response

[Bug] Failed to execute

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Windows 10 Pro 22H2

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

Short after start program stop with Pocessing failed.

To reproduce | 复现步骤 | 再現方法

  1. Go to '...'
  2. Click on '....'
  3. See error

Error log | 报错日志 | ログ

final2x_problem.docx

Additional context | 附加内容 | 追加コンテキスト

Could it be that my GT 610 ist too old?

[BUG] Final2x-core: not found

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

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

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. 选择文件之后,点击开始处理文件,提示 处理失败,打开日志显示 Final2x-core: not found

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

  • OS: Linux Mint 21.1
  • Arch: x64
  • Final2x version: v1.1.3 Final2x-linux-pip-x64-AppImage.AppImage

Error log | 报错日志 | ログ

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[FEATURE] reduce app size

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

No

Detail | 详细描述 | 詳細な説明

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.

[BUG] OSError: Read-only file system

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.
  1. Drag a image into
  2. Click "START" button

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Arch: x64
  • Version: v1.0.1

How to call it through the command line?

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

How to call it through the command line?

Detail | 详细描述 | 詳細な説明

How to call it through the command line?

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG]wrong agian

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

A clear and concise description of what the bug is.

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

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

  • OS: [win10]
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[Bug] Cannot execute by AMD Vega integrated GPU

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Windows 10 x64 1909

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

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.

To reproduce | 复现步骤 | 再現方法

  1. run final2x
  2. select any pictures with JPG/PNG formats
  3. choose [GPU0] AMD Radeon Graphics
  4. set RealESRGAN as an executive module.
  5. run, error posted during initiation steps.

Error log | 报错日志 | ログ

[{"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

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG] LLVM ERROR: Broken function

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:

  1. Run
$ ./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==
  1. Drag a image into
  2. Click "START" button

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

[FEATURE]提供个dockerfile吧,环境安装各种报错

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Detail | 详细描述 | 詳細な説明

A clear and concise description of what you want to happen.

Additional context | 附加内容 | 追加コンテキスト

Add any other context or screenshots about the feature request here.

[BUG]处理了一张图片后就这样报错了,请问大佬是什么问题

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

处理了一张图片后就这样报错了,请问大佬是什么问题?

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

操作系统及环境:w处理器:lntel(R) Core(TM) i7-8700K CPU @3.70GHz 3.70 GHz
已安装的内存(RAM): 8.00 GB (7.86 GB可用)
系统类型:64位操作系统,基于x64的处理器

Error log | 报错日志 | ログ

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

[FEATURE] reduce app size

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

No

Detail | 详细描述 | 詳細な説明

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.

[Bug] Conversion fails on Grayscale (PseudoClass Gray) JPEGs

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Windows 10

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

Final2x conversions seems to always fail if inputting a grayscale JPEGs. ImageMagick identifies them as being "PseudoClass Gray".

To reproduce | 复现步骤 | 再現方法

I've uploaded an example of a grayscale image that won't convert.

Claymore v1-001

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

No response

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

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

[Bug]

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.2.00

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

Windows 11 23H2

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

转换图片输入后即报错
尝试过tif png jpg都会出现

To reproduce | 复现步骤 | 再現方法

初次安装后放入图片立即出现报错

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG]wrong again

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

A clear and concise description of what the bug is.

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

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

  • OS: [win10]
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

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

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[BUG] Cannot use the graphics card.

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

  • OS: Windows 10
  • Arch: [e.g. x64]
  • Device: GPU: NVIDIA GeForce GTX 1070
  • Model: RealCUGAN-pro

Error log | 报错日志 | ログ

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

[BUG]Processing failed

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.1.5

Operating System | 操作系统 | オペレーティングシステム

Windows x64

System Version | 系统版本 | システムバージョン

22H2

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

图片处理失败
360截图20231014095430796

To reproduce | 复现步骤 | 再現方法

  1. 打开final2x,选择模型和放大倍数
  2. 将图片拖拽到主界面
  3. 显示“处理失败,请点击日志查看错误信息”
  4. 之前可以正常使用,突然就不行了。

Error log | 报错日志 | ログ

[{"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

Additional context | 附加内容 | 追加コンテキスト

No response

[FEATURE] GIF support

Detail | 详细描述 | 詳細な説明

请问可以放大 GIF 吗?

Additional context | 附加内容 | 追加コンテキスト

可以通过将 GIF 拆分为多张图片,分别对图片放大,最后合并成 GIF 文件

[Bug] Application is damaged on Mac ARM64

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした
  • Searched documentation and didn't find relevant content | 已经搜索过文档,没有发现相关内容 | ドキュメントを検索して関連する内容が見つかりませんでした
  • Tried with the latest version and the issue still exists | 已经尝试使用过最新版,问题依旧存在 | 最新バージョンを試しましたが問題は解消されませんでした

Software Version | 软件版本 | ソフトウェアバージョン

1.2.0, 1.1.5, 1.0.2, beta

Operating System | 操作系统 | オペレーティングシステム

macOS arm64 (M1,M2...)

System Version | 系统版本 | システムバージョン

Mac Os Sonoma 14.4.1

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

Can't open arm64 version on Macbook Air M1, it says 'Application is damaged'. Intel x64 version opens just fine

To reproduce | 复现步骤 | 再現方法

  1. Download any macOS ARM64 release (dmg / unpacked)
  2. Try to open it
  3. See error

Error log | 报错日志 | ログ

There is no log as application doesn't open

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG]Win11 running error

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

A clear and concise description of what the bug is.

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

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

  • OS: win11
  • Arch: [e.g. x64]

Error log | 报错日志 | ログ

{"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

Additional context | 附加内容 | 追加コンテキスト

Add any other context and screenshots to help explain your problem.

[FEATURE] 统一无边框窗口,重写上角按钮

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

目前三端ui均使用带边框,不美观。

Detail | 详细描述 | 詳細な説明

需要全部改成无边框。重写退出、最小化、全屏幕按钮。

Additional context | 附加内容 | 追加コンテキスト

/

[FEATURE]安装能不能改成可以自义定文件位置和桌面图标

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Detail | 详细描述 | 詳細な説明

A clear and concise description of what you want to happen.

Additional context | 附加内容 | 追加コンテキスト

Add any other context or screenshots about the feature request here.

[BUG] something wrong?

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

[FEATURE]请求对视频处理的支持

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

与现有问题无关

Detail | 详细描述 | 詳細な説明

请求对视频处理的支持

Additional context | 附加内容 | 追加コンテキスト

此程序无法处理频视频,需要拆帧后小批量处理,但视频的帧率满高的不方便

问题反馈

Please carefully review each item in the checklist below | 请认真检查以下清单中的每一项 | 以下のチェックリストの各項目を注意深く確認してください

  • Searched and didn't find a similar issue | 已经搜索过,没有发现类似issue | 類似の問題が見つかりませんでした

Is your feature request related to a problem? | 你的feature请求是否与一个问题有关? | あなたのfeatureリクエストは質問に関連していますか?

Windows安装版强制安装在系统盘,无法更改安装位置

Detail | 详细描述 | 詳細な説明

添加安装位置选择功能

Additional context | 附加内容 | 追加コンテキスト

No response

[BUG]

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

在 Mac 10.15.7 上产生错误日志

To reproduce | 复现步骤 | 再現方法

Steps to reproduce the behavior:

  1. 拖拽照片
  2. 点击开始

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

  • OS: [Mac OS X 10.15.7]
  • Arch: [x64]

Error log | 报错日志 | ログ

{"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

Additional context | 附加内容 | 追加コンテキスト

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.