Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下,如何输入自己的图片数据集 #1

Open
kaijie-wang opened this issue Mar 27, 2018 · 6 comments
Open

请教一下,如何输入自己的图片数据集 #1

kaijie-wang opened this issue Mar 27, 2018 · 6 comments

Comments

@kaijie-wang
Copy link

想用自己的图片数据集来试一下,是需要做成和MNIST一样的数据格式吗

@zhuofupan
Copy link
Owner

是的要自己做一个数据集,看你的数据是什么格式的,一般是要在python内转成 numpy.array 。
比如我的是csv的格式,用 “with open(filename,'r',encoding="utf-8") as file: ”打开文件,可以参考“Tensorflow_deep-belief-network/base/read_te_data.py”

@kaijie-wang
Copy link
Author

谢谢,我再去研究一下

@liukang254
Copy link

请问Tensorflow_deep-belief-network/base/read_te_data.py这个文件在哪里,是删除了吗?

@zhuofupan
Copy link
Owner

是的。。。。我改成 read_dat_data 了

@liukang254
Copy link

那在请教您两个问题:我看了一下,您的这个可以用来做故障诊断,但是我看着数据里面好像没有给出带有标签的数据,是不需要,还是~?

@zhuofupan
Copy link
Owner

是的,标签自己做的,在read_dat_data 里,一个dat文件就是一个类别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants