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

use the demo code train a new dataset (got some problems ) #32

Open
yuanmingqi opened this issue Nov 26, 2018 · 5 comments
Open

use the demo code train a new dataset (got some problems ) #32

yuanmingqi opened this issue Nov 26, 2018 · 5 comments

Comments

@yuanmingqi
Copy link

I got some problems with AdaNet API,when I use the customizing_adanet.ipynb in the
adanet/adanet/examples/tutorials/ to train a new dataset, I got some error like this:

InvalidArgumentError: ValueError: generator yielded an element of shape (150, 150) where an element of shape () was expected.
Traceback (most recent call last):

File "D:\Program Files\Anaconda3-5.2\lib\site-packages\tensorflow\python\ops\script_ops.py", line 206, in call
ret = func(*args)

File "D:\Program Files\Anaconda3-5.2\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 454, in generator_py_func
"of shape %s was expected." % (ret_array.shape, expected_shape))

ValueError: generator yielded an element of shape (150, 150) where an element of shape () was expected.

[[{{node PyFunc}} = PyFuncTin=[DT_INT64], Tout=[DT_FLOAT, DT_INT32], token="pyfunc_184", _device="/device:CPU:0"]]
[[{{node IteratorGetNext}} = IteratorGetNextoutput_shapes=[[?,150,150,1], [?]], output_types=[DT_FLOAT, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

 The old data is fashion_mnist, whose image is 28x28, my dataset is 150x150, I've tried lots of ways to adjust the parameters or change the demo code, but it still not works, that's so disappointing!How can I make it?I’d appreciate much if who can do me a favor !
@cweill
Copy link
Contributor

cweill commented Nov 26, 2018

Do you have a colab you can share with some sample data?

@yuanmingqi
Copy link
Author

yuanmingqi commented Nov 28, 2018

Do you have a colab you can share with some sample data?

here are the sample data,which has 8 classes,shape of 150x150,in 3 channels.I‘d appreciate much if you can do me a favor!(https://github.com/MingQi-Yuan/the-sample-data)

@cweill
Copy link
Contributor

cweill commented Nov 28, 2018

Could you please reproduce the error in one of the tutorial notebooks, and share the Colab? That will be most helpful to future users who have this problem.

@yuanmingqi
Copy link
Author

yuanmingqi commented Nov 29, 2018

Could you please reproduce the error in one of the tutorial notebooks, and share the Colab? That will be most helpful to future users who have this problem.

Here is the link of the Colab, I've already uploaded the notebook and the sample data into it.The link of the sample data

@xxllp
Copy link

xxllp commented Dec 4, 2018

这个库是不是实验品?

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