Comments (19)
just replacing
from keras import backend
with:
from tensorflow.keras import backend
from cvlib.
try the tensorflow version==1.15.3 and keras version==2.2.4,it works,trust me!
from cvlib.
Depending on your tensorflow version you have to find a fitting keras 2.2.x version. I was working with tf 1.13.1 and had to downgrade from keras 2.3.1 to 2.2.4. That solved the problem.
from cvlib.
downgrading keras to 2.2.4 solved my same issue
from cvlib.
Hey @myrzx, do you have tensorflow installed ?
from cvlib.
Hey @myrzx, do you have tensorflow installed ?
Yes, I did.By tensorflow. Python. Keras. In the backend get_graph to tf. Graph (), has now been solved this problem
from cvlib.
Hey @myrzx i am facing the same issue.. @arunponnusamy can you help me out??
from cvlib.
Hey @kumaranu7, can you share the detailed steps you followed which resulted in this issue ? also the system / platform details you are running the code on and version of the packages and python?
from cvlib.
On executing "conda install -c conda-forge keras" in command prompt the above error appeared.
Windows 10, Python 3.6
P.S. I am trying "conda install anaconda" in command prompt followed by "conda update --all", to solve the above problem.
If any modifications are needed do let me know.
from cvlib.
Can you try installing cvlib and the dependencies with pip ?
I haven't tested the installation with conda.
from cvlib.
I am using google colab now. Thanks for your help if any problem persists on this platform i will retrieve to cvlib. Thanks for the repository.
from cvlib.
I am also same issue please any one help .I am using pip miniconda tf and keras.
from cvlib.
After long hours of research what worked for me was downgrading the python version from 3.8.2 to 3.7.6, by creating the virtual environment. It worked for Mac OS.
command : virtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 venv
^path to the version of the python that you need ^name of venv
Hope that helps :)
from cvlib.
thoughtworksarts/EmoPy#44 (comment)
from cvlib.
After long hours of research what worked for me was downgrading the python version from 3.8.2 to 3.7.6, by creating the virtual environment. It worked for Mac OS.
command : virtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 venv
^path to the version of the python that you need ^name of venv
Hope that helps :)
Can you please give me the steps to do it
from cvlib.
After long hours of research what worked for me was downgrading the python version from 3.8.2 to 3.7.6, by creating the virtual environment. It worked for Mac OS.
command : virtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 venv
^path to the version of the python that you need ^name of venv
Hope that helps :)Can you please give me the steps to do it
Download python version 3.7.6 from this website: https://www.python.org/downloads/release/python-376/
Download virtual environment, for mac users in terminal type -> pip install virtualenv
I don't know what is it for windows, google it if needed.
Then create a virtual environment by using this command:
virtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 venv
where the path is the path to your python 3.7.6 (installed folder)
Activate the virtual environment : source venv/bin/activate
Now you are in the virtual environment that you created. Now pip install all of the packages you need for your project here.
from cvlib.
@Shrawant13 can you try with the latest version of cvlib (0.2.4) ? I have switched from standalone keras to tf.keras . Hopefully this issue should go away.
from cvlib.
change
Import keras..
to
Import tensorflow.keras..
from cvlib.
from cvlib.
Related Issues (20)
- object Detection color HOT 2
- is there anyway i can detect house in the image HOT 1
- The 'cvlib' distribution was not found and is required by the application in PyInstaller HOT 2
- What dataset have you used to make face detector part of this model? HOT 1
- Count objects detected using cvlib HOT 2
- ModuleNotFoundError HOT 3
- draw_bbox() Line size is fixed at a value of 2 pixels HOT 1
- No face detected in image HOT 1
- The recognition rate of pictures taken by wide-angle lens is low
- yolov4 HOT 4
- Invalid bounding boxes returned occasionally HOT 1
- Is there a way of using face recognition?
- How to add text as object to be detected
- Live Face Detect
- Unable to execute object_detection HOT 7
- library not working
- About Error invalid index to scalar variable in object_detection.py HOT 1
- Add requirements.txt
- 'str' object has no attribute 'shape' HOT 13
- This module is officially broken now with any of the latest python versions, eg python version higher than 3.9 HOT 2
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 cvlib.