tensorflow / tensorflow/models

Ask for help, run error

Open
#9,504 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

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/tree/master/official/...

2. Describe the bug

A clear and concise description of what the bug is.
Simply pass a True/False value to the training argument of the __call__ method of your layer or model.
INFO:tensorflow:Error reported to Coordinator: in user code:

/home/pjy/python3.6/lib/python3.6/site-packages/object_detection/model_lib_v2.py:356 _dummy_computation_fn  *
    labels)
/home/pjy/python3.6/lib/python3.6/site-packages/object_detection/model_lib_v2.py:113 _compute_losses_and_predictions_dicts  *
    prediction_dict = model.predict(
/home/pjy/python3.6/lib/python3.6/site-packages/object_detection/meta_architectures/ssd_meta_arch.py:570 predict  *
    feature_maps = self._feature_extractor(preprocessed_inputs)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:982 __call__  **
    self._maybe_build(inputs)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:2643 _maybe_build
    self.build(input_shapes)  # pylint:disable=not-callable
/home/pjy/python3.6/lib/python3.6/site-packages/object_detection/models/ssd_resnet_v1_fpn_keras_feature_extractor.py:145 build
    include_top=False)
/home/pjy/python3.6/lib/python3.6/site-packages/object_detection/models/keras_models/resnet_v1.py:303 resnet_v1_50
    layers=layers_override, **kwargs)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/applications/resnet.py:475 ResNet50
    input_tensor, input_shape, pooling, classes, **kwargs)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/applications/resnet.py:175 ResNet
    axis=bn_axis, epsilon=1.001e-5, name='conv1_bn')(x)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:926 __call__
    input_list)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:1098 _functional_construction_call
    self._maybe_build(inputs)
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py:2643 _maybe_build
    self.build(input_shapes)  # pylint:disable=not-callable
/home/pjy/python3.6/lib/python3.6/site-packages/tensorflow/python/keras/layers/normalization.py:350 build
    input_shape)

ValueError: ('Input has undefined `axis` dimension. Input shape: ', TensorShape([None, 64, None, None]))

Run your own training data error, also reported the same error during the installation #9496 I don’t know what went wrong, anyone encountered the same problem, please help, thanks

3. Steps to reproduce

Steps to reproduce the behavior.

4. Expected behavior

A clear and concise description of what you expected to happen.

5. Additional context

Include any logs that would be helpful to diagnose the problem.

6. System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • Mobile device name if the issue happens on a mobile device:
  • TensorFlow installed from (source or binary):
  • TensorFlow version (use command below):2.3.1
  • Python version:3.6.5
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:

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.