【问题标题】:deep-learning on Matlab with AMD graphic cards使用 AMD 显卡在 Matlab 上进行深度学习
【发布时间】:2016-05-16 21:33:27
【问题描述】:

如何在我的电脑上运行this example?我没有 Nvidia 显卡,所以我不能在 Matlab 中使用 Cuda。

我需要用 Matlab 来做,因为我一半的代码是用 Matlab 编写的,所有变量都是 Matlab 格式。

我的电脑有 ATI Radeon HD 4530 显卡。

我读了this page,但仍然难以理解哪个合适。

更新 1:我想训练一个用于图像分类的深度神经网络。类似于this example的任务。

Update2:当我运行 Update1 中提到的代码时,出现以下错误:

There is a problem with the CUDA driver or with this GPU device. Be sure that you have a supported GPU and that the
latest driver is installed.

Error in nnet.internal.cnn.SeriesNetwork/activations (line 48)
            output = gpuArray(data);

Error in SeriesNetwork/activations (line 269)
                YChannelFormat = predictNetwork.activations(X, layerID);

Error in DeepLearningImageClassificationExample (line 262)
trainingFeatures = activations(convnet, trainingSet, featureLayer, ...

Caused by:
    The CUDA driver could not be loaded. The library name used was 'nvcuda.dll'. The error was:
    The specified module could not be found.

【问题讨论】:

  • 我确信可以做到,但我不明白你想做什么。你打算用什么图书馆?它支持 Open CL 吗?你需要GPU加速吗?只能在 CPU 上运行它吗?
  • 我想训练一个用于图像分类的深度神经网络。与此示例类似的任务:it.mathworks.com/help/nnet/examples/…
  • 我没有想到任何特定的库,我只是想让它在 Matlab 中运行。我不需要 GPU 加速(但如果可以的话会很好:-))
  • 我把链接改成了其他更合适的matlab例子
  • 按照建议,我问了关于单独运行代码的问题:stackoverflow.com/questions/37310280/…

标签: matlab deep-learning ati


【解决方案1】:

是的,你可以。您必须创建 DLL 并使用 OpenCL。查看 S-Functions 和 Mex。

查看the documentation

您可以使用一些第三方工具。我个人从未尝试过。

Possible Tool

【讨论】:

  • 为什么选择 S-Function?据我了解,这里不涉及 Simulink。
  • 然后查看 mex 函数 :)
  • 感谢您的回答。我不知道应用您的解决方案需要付出多少努力。我正在寻找一个易于执行和理解的解决方案(与in your website 的讨论相同。我尝试以不同的方式提出我的问题(请参阅我的问题中的 update2):如何使用您的方法运行 matlab 示例?
  • 啊,我明白了。我认为 Mathworks 目前不支持 OpenCL。他们将 NVIDIA GPU 列为硬件要求。我将更新我对可能的第三方工具的回答。
【解决方案2】:

MatConvNet -> Work both on CPU and GPU.

MatConvNet 是一个 MATLAB 工具箱,用于实现用于计算机视觉应用的卷积神经网络 (CNN)。它简单、高效,并且可以运行和学习最先进的 CNN。有许多用于图像分类、分割、人脸识别和文本检测的预训练 CNN。

另一种选择:CaffeOpenmp variant of caffe 特别支持 Matlab 并在 CPU 和 GPU 上工作

【讨论】:

    猜你喜欢
    • 2015-08-17
    • 2021-01-06
    • 2022-06-14
    • 2017-11-08
    • 2019-08-12
    • 1970-01-01
    • 2018-11-03
    • 1970-01-01
    • 2018-10-25
    相关资源
    最近更新 更多