Code Monkey home page Code Monkey logo

Comments (7)

tkwoo avatar tkwoo commented on May 18, 2024 7

my env:
python: 3.6
tf: 1.8
keras: 2.2

I also faced same problem. and sovled it.

  1. model.save('./model/nn4.small2.lrn.h5') using python 2.7
  2. load nn4.small2.lrn.h5 and save model.save_weights('weight.h5')
  3. create model structure file: https://gist.github.com/tkwoo/a9da631b3f7d437b8961a7d5276a6087
  4. model = facenet_keras.facenet()
  5. model.load_weights('weight.h5')

from keras-openface.

sagartesla avatar sagartesla commented on May 18, 2024

@dgolano You should use python 2.7 .
I also got the same error related to bad marshal.
Now I am able to load these model without any error.
My current version are
python - 2.7.12
keras - 2.1.1
tensorflow- 1.0.0

from keras-openface.

beimingmaster avatar beimingmaster commented on May 18, 2024

i have same error

from keras-openface.

beimingmaster avatar beimingmaster commented on May 18, 2024

my environment:
python: 3.5.2
tensorflow: 1.3
cuda: 8.0

from keras-openface.

cskostas87 avatar cskostas87 commented on May 18, 2024

are you (@beimingmaster ) find a solution for bad marshal problem?

from keras-openface.

Aditya-Ashtekar avatar Aditya-Ashtekar commented on May 18, 2024

!git clone https://github.com/TessFerrandez/research-papers.git
%cd research-papers/facenet
from model import create_model
%cd ../..
#check if '%pwd' prints '/content' if using google colab
#download facenet_keras.py and upload to your colab's 'content/' direcory #https://gist.github.com/tkwoo/a9da631b3f7d437b8961a7d5276a6087
import facenet_keras
model = facenet_keras.facenet()

from keras-openface.

AlphaMoury avatar AlphaMoury commented on May 18, 2024

Actually, now that tensoflow absorbed keras, we should make the respective modifications:

keras -> tensorflow.keras

and replace all things like keras.layers.* by keras.layers

from keras-openface.

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.