Comments (6)
Add a line "else: continue" after the condition code "if len(faces) > 0:", then run the script and it will work.
from emotion-recognition.
Hey man,
this error appears sometimes and i can't find a reason why is this error raising but what i did is that whenever it appears i run the script again and it worked, stupid solution till i find what really causing it.
from emotion-recognition.
I'm exactly the same, but as much as I run the script does not work: this is my log:
Using TensorFlow backend.
2018-10-31 19:07:29.243116: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2018-10-31 19:07:29.494922: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties:
name: TITAN V major: 7 minor: 0 memoryClockRate(GHz): 1.455
pciBusID: 0000:01:00.0
totalMemory: 12.00GiB freeMemory: 9.67GiB
2018-10-31 19:07:29.502864: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1490] Adding visible gpu devices: 0
2018-10-31 19:07:30.692378: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-10-31 19:07:30.696807: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0
2018-10-31 19:07:30.699723: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N
2018-10-31 19:07:30.709265: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9272 MB memory) -> physical GPU (device: 0, name: TITAN V, pci bus id: 0000:01:00.0, compute capability: 7.0)
Traceback (most recent call last):
File "real_time_video.py", line 53, in
for (i, (emotion, prob)) in enumerate(zip(EMOTIONS, preds)):
NameError: name 'preds' is not defined
from emotion-recognition.
Python code line Structure error causing this problem. the solution for this is to manage the for loop in a structured way so that it will able to read 'preds'.
Hope you have found what you were looking For. :)
from emotion-recognition.
#20 PR with fixing
from emotion-recognition.
just add this line :
else:
continue
from emotion-recognition.
Related Issues (20)
- Lessening number of emotions.
- No errors shown,but output also not displayed.
- val_acc KeyError using ModelCheckpoint. HOT 1
- ModuleNotFoundError: No module named 'tensorflow.python' HOT 2
- I have a problem about converting the file.
- How to add a new column?
- How can i run the emojis part?
- pip3 install -r requirements.txt don`t work HOT 3
- Error while executing 'python3 real_time_video.py' HOT 3
- 1323123
- How to turn the real time webcame to detect on pre-recorded video? HOT 3
- What is the tensorflow version that i should use ? is tensorflow-gpu==1.15.0 okay? HOT 1
- please tell me about the algorithms you used for your awesome project. Thank you HOT 1
- only one face detected , i tried with multiple personnes but it only detects one face HOT 1
- Rrr
- Using TensorFlow backend. Please help to solve it~
- How can we use it for multiple faces ? HOT 1
- Tensorflow
- can't download the dataset HOT 2
- AttributeError: 'NoneType' object has no attribute 'shape'
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 emotion-recognition.