tensorflow / tensorflow/models

pyfunc_1 returns 2 values, but expects to see 1 values.pyfunc_1 returns 2 values, but expects to see 1 values.

Open
#7,463 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 22, 2020.

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

Description

Using Tensorflow Object Detection API, I tried training the pre-trained (Resnet101) model using model_main.py . However, when I use the deprecated file train.py, the training is perfect but with model_main.py, I'm getting the following error:
InvalidArgumentError: pyfunc_1 returns 2 values, but expects to see 1 values.
[[node map_3/while/PyFunc (defined at /etc/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/models/research/object_detection/utils/visualization_utils.py:440) = PyFunc[Tin=[DT_UINT8, DT_FLOAT, DT_INT64, DT_FLOAT], Tout=[DT_UINT8], _class=["loc:@map_3/while/TensorArrayWrite/TensorArrayWriteV3"], token="pyfunc_1", _device="/job:localhost/replica:0/task:0/device:CPU:0"](map_3/while/Squeeze/_3841, map_3/while/TensorArrayReadV3_3/_3843, map_3/while/TensorArrayReadV3_4/_3845, map_3/while/TensorArrayReadV3_5/_3847)]]

What is the top-level directory of the model you are using: Object Detection
Have I written custom code: No
OS Platform and Distribution: Ubuntu
TensorFlow installed from: Pip
TensorFlow version: 1.12.0
CUDA/cuDNN version: V9.0.176
GPU model and memory: GeForce GTX 1080 - 8GB
Exact command to reproduce: python model_main.py (arguments are predefined within the code)

P.S: Although there's an open issue #5661, no exact solution has been given for this error.

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.