Comments (5)
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.
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.
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.
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.
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)
- regarding the preprocess.py HOT 1
- How did you do action detection on ActEV dataset?and how did you overcome class imbalance in ActEV VIRAT? HOT 2
- What is the backbone network used in the pretrained object detector for the person behavior module? HOT 2
- regarding visualization the ActEV world coordinates HOT 8
- Visualization Questions HOT 5
- try to visualization HOT 1
- How do you calculate Mean average precision? HOT 1
- request visualization HOT 6
- about the activity prediction HOT 5
- Download ActEV Dataset HOT 5
- How to get prepared data? HOT 1
- solved,thank you!
- exp mask HOT 1
- visualization of the results HOT 1
- train without activity prediction, Colab Running Time HOT 8
- Is there a opencv code to visualize predictions on my own video ? HOT 1
- Is there a config file for your model ? HOT 1
- Visualization of activity prediction HOT 1
- ETHUCY Dataset test split size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-prediction.