简体   繁体   English

如何读取 .hdf5 数据文件作为卷积神经网络的输入?

[英]how to read .hdf5 datafile as input to a convolutional neural network?

I have saved my large array of images and their labels in HDF5 format using this link: Saving and loading a large number of images (data) into a single HDF5 file which gives me following keys.我已使用此链接以 HDF5 格式保存了大量图像及其标签: 将大量图像(数据)保存并加载到单个 HDF5 文件中,该文件为我提供了以下键。
list of datasets:数据集列表:

['test_img', 'test_labels', 'train_img', 'train_labels', 'train_mean', 'val_img', 'val_labels']  

Now, I want to provide training data and training labels to a convolutional neural network (VGG-16 or ResNet) for training purpose and also want to validate and test my result using CNN.现在,我想向卷积神经网络(VGG-16 或 ResNet)提供training datatraining labels以进行训练,并且还想使用 CNN 验证和测试我的结果。 How can I input my data from HDF5 file into CNN?如何将 HDF5 文件中的数据输入 CNN?

Have a look at this open-source project tftables .看看这个开源项目tftables

This other thread also has a great detailed answer by mikkola, explaining how to use your own generator with the new Tensorflow Dataset API otherwise.另一个线程也有 mikkola 的一个非常详细的答案,解释了如何将您自己的生成器与新的 Tensorflow Dataset API 一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM