tensorflow / tensorflow/models
delf Cannot add tensor to the batch
Open
@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
- Successful generating tfrecords with build_image_dataset.py script
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.