Giter VIP home page Giter VIP logo

Comments (2)

dyyzhmm avatar dyyzhmm commented on June 23, 2024

The trace log is:
InvalidArgumentError Traceback (most recent call last)
in ()
4
5 print (type(test_dataset))
----> 6 for (batch,(Xi, Xj,label )) in enumerate(test_dataset):
7 print (Xi.shape)
8

~/anaconda3/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py in next(self)
522
523 def next(self): # For Python 3 compatibility
--> 524 return self.next()
525
526 def _next_internal(self):

~/anaconda3/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py in next(self)
553 """
554 try:
--> 555 return self._next_internal()
556 except errors.OutOfRangeError:
557 raise StopIteration

~/anaconda3/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)
543 self._resource,
544 output_types=self._flat_output_types,
--> 545 output_shapes=self._flat_output_shapes)
546
547 return sparse.deserialize_sparse_tensors(

~/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gen_dataset_ops.py in iterator_get_next_sync(iterator, output_types, output_shapes, name)
2181 else:
2182 message = e.message
-> 2183 _six.raise_from(_core._status_to_exception(e.code, message), None)
2184
2185

~/anaconda3/lib/python3.6/site-packages/six.py in raise_from(value, from_value)

InvalidArgumentError: Input to reshape is a tensor with 37686 values, but the requested shape has 37632
[[Node: image_reshape = Reshape[T=DT_UINT8, Tshape=DT_INT32](DecodeRaw, image_reshape/shape)]] [Op:IteratorGetNextSync]

from face-similarity.

dyyzhmm avatar dyyzhmm commented on June 23, 2024

I fixed it by comment out one line code:
#test_dataset = test_dataset.map(random_resize_and_crop)

It runs ok now. Thank you.

from face-similarity.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.