fastpose icon indicating copy to clipboard operation
fastpose copied to clipboard

cannot run demo_2d.py: 'tensorflow' has no attribute 'ConfigProto'

Open autotel opened this issue 1 year ago • 0 comments

I am not experienced with python, so my capacity to figure out the solution on my own is quite limited.

  • I was following https://drnoodle.github.io/fastpose_html/ the installation seemingly went fine
  • at the point of running fastpose, it fails with an error

This is the command & output:

python demo_2d.py webcam 1
start frontend
layer     filters    size              input                output
    0 conv     16  3 x 3 / 1   416 x 416 x   3   ->   416 x 416 x  16
    1 max          2 x 2 / 2   416 x 416 x  16   ->   208 x 208 x  16
    2 conv     32  3 x 3 / 1   208 x 208 x  16   ->   208 x 208 x  32
    3 max          2 x 2 / 2   208 x 208 x  32   ->   104 x 104 x  32
    4 conv     64  3 x 3 / 1   104 x 104 x  32   ->   104 x 104 x  64
    5 max          2 x 2 / 2   104 x 104 x  64   ->    52 x  52 x  64
    6 conv    128  3 x 3 / 1    52 x  52 x  64   ->    52 x  52 x 128
    7 max          2 x 2 / 2    52 x  52 x 128   ->    26 x  26 x 128
    8 conv    256  3 x 3 / 1    26 x  26 x 128   ->    26 x  26 x 256
    9 max          2 x 2 / 2    26 x  26 x 256   ->    13 x  13 x 256
   10 conv    512  3 x 3 / 1    13 x  13 x 256   ->    13 x  13 x 512
   11 max          2 x 2 / 1    13 x  13 x 512   ->    13 x  13 x 512
   12 conv   1024  3 x 3 / 1    13 x  13 x 512   ->    13 x  13 x1024
   13 conv   1024  3 x 3 / 1    13 x  13 x1024   ->    13 x  13 x1024
   14 conv     30  1 x 1 / 1    13 x  13 x1024   ->    13 x  13 x  30
   15 detection
Traceback (most recent call last):
  File "demo_2d.py", line 69, in <module>
    start(default_media, int(argv[2]))
  File "demo_2d.py", line 21, in start
    annotator = AnnotatorInterface.build(max_persons=max_persons)
  File "/home/joaquin/nosync/fastpose/src/system/interface.py", line 55, in build
    pose_2d_model = ModelFactory.build_pose_2d_interface()
  File "/home/joaquin/nosync/fastpose/src/system/model_factory.py", line 34, in build_pose_2d_interface
    config = tf.ConfigProto()
AttributeError: module 'tensorflow' has no attribute 'ConfigProto'

System

OS: Ubuntu 22.04.4 LTS 64 bits
Graphics:  NVIDIA GeForce GTX 1050
CPU: Intel® Core™ i7-7700HQ CPU @ 2.80GHz × 8

autotel avatar Apr 05 '24 22:04 autotel