Skip to content

ModuleNotFoundError: No module named 'tensorflow.contrib' #3

@Daniel-Davies

Description

@Daniel-Davies

Hello,

Firstly, many thanks for your hard work in creating this project. I am a student interested in picking out text from historical maps, which I thought this repo would be useful for; I followed everything exactly in the "1.2 Customized installation" section, without any problems. However when running the example command on the example image:

python3 run_command_line.py --checkpoint-path <Strabo_Dep_DIR>/east_icdar2015_resnet_v1_50_rbox --image 1920-5.png --config configuration.ini

I get the following error:

defaultdict(<class 'int'>, {'result_path': 'static/results/test2'})
image name is 1920-5.png
2020-03-16 18:38:09.892366: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-03-16 18:38:09.892425: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-03-16 18:38:09.892433: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "run_command_line.py", line 374, in
main()
File "run_command_line.py", line 368, in main
detectText(args.image)
File "run_command_line.py", line 245, in detectText
rst = get_predictor(checkpoint_path)(img)
File "run_command_line.py", line 46, in get_predictor
import model
File ".../Strabo/strabo-text-recognition-deep-learning/model.py", line 4, in
from tensorflow.contrib import slim
ModuleNotFoundError: No module named 'tensorflow.contrib'

Is there a way to get this "slim" package via other means, as tensorflow.contrib is now depracated?

Thanks in advance,

Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions