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

分享一个打包好的可执行文件 #19

Open
zcf0508 opened this issue Nov 10, 2022 · 13 comments
Open

分享一个打包好的可执行文件 #19

zcf0508 opened this issue Nov 10, 2022 · 13 comments

Comments

@zcf0508
Copy link
Contributor

zcf0508 commented Nov 10, 2022

https://github.com/zcf0508/autocut

新增了一个 pyinstaller 打包需要的 spec 文件,并且 release 中提供了一个 x86_64 的 .zip 压缩包。主要为了方便对代码不是很了解,又想体验一下的同学,可以下载压缩包解压之后直接运行。

@zcf0508
Copy link
Contributor Author

zcf0508 commented Nov 10, 2022

由于我的电脑没有 GPU ,所以我本机测试只用了 CPU 处理文件,不知道使用 GPU 会不会有什么bug 。

@mli
Copy link
Owner

mli commented Nov 10, 2022

看上去不错。我没有windows,测试不了。但看包里面似乎没有pytorch? 而且,包里面有whisper模型吗?

此外,用docker打包是不是可移植性更高些?

@zcf0508
Copy link
Contributor Author

zcf0508 commented Nov 11, 2022

我在 Windows 上的沙盒环境试了一下,提示

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

不过程序可以运行。首次运行会需要下载模型,然后就可以正常生成字幕了。

@mli
Copy link
Owner

mli commented Nov 11, 2022

有点怀疑没有pytorch和tensorflow,是怎么做预测的。不知道没有别的同学也能试一下?

@chenqianhe
Copy link
Collaborator

确实能正常跑,不过我看打包了torch。不知道是不是确实有用,我这边也没清空的环境来测。挺好奇咋回事的

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

@zcf0508
Copy link
Contributor Author

zcf0508 commented Nov 13, 2022

正在做基于 Electron 的客户端项目

https://github.com/zcf0508/autocut-client

@mli
Copy link
Owner

mli commented Nov 13, 2022 via email

@zcf0508
Copy link
Contributor Author

zcf0508 commented Nov 16, 2022

🎉 Pre-release

https://github.com/zcf0508/autocut-client/releases/tag/v0.0.1

@yihong0618
Copy link
Contributor

这个可以利用 GitHub Actions 自动发布 exe 多版本,我可以做一个。

@zcf0508
Copy link
Contributor Author

zcf0508 commented Nov 20, 2022

🎉 Release

https://github.com/zcf0508/autocut-client/releases/tag/v0.0.1

完成了用 pr 打开编辑结果的功能

@zcf0508
Copy link
Contributor Author

zcf0508 commented Dec 30, 2022

这个可以利用 GitHub Actions 自动发布 exe 多版本,我可以做一个。

@yihong0618 ,我自己做了打包 win 和 mac 可执行文件的流程。我第一次写,你有空可以帮我检查一下。

zcf0508@4506df9

@yihong0618
Copy link
Contributor

@zcf0508 我觉得可以

@xiahan4956
Copy link

🎉 Release

https://github.com/zcf0508/autocut-client/releases/tag/v0.0.1

完成了用 pr 打开编辑结果的功能

特别感谢,pip install git+https://github.com/mli/autocut.git先前一直报错,还好有你的exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants