How to load images and tags into the torch for a convolutional neural network

I am new to Torch and want to upload some images from two directories (one for each label). I am trying to create a convolutional neural network that will classify images as belonging to the same class (for example, a binary classifier), but I am not sure how to upload images, paste these images and receive data in the correct format. I use the following tutorial, however, the training data is downloaded in a different way that 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.

Thank you very much in advance.

+4
source share
1

data.lua . , . , ; , .

+3

Source: https://habr.com/ru/post/1598369/


All Articles