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

FileNotFoundError: [Errno 2] No such file or directory: '/root/dw/pretrn/sam_vit_h_4b8939.pth' #21

Open
1835969208 opened this issue May 14, 2024 · 7 comments

Comments

@1835969208
Copy link

作者大大,我在把项目部署到本地的过程中报错了,但压根找不到报错的原因,求解FileNotFoundError: [Errno 2] No such file or directory: '/root/dw/pretrn/sam_vit_h_4b8939.pth'
SR~N0V8V4%YP6G37R4RHESH

@DotWang
Copy link
Collaborator

DotWang commented May 14, 2024

@1835969208 这是SAM本身的权重,你去它的仓库下载

@1835969208
Copy link
Author

FileNotFoundError: [Errno 2] No such file or directory: '/root/dw/samrs/work_dir/hrsc/json/sam_ins_hbox.json'
QQ图片20240514181459
这个又是神马情况捏

@DotWang
Copy link
Collaborator

DotWang commented May 14, 2024

@1835969208 你仔细看一下readme,你用错文件了,你现在跑的这个对应文中hrsc那部分

@1835969208
Copy link
Author

1835969208 commented May 14, 2024 via email

@DotWang
Copy link
Collaborator

DotWang commented May 14, 2024

@1835969208 对了,json这部分我后来好像没有用到,一开始是想把在hrsc上顺便评测一下实例分割精度的,后来也没搞,你可以把它注释掉,后来真正用来生成大规模分割标注数据集的是main_sam_hbox_semantic.pymain_sam_rhbox_semantic.py

@1835969208
Copy link
Author

这个文件又是在哪里,压根没有呀
RG28@6EVTC%A82`6EYBIDUU

@DotWang
Copy link
Collaborator

DotWang commented May 14, 2024

@1835969208 你不应该根据你下好的目标检测数据集的路径自己去改吗,这么简单的问题真别问了大哥

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

2 participants