Coder Social home page Coder Social logo

Train only age about age-gender-estimation HOT 1 CLOSED

yu4u avatar yu4u commented on May 16, 2024
Train only age

from age-gender-estimation.

Comments (1)

Zumbalamambo avatar Zumbalamambo commented on May 16, 2024

@yu4u since I want only the age, I tried getting the the as follows,

 predictions_a = Dense(units=101, kernel_initializer=self._weight_init, use_bias=self._use_bias,
                              kernel_regularizer=l2(self._weight_decay), activation="softmax")(flatten)

        model = Model(inputs=inputs, outputs=[ predictions_a])

        return model

however,it throws the following error,

Traceback (most recent call last):
File "wideres_conv.py", line 17, in
model.load_weights("input/weights.18-4.06.hdf5")
File "C:\Program Files\Anaconda3\lib\site-packages\keras\engine\topology.py", line 2572, in load_weights
load_weights_from_hdf5_group(f, self.layers)
File "C:\Program Files\Anaconda3\lib\site-packages\keras\engine\topology.py", line 3021, in load_weights_from_hdf5_group
str(len(filtered_layers)) + ' layers.')
ValueError: You are trying to load a weight file containing 31 layers into a model with 30 layers.

from age-gender-estimation.

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.