tensorflow / tensorflow/models

Trouble using generate_tfrecord.py

Open
#8,860 7 comments 0 reactions 4 assignees View on GitHub

@syiming is already working on this.

Since Jul 28, 2020.

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

Description

I'm trying to run this file, but i get these error-messages. and I dont know what to do.

Traceback (most recent call last):
File "d:/tensorflow1/models/research/object_detection/generate_tfrecord.py", line 20, in
from object_detection.utils import dataset_util
File "D:\Anaconda\envs\gputest\lib\site-packages\object_detection\utils\dataset_util.py", line 22, in
import tensorflow.compat.v1 as tf
ModuleNotFoundError: No module named 'tensorflow.compat'

I have tensorflow installed.

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.