tensorflow / tensorflow/models

delf Cannot add tensor to the batch

Open
#10,929 0 comments 0 reactions 1 assignee View on GitHub

@laxmareddyp is already working on this.

Since Feb 12, 2023.

models:research type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • I checked to make sure that this issue has not been filed already.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/delf/delf/python/training/README.md

2. Describe the bug

  1. Successful generating tfrecords with build_image_dataset.py script
  2. Get error when used train.py as instruction said

3. Steps to reproduce

Use train.py as instruction said

4. Expected behavior

There is a check of all images in build_image_dataset, so all of my dataset is correct. How is possible that channel numbers in image is mismatched with expected input shape?

5. Additional context

Cannot add tensor to the batch: number of elements does not match. Shapes are: [tensor]: [321,321,1], [batch]: [321,321,3]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.