ahmetozlu / tensorflow_object_counting_api

🚀 The TensorFlow Object Counting API is an open source framework built on top of TensorFlow and Keras that makes it easy to develop object counting systems!
https://www.youtube.com/watch?v=yT_1eKJTdfk
MIT License
1.32k stars 545 forks source link

How to Run mask_RCNN_counting_api_keras Folder #86

Closed Rahul214 closed 3 years ago

Rahul214 commented 3 years ago

Hi ahmetozlu, can you tell how to run single_image_counting.py file. It's showing AttributeError: module 'tensorflow' has no attribute 'log' in google colab. AttributeError: in user code:

/content/tensorflow_object_counting_api/mask_rcnn_counting_api_keras_tensorflow/model.py:365 call  *
    roi_level = log2_graph(tf.sqrt(h * w) / (224.0 / tf.sqrt(image_area)))
/content/tensorflow_object_counting_api/mask_rcnn_counting_api_keras_tensorflow/model.py:320 log2_graph  *
    return tf.log(x) / tf.log(2.0)[](url)

issue

ahmetozlu commented 3 years ago

Please check this.