Giter Club home page Giter Club logo

Comments (1)

apiszcz avatar apiszcz commented on August 25, 2024

I am using this pattern with fine tuning and two output classes, observations: random classification output results with a single test image, about 50/50. Training was on 1 image for each class and indicated accuracy of 1.0 with an error less 1e-07. Displaying the image after the img_to_array call is an inverted color image. Is it possible I have a layer mismatch? The top 2 blocks are shown below or layers 172:.

        image = image_utils.load_img(file, target_size=(299, 299))
        image = image_utils.img_to_array(image)
        image = np.expand_dims(image, axis=0)
        image = preprocess_input(image)
        preds = model.predict(image)
[end of 'start history model'
Epoch 20/20
64/64 [==============================] - 5s - loss: 1.1921e-07 - acc: 1.0000 - val_loss: 1.1921e-07 - val_acc: 1.0000

end of 'train new model'
Epoch 20/20
2/1 [============================================================] - 0s - loss: 1.1921e-07 - val_loss: 1.1921e-07
]

Layers 172:

(172, 'mixed8')
(173, 'convolution2d_81')
(174, 'batchnormalization_81')
(175, 'convolution2d_78')
(176, 'convolution2d_82')
(177, 'batchnormalization_78')
(178, 'batchnormalization_82')
(179, 'convolution2d_79')
(180, 'convolution2d_80')
(181, 'convolution2d_83')
(182, 'convolution2d_84')
(183, 'averagepooling2d_9')
(184, 'convolution2d_77')
(185, 'batchnormalization_79')
(186, 'batchnormalization_80')
(187, 'batchnormalization_83')
(188, 'batchnormalization_84')
(189, 'convolution2d_85')
(190, 'batchnormalization_77')
(191, 'mixed9_0')
(192, 'merge_1')
(193, 'batchnormalization_85')
(194, 'mixed9')
(195, 'convolution2d_90')
(196, 'batchnormalization_90')
(197, 'convolution2d_87')
(198, 'convolution2d_91')
(199, 'batchnormalization_87')
(200, 'batchnormalization_91')
(201, 'convolution2d_88')
(202, 'convolution2d_89')
(203, 'convolution2d_92')
(204, 'convolution2d_93')
(205, 'averagepooling2d_10')
(206, 'convolution2d_86')
(207, 'batchnormalization_88')
(208, 'batchnormalization_89')
(209, 'batchnormalization_92')
(210, 'batchnormalization_93')
(211, 'convolution2d_94')
(212, 'batchnormalization_86')
(213, 'mixed9_1')
(214, 'merge_2')
(215, 'batchnormalization_94')
(216, 'mixed10')

from deep-learning-models.

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.