Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法兼容带有中文字符的路径 #12

Closed
AaronFeng753 opened this issue May 16, 2020 · 3 comments
Closed

无法兼容带有中文字符的路径 #12

AaronFeng753 opened this issue May 16, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@AaronFeng753
Copy link
Contributor

如题, 相同路径下的同一文件, v1.8.0版本无法正常加载, 反之v1.7.0则可以正常加载, 应该是bug
处理参数等条件变量均一致

PS E:\TEST> cmd
Microsoft Windows [版本 10.0.18363.720]
(c) 2019 Microsoft Corporation。保留所有权利。

E:\TEST>"E:/TEST/Anime4k180/Anime4K.exe" -i "E:/TEST/# T E S T 测 试/01.png" -o "E:/TEST/# T E S T 测 试/01_RES.png" -z 2 -f -q -h 0 -d 0 -p 2 -n 2 -c 0.30 -g 1.00 -b -r 4 -a -e 40
GPU mode
Platform: AMD Accelerated Parallel Processing
Device: gfx804
Failed to load file: file doesn't not exist or incorrect file format.

E:\TEST>"E:/TEST/Anime4k170/Anime4K.exe" -i "E:/TEST/# T E S T 测 试/01.png" -o "E:/TEST/# T E S T 测 试/01_RES.png" -z 2 -f -q -h 0 -d 0 -p 2 -n 2 -c 0.30 -g 1.00 -b -r 4 -a -e 40
GPU mode
Platform: AMD Accelerated Parallel Processing
Device: gfx804
----------------------------------------------
Welcome to Anime4KCPP
----------------------------------------------
640x480 to 1280x960
----------------------------------------------
Passes: 2
pushColorCount: 2
Zoom Factor: 2
Video Mode: false
Fast Mode: true
Strength Color: 0.3
Strength Gradient: 1
----------------------------------------------
----------------------------------------------
Preprocessing filters list:
----------------------------------------------
CAS Sharpening
----------------------------------------------
Postprocessing filters list:
----------------------------------------------
Gaussian blur weak
Bilateral filter
----------------------------------------------
Processing...
Total process time: 0.086 s

压缩包里是测试用的文件:

@AaronFeng753
Copy link
Contributor Author

TestFile.zip

@AaronFeng753
Copy link
Contributor Author

又跑了三次测试, 初步判断是新版本无法兼容中文路径名称:
第一测试,文件夹名是123, 没问题
第二次测试,文件夹名是1 2 3, 没问题
第三次测试,文件夹名是中文, 挂了
所以bug应该是新版本无法兼容中文字符路径

E:\TEST>"E:/TEST/Anime4k180/Anime4K.exe" -i "E:/TEST/123/01.png" -o "E:/TEST/123/01_RES.png" -z 2 -f -q -h 0 -d 0 -p 2 -n 2 -c 0.30 -g 1.00 -b -r 4 -a -e 40
GPU mode
Platform: AMD Accelerated Parallel Processing
Device: gfx804
----------------------------------------------
Welcome to Anime4KCPP
----------------------------------------------
640x480 to 1280x960
----------------------------------------------
Passes: 2
pushColorCount: 2
Zoom Factor: 2
Video Mode: false
Fast Mode: true
Strength Color: 0.3
Strength Gradient: 1
----------------------------------------------
----------------------------------------------
Preprocessing filters list:
----------------------------------------------
CAS Sharpening
----------------------------------------------
Postprocessing filters list:
----------------------------------------------
Gaussian blur weak
Bilateral filter
----------------------------------------------
Processing...
Total process time: 0.08 s

E:\TEST>"E:/TEST/Anime4k180/Anime4K.exe" -i "E:/TEST/12 3/01.png" -o "E:/TEST/12 3/01_RES.png" -z 2 -f -q -h 0 -d 0 -p 2 -n 2 -c 0.30 -g 1.00 -b -r 4 -a -e 40
GPU mode
Platform: AMD Accelerated Parallel Processing
Device: gfx804
----------------------------------------------
Welcome to Anime4KCPP
----------------------------------------------
640x480 to 1280x960
----------------------------------------------
Passes: 2
pushColorCount: 2
Zoom Factor: 2
Video Mode: false
Fast Mode: true
Strength Color: 0.3
Strength Gradient: 1
----------------------------------------------
----------------------------------------------
Preprocessing filters list:
----------------------------------------------
CAS Sharpening
----------------------------------------------
Postprocessing filters list:
----------------------------------------------
Gaussian blur weak
Bilateral filter
----------------------------------------------
Processing...
Total process time: 0.085 s

E:\TEST>"E:/TEST/Anime4k180/Anime4K.exe" -i "E:/TEST/中文/01.png" -o "E:/TEST/中文/01_RES.png" -z 2 -f -q -h 0 -d 0 -p 2 -n 2 -c 0.30 -g 1.00 -b -r 4 -a -e 40
GPU mode
Platform: AMD Accelerated Parallel Processing
Device: gfx804
Failed to load file: file doesn't not exist or incorrect file format.

@AaronFeng753 AaronFeng753 changed the title 无法加载文件 Failed to load file: file doesn't not exist or incorrect file format. 无法兼容带有中文字符的路径 May 16, 2020
@AaronFeng753
Copy link
Contributor Author

猜测可能是你加入文件夹支持时使用的std::filesystem::is_directory的问题??? 俺也不是很清楚, 没太仔细看

@TianZerL TianZerL self-assigned this May 16, 2020
@TianZerL TianZerL added the bug Something isn't working label May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants