Code Monkey home page Code Monkey logo

Comments (5)

JunweiLiang avatar JunweiLiang commented on May 10, 2024

This repo does not originally come with visualization instructions. Please refer to this thread. Other people have reported that they can do the visualization according to my reply. For an end-to-end inference and visualization, please refer to the social distancing project. Please post specific problems you have encountered in that repo.

from next-prediction.

thatsvenki038 avatar thatsvenki038 commented on May 10, 2024

Social distancing repo-- when I import tensorflow as tf.. it does not detect with tensorflow-gpu, when i install tensorflow instead of tensorflow-gpu it suggests gpu is required for me to compute( as per earlier github issues).

from next-prediction.

thatsvenki038 avatar thatsvenki038 commented on May 10, 2024

For inferencing do we nee gpu, Is there compatbility between socialdistancing and this repo related to gpu, I get the below error. I am using local gpu however tensorflowgpu gives me errors
File "code/inference/main.py", line 458, in
feed_dict=feed_dict)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/client/session.py", line 956, in run
run_metadata_ptr)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/client/session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/client/session.py", line 1359, in _do_run
run_metadata)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/client/session.py", line 1384, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Default MaxPoolingOp only supports NHWC on device type CPU
[[node model_0/pool0/max_pooling2d/MaxPool (defined at /home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/ops.py:1748) ]]

Original stack trace for u'model_0/pool0/max_pooling2d/MaxPool':
File "code/inference/main.py", line 263, in
gpuid=args.gpuid)
File "/home/venky/Desktop/Objectdetection/Next_Frame/next-prediction2/next-prediction-master/code/inference/Object_Detection_Tracking/models.py", line 98, in get_model
add_mask=config.add_mask)
File "/home/venky/Desktop/Objectdetection/Next_Frame/next-prediction2/next-prediction-master/code/inference/Object_Detection_Tracking/models.py", line 193, in init
return_elements=None
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/importer.py", line 405, in import_graph_def
producer_op_list=producer_op_list)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/importer.py", line 517, in _import_graph_def_internal
_ProcessNewOps(graph)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/importer.py", line 243, in _ProcessNewOps
for new_op in graph._add_new_tf_operations(compute_devices=False): # pylint: disable=protected-access
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/ops.py", line 3561, in _add_new_tf_operations
for c_op in c_api_util.new_tf_operations(self)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/ops.py", line 3451, in _create_op_from_tf_operation
ret = Operation(c_op, self)
File "/home/venky/anaconda3/envs/googlenext2/lib/python2.7/site-packages/tensorflow_core/python/framework/ops.py", line 1748, in init
self._traceback = tf_stack.extract_stack()

from next-prediction.

JunweiLiang avatar JunweiLiang commented on May 10, 2024

Please make sure tensorflow-gpu>= 1.10 < 2.0 is properly installed. You may try reinstalling it with python3.6 as well.

from next-prediction.

thatsvenki038 avatar thatsvenki038 commented on May 10, 2024

Closing the issue as it got resolved by installing this package
https://github.com/NVIDIA/tensorflow.git
which helps in using tensorflow-gpu 1.15 with higher CUDA tools ( i am using Cuda 11.4)

from next-prediction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.