tensorflow / tensorflow/models

Model training with ssd_resnet50_v1_fpn_640x640_coco17_tpu-8 results in a Tensor / numpy array conflict

Open
#10,181 3 comments 0 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

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

Description

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/object_detection/model_main_tf2.py

2. Describe the bug

The script aborts with the error message:

NotImplementedError: Cannot convert a symbolic Tensor (cond_2/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

3. Steps to reproduce

Follow the tutorial at
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html

Then, at the step "Training the Model" it comes to using the the above-mentioned script and the error occurs.

4. Expected behavior

Iniformative output on the training progress as described in the tutorial.

5. Additional context

See full dump attached.

6. System information

  • WIndows 10
  • TensorFlow 2.5.0
  • Python 3.9.5
  • No GPU, no TPU, just main CPU.

dump.txt

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.