Open TransparentLC opened 2 years ago
非常适用!可否打包一个macOS的版本,我可以帮忙测试
@TransparentLC 很赞呀, 后面我加入哈
@rayeesoft 已经添加了,可以去看看 Actions 里的 Artifacts。不过因为我没有能跑 macOS 的设备所以能不能正常运行我都不确定(
@TransparentLC 好像跑不起来
python - Pyinstaller executable can't run on other machines (OS X) - Stack Overflow
@rayeesoft 也许需要 chmod +x
然后在控制台中运行……
@rayeesoft 出错的代码来自用的 darkdetect 库的这一行,用 platform.mac_ver()[0]
读取 macOS 的版本号来判断系统是否支持深色模式。然后我试了一下 LooseVersion('10.14').version
是没问题的,但是 LooseVersion('').version
就会出现这个 AttributeError: 'LooseVersion' object has no attribute 'version'
,所以我估计是 platform.mac_ver()
的返回值的问题,但是因为我不是 macOS 用户所以对这个就没什么了解了。
如果正好有 Python 3 的话,看一下 platform.mac_ver()
的输出?
@rayeesoft 把 import darkdetect
放到 try except 里面了,即使这个库加载失败也只是不会使用深色模式,而不至于整个程序打不开。可以去 Release 下载最新的 macOS 版的程序试一下还有没有其他的问题。
非常好用,而且简洁,期待后面会加入新的模型
https://github.com/TransparentLC/realesrgan-gui
虽然 Real-ESRGAN 已经有好几个 GUI 了,不过由于自己的需要还是自己写了一个。这个 GUI 调用的是 Real-ESRGAN-ncnn-vulkan 的可执行文件,添加的功能主要是任意尺寸放大和对 GIF 的处理支持。
因为是用 Python 写的,所以我还做了可以在 Ubuntu 下使用的打包(其他的 Linux 发行版和 macOS 没有测试过)。另外还做了简繁中文和英语的支持,如果有人可以帮忙补充的话其他语言的翻译也是可以添加的(