tensorflow / tensorflow/models

ImportError Encountered When Running TensorFlow Object Detection Training Script

Open
#11,200 0 comments 0 reactions 1 assignee View on GitHub

@laxmareddyp is already working on this.

Since May 1, 2024.

models:research 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.git

2. Describe the bug

When running the command " python -m object_detection.model_main_tf2 model_dir=../../workspace/training_demo/training_demo/models/my_ssd_resnet50_v1_fpn/pipeline.config"
I encounter an import error. The specific error message is not provided, but it results in an ImportError. I expect the command to execute without errors and begin training the object detection model.

tensorflow_bug

3. Expected Behavior

I expect the command to execute successfully, initiating the training process for the object detection model specified by the provided pipeline configuration file.

4. System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): AMI Name: Deep Learning OSS Nvidia Driver AMI GPU TensorFlow 2.15 (Ubuntu 20.04)

  • TensorFlow installed from (source or binary): pip install tensorflow

  • TensorFlow version (use command below): 2.16.1

  • Python version: 3.10.13

  • NVIDIA driver version: 535.161.08

  • CUDA versions available: cuda-12.2

  • EC2 server instance type: g4dn.xlarge

  • GPU model and memory: Tesla T4 and 16GB

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.