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

检测的时候出现的错误使用gpuArray/reshape #10

Open
bozki opened this issue Jun 10, 2020 · 2 comments
Open

检测的时候出现的错误使用gpuArray/reshape #10

bozki opened this issue Jun 10, 2020 · 2 comments

Comments

@bozki
Copy link

bozki commented Jun 10, 2020

当我尝试使用训练好的yolov3-tiny模型测试图像时,出现了如下错误:

错误使用gpuArray/reshape
元素数不能更改。请使用[]作为大小输入之一,以自动计算该维度的适当大小。

出错dlarray/reshape(Line 32)
objdata =reshape(objdata, varargin{:});

出错 yolov3v4Predict(line 67)
currentFeatureMap =reshape (currentFeatureMap,h,w,5+nc,na,bs);

出错:detect(line49)
outFeatures = yolov3v4Predict(cfg_file,weigh_file,I)

非常感谢您的工作,我将代码用于检测图像了,请问一下您遇到过这样的问题吗?如何解决呢,希望能得到您的解答

@cuixing158
Copy link
Owner

你的参数成功导入了吗

@kkxLly
Copy link

kkxLly commented Dec 16, 2020

当我尝试使用训练好的yolov3-tiny模型测试图像时,出现了如下错误:

错误使用gpuArray/reshape
元素数不能更改。请使用[]作为大小输入之一,以自动计算该维度的适当大小。

出错dlarray/reshape(Line 32)
objdata =reshape(objdata, varargin{:});

出错 yolov3v4Predict(line 67)
currentFeatureMap =reshape (currentFeatureMap,h,w,5+nc,na,bs);

出错:detect(line49)
outFeatures = yolov3v4Predict(cfg_file,weigh_file,I)

非常感谢您的工作,我将代码用于检测图像了,请问一下您遇到过这样的问题吗?如何解决呢,希望能得到您的解答

你的matlab的gpu环境没有配置好,2019a后的版本需要改gpuArray,参考链接:https://blog.csdn.net/qq_17783559/article/details/105474663 希望对你有帮助

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