简体   繁体   English

从我自己的图像数据中获得xtrain,y train,xtest和ytrain

[英]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.

相关问题 tf.train.batch()与我自己的数据? 还有关于训练模型的问题 - tf.train.batch() with my own data? and an issue on training the model 如何从我自己的服务器显示图像 - How to display images from my own server 使用Tensorflow使用我自己的数据使用Inception和TFrecord训练图像分类器 - Using Tensorflow to train a image classifier using my own data using inception and TFrecords 应用程序显示除我自己以外的其他URL的URL图像 - App displays URL images from other URLs than my own 从谷歌图片中获取1st 5图片 - Obtain the 1st 5 images from google image 如何将 tf.data.Dataset 拆分为 x_train、y_train、x_test、y_test for keras - how to split up tf.data.Dataset into x_train, y_train, x_test, y_test for keras 如何使用自己的所见即所得编辑器插入图像 - How to insert images with my own WYSIWYG editor 如何用我自己的图像替换jquery滑块句柄 - How to replace the jquery slider handles with my own images 在我自己的网站上抓取一个页面,以显示缩略图(Rails) - Scrape a page on my own site for images to display thumbnails (Rails) 是否可以使用API​​在我自己的网站上搜索图像并获得结果? - Is it possible to search for images and get the result on my own website using an API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM