Traceback (most recent call last):
File "object_tracker.py", line 18, in <module>
from core.yolov4 import filter_boxes
File "C:\Users\USER\Downloads\yolov4-deepsort-master\yolov4-deepsort-master\core\yolov4.py", line 292, in <module>
def filter_boxes(box_xywh, scores, score_threshold=0.4, input_shape = tf.constant([416,416])):
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\constant_op.py", line 264, in constant
allow_broadcast=True)
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\constant_op.py", line 275, in _constant_impl
return _constant_eager_impl(ctx, value, dtype, shape, verify_shape)
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\constant_op.py", line 300, in _constant_eager_impl
t = convert_to_eager_tensor(value, ctx, dtype)
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\constant_op.py", line 97, in convert_to_eager_tensor
ctx.ensure_initialized()
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\context.py", line 524, in ensure_initialized
config_str = self.config.SerializeToString()
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\context.py", line 986, in config
gpu_options = self._compute_gpu_options()
File "C:\Users\USER\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\context.py", line 1045, in _compute_gpu_options
raise ValueError("Memory growth cannot differ between GPU devices")
ValueError: Memory growth cannot differ between GPU devices
In Multi-GPUs environment, previous code occur
ValueError: Memory growth cannot differ between GPU devices
inobject_tracker.py
file.- Previous
object_tracker.py
-Modified
object_tracker.py
: Line 8Environment
GPU is :
ValueError
See more about tensorflow docs : https://www.tensorflow.org/guide/gpu