报错信息
remote: error: Trace: 9621c90b124fcb8e353c79fc4011b62f684d0850872e2a5a9ee4bdf1e8092198 remote: error: See https://gh.io/lfs for more information. remote: error: File res_checkpoint/3_17_heart.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_16_lung.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_19_spleen.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File res_checkpoint/3_31_colon.pth is 357.69 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File vit_b.pth is 357.66 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. To github.com:jaychan0/fine_tune_SAM_MIS.git ! [remote rejected] master -> master (pre-receive hook declined)
问题分析
这个报错是因为尝试推送的文件大小超过了GitHub的文件大小限制。GitHub的文件大小限制是100 MB,而你尝试推送的文件大小超过了这个限制。解决方法是使用Git Large File Storage(LFS)来处理大文件。可以按照报错信息中提供的链接 Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. 去了解如何使用Git LFS,并将大文件上传到LFS中。
问题解决
虽然说根据报错的提示内容说可以去Git LFS上传大文件,我个人还是建议直接在网盘上上传大文件,把主要的代码上传到github上,然后贴一下网盘的链接即可。