简体   繁体   中英

Tensorflow API Ubuntu 14.04 python 2.7 Error

from utils import label_map_util

ImportError: No module named utils

I tried to fix this problem but I can't, this similar my case Case 1 and Case 2

please help me if Ubuntu 14.04 with python 2.7 fix it

thanks in advance!!

First, clone this: https://github.com/tensorflow/models and include the path to your code the folder is in the research folder research/object_detection :

import sys

sys.path

sys.path.insert(0, 'path/to/your/object_detection')

Or this way

import( os )
os.chdir( 'path/to/your/object_detection' )

and change your import to be:

from object_detection.utils import label_map_util

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM