Comments (4)
Ah! This gave me the hint I needed. pip install keras-vis
got me past that error; is that the correct package?
When I run
python saliency.py ./models/weights368.h5 ./samples/id2_vcd_swwp2s.mpg
I get farther--now the output looks like this:
Using TensorFlow backend.
Loading data from disk...
Data loaded.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Traceback (most recent call last):
File "saliency.py", line 65, in <module>
video, result = predict(sys.argv[1], sys.argv[2])
File "saliency.py", line 59, in predict
heatmap = visualize_saliency(lipnet.model, layer_idx, range(0,28), video.data)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/vis/visualization/saliency.py", line 125, in visualize_saliency
return visualize_saliency_with_losses(model.input, losses, seed_input, grad_modifier)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/vis/visualization/saliency.py", line 72, in visualize_saliency_with_losses
opt = Optimizer(input_tensor, losses, norm_grads=False)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/vis/optimizer.py", line 58, in __init__
self.loss_functions + [overall_loss, grads, self.wrt_tensor])
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2095, in function
return Function(inputs, outputs, updates=updates)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2049, in __init__
with tf.control_dependencies(self.outputs):
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3583, in control_dependencies
return get_default_graph().control_dependencies(control_inputs)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3314, in control_dependencies
c = self.as_graph_element(c)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2405, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/Users/michiyosony/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2494, in _as_graph_element_locked
% (type(obj).__name__, types_str))
TypeError: Can not convert a list into a Tensor or Operation.
This seems like a separate issue--unless it's a symptom of installing the wrong package.
from lipnet.
Hi @michiyosony, saliency visualization is still in progress.
You can contribute to it if you want :)
from lipnet.
@rizkiarm Got it, thanks :)
I am new to python and machine learning, but I will not hesitate to contribute if I happen to do something contribution-worthy.
from lipnet.
@michiyosony can you please tell me how you successfully used predict.py ? I am stuck on this for long time.
from lipnet.
Related Issues (20)
- Pre-processed data training
- ValueError: GRU(reset_after=False) is not compatible with GRU(reset_after=True) HOT 6
- How to train for unseen speaker?
- Other dataset
- Problem with extract-mouth-batch.py HOT 2
- Video should be 360*288 2 seconds 25frame?? HOT 2
- Can't convert the model to use it on tensorflowjs!
- Can I use the model on real time prediction?
- How to extract 75 of images? HOT 1
- Libs need to be re-writed
- train.py and predict.py have different result help please HOT 1
- run without gpu HOT 3
- RuntimeError: Unable to open /content/drive/My Drive/Colab Notebooks/LipNet-master/../common/predictors/shape_predictor_68_face_landmarks.dat HOT 1
- Issue with the extracted images in Extract_Mouth_Batch.py HOT 1
- anyone help !
- How to run step by step
- What does './train random_split [GPUs (optional)]' mean?
- What does './train random_split [GPUs (optional)]' mean?
- Cannot install in either Windows or GNU/Linux HOT 1
- FFMPEG
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 lipnet.