Giter VIP home page Giter VIP logo

Comments (19)

farhanc4kra avatar farhanc4kra commented on September 22, 2024 19

just replacing
from keras import backend
with:
from tensorflow.keras import backend

from cvlib.

tommy3266 avatar tommy3266 commented on September 22, 2024 4

try the tensorflow version==1.15.3 and keras version==2.2.4,it works,trust me!

from cvlib.

Kehlo avatar Kehlo commented on September 22, 2024 3

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.

 avatar commented on September 22, 2024 2

downgrading keras to 2.2.4 solved my same issue

from cvlib.

arunponnusamy avatar arunponnusamy commented on September 22, 2024

Hey @myrzx, do you have tensorflow installed ?

from cvlib.

myrzx avatar myrzx commented on September 22, 2024

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.

kumaranu7 avatar kumaranu7 commented on September 22, 2024

Hey @myrzx i am facing the same issue.. @arunponnusamy can you help me out??

from cvlib.

arunponnusamy avatar arunponnusamy commented on September 22, 2024

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.

kumaranu7 avatar kumaranu7 commented on September 22, 2024

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.

arunponnusamy avatar arunponnusamy commented on September 22, 2024

Can you try installing cvlib and the dependencies with pip ?
I haven't tested the installation with conda.

from cvlib.

kumaranu7 avatar kumaranu7 commented on September 22, 2024

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.

zulfiqarAlibalti avatar zulfiqarAlibalti commented on September 22, 2024

I am also same issue please any one help .I am using pip miniconda tf and keras.

from cvlib.

pdrapi avatar pdrapi commented on September 22, 2024

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.

gmt710 avatar gmt710 commented on September 22, 2024

thoughtworksarts/EmoPy#44 (comment)

from cvlib.

Shrawant13 avatar Shrawant13 commented on September 22, 2024

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.

pdrapi avatar pdrapi commented on September 22, 2024

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.

arunponnusamy avatar arunponnusamy commented on September 22, 2024

@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.

Yumlembam avatar Yumlembam commented on September 22, 2024

change
Import keras..
to
Import tensorflow.keras..

from cvlib.

aWindTalker avatar aWindTalker commented on September 22, 2024

from cvlib.

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.