adanet icon indicating copy to clipboard operation
adanet copied to clipboard

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

Open yuanmingqi opened this issue 6 years ago • 5 comments

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 !

yuanmingqi avatar Nov 26 '18 01:11 yuanmingqi

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

cweill avatar Nov 26 '18 21:11 cweill

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)

yuanmingqi avatar Nov 28 '18 12:11 yuanmingqi

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.

cweill avatar Nov 28 '18 17:11 cweill

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

yuanmingqi avatar Nov 29 '18 13:11 yuanmingqi

这个库是不是实验品?

xxllp avatar Dec 04 '18 01:12 xxllp