Skip to content

import label_map_util出错 #6

Description

@ygowill

下载了代码想尝试一下,但是在运行的时候出现了这个错误,想问问解决方案。错误提示如下:
Traceback (most recent call last):
File "test.py", line 7, in
from utils import label_map_util
File "/Users/qinkai/Desktop/wechat_jump_tensorflow-master/tensorflow/utils/label_map_util.py", line 208, in
options=None, file=DESCRIPTOR),
File "/Users/qinkai/anaconda3/envs/myPythonEnv/lib/python3.6/site-packages/google/protobuf/descriptor.py", line 497, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions