5

I'm new to Torch and would like to load some images from two directories (one for each label). I'm trying to build a convolutional neural network that will classify images as belonging to one class or another (i.e. a binary classifier) but I am unsure how load images, label those images and get the data into the correct format. I'm using the following tutorial, however the training data is loaded in a different way which I am not familiar with.

http://code.madbits.com/wiki/doku.php?id=tutorial_supervised

Hope someone can help me get started and point me in the right direction.

Many thanks in advance.

4

1 回答 1

4

检查 这个链接 里面的data.lua文件很容易理解。他们使用了火炬张量,代码是不言自明的。我已经清楚地了解了加载数据,阅读此链接后;希望它也能帮助你。

于 2015-08-07T10:29:01.187 回答