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

detect报错 #18

Open
liuz25 opened this issue Oct 3, 2023 · 11 comments
Open

detect报错 #18

liuz25 opened this issue Oct 3, 2023 · 11 comments

Comments

@liuz25
Copy link

liuz25 commented Oct 3, 2023

您好,陈学长:
国庆节快乐!在假期的时候冒味打扰您了,我代码在pycharm里能运行出来,但由于我电脑算力不行,我放到了云服务器上,用vscode运行,遇到了这些错误
image
请问这些该如何解决,谢谢!国庆节快乐!

@WindVChen
Copy link
Owner

哈喽呀 @liuz25 , 国庆快乐!

从所给的报错信息来看,这可能是因为预训练权重没能正确导入,可以检查下模型加载路径是否正确.

@liuz25
Copy link
Author

liuz25 commented Oct 3, 2023

预训练的权重就是里面的那个DRENet.pt这个文件吗?

@WindVChen
Copy link
Owner

嗯嗯,对的

@liuz25
Copy link
Author

liuz25 commented Oct 3, 2023

解决了,谢谢学长! 国庆快乐!

@liuz25
Copy link
Author

liuz25 commented Oct 4, 2023

您好,陈学长
不好意思,再次打扰您了,还是那个问题
( J3$Q$B ODPH {IZRUE_KD
这次我训练的时候突然中断了,然后我设置了resume,并按网上的运行last.pt这个权重进行继续训练,发现还是报了这个错,我东西也是按绝对路径传进去了的,然后我一直在网上找资料寻求解决,一直没有解决,不得已只能又来请教您了,请问学长您有时间吗?可以帮忙看一下这个问题不,万分感谢!

@WindVChen
Copy link
Owner

emmm, 你训练的时候是会走detect.py吗?

@liuz25
Copy link
Author

liuz25 commented Oct 5, 2023

不会,没有任何权重是可以训练的,由于中途因某些原因中断了,我想继续训练,是要读入那个last.pt继续训练的,报的错和detect.py的错误类型是是一样的,而detec.py那个错误类型也是没有解决的,都是报这个错呜呜~

@WindVChen
Copy link
Owner

以目前的报错信息我也不太能定位到问题:( 本地断点续训也会报错嘛?还是只有放在服务器上才出错了?

@liuz25
Copy link
Author

liuz25 commented Oct 6, 2023

放在服务器上运行报错了,包括运行test.py文件也是报同样的错误,但是在本地pycharm上都是可以正常运行的,只是我电脑是cpu的,很慢

@WindVChen
Copy link
Owner

如果是这样的话,我其实还是比较倾向于是路径加载问题,可以在上面attempt_load()代码段加个断点看看各个参数是不是读入正确了

@cm-awais
Copy link

cm-awais commented Dec 20, 2023

Hello Mr Chen,
I am facing the same error as above, can you please tell me how to fix it?
The path that is in the weights is ['./DRENet.pt']. I tried passing as an element of list "./DRENet.pt", also tried full path, but nothing works.
Thanks.

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

3 participants