合并部分泡菜文件以恢复我的原始腌制模型

发布于 2025-01-19 11:32:23 字数 214 浏览 3 评论 0原文

我在机器上腌制了RF型号,其大小为360MB, 现在我想将其上传到github,但是我无法通过文件上传或终端来执行此操作, 我也尝试了git lfs,但它都不起作用!

最后,我将泡菜文件分为15个部分,将所有这些零件上传到一个单独的文件夹中的github, 但是现在,我想知道如何将它们合并以使其精简?! 我该怎么做才能简化完整的模型?是否有一种方法可以合并GitHub上的文件?

谢谢

I have pickled a RF model on my machine and its size is of 360Mb,
Now I want to upload it to GitHub but I cannot do it by file upload nor by the terminal,
I tried git lfs too but it didn't work neither !!

Finally, I have split the pickle file into 15 parts, uploaded all of them to Github in a separate folder,
But now, I would like to know how can I merge them to get the complete model on streamlit ?!
What should I do to have the complete model in streamlit ? and is there a way to merge the files on GitHub ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舟遥客 2025-01-26 11:32:23

感谢,通过压缩模型来解决问题。

360MB对于RF模型来说是很多。泡菜时,您可以尝试压缩模型。这需要更多的时间,但是文件大小减少。您是如何将泡菜文件拆分的。您需要以与分裂的方式相同的方式来加入它们。

我使用了LZMA,它从360MB增加到32MB。然后,我使用终端推动。

Thanks to @Exciter's comment, the problem is solved by compressing the model.

360Mb is a lot for a RF model. you can try compressing the model when you pickle it. That need some more time, but the filesize decreases. how did you split your pickle files. You need to concat them the same way as you splitted them.

I used lzma and it went from 360Mb to 32Mb. I then used the terminal to push.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文