[英]obtain xtrain, y train, xtest and ytrain From my own images data
My data is ordered in folders as follows: 我的数据在文件夹中的排序如下:
- train
* principal
* soup
* dessert
- test
* principal
* soup
* dessert
It contains 1750 64x64 img per folder in train and 250 p/folder in test. 它在火车中每个文件夹包含1750 64x64 img,在测试中包含250 p /文件夹。 I want to obtain xtest / ytest / xtrain / ytrain vars from that data.
我想从该数据获取xtest / ytest / xtrain / ytrain vars。 But I only find a way to do it from, for example CIFAR-10:
但是我只能从CIFAR-10中找到一种方法来做到这一点:
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
# x_train - training data(images), y_train - labels(digits)
Any thought? 任何想法? Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.