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

AttributeError: 'NoneType' object has no attribute 'seek'. 报错行model = attempt_load(yolo_weights, map_location=device) # load FP32 model #18

Open
fzb408 opened this issue Oct 17, 2023 · 1 comment

Comments

@fzb408
Copy link

fzb408 commented Oct 17, 2023

AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.怎么解决

@owo12321
Copy link
Owner

模型没加载进来,看下第435行指定的那个目录下有没有.pt文件

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