Comments (1)
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)
- Optimize AUC metric on compile function with R Keras API
- Resnet50 raises AttributeError: 'NoneType' object has no attribute 'image_data_format'
- An existing connection was forcibly closed by the remote host HOT 1
- Resnet50 has wrong shape after stem - problem was corrected in keras-applications version.
- Making a Keras layer dynamic for Tensorflow operations(Tensorflow object detection API) HOT 1
- Would it be possible to integrate object detection or image segmentation models?
- ImportError: cannot import name '_obtain_input_shape' from 'keras.applications.imagenet_utils' (C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\keras\applications\imagenet_utils.py) HOT 1
- -- issue is added by mistake --
- Why keras is slower HOT 1
- Why keras is slower'
- how to change the models' path ?
- No normalization in prepocess_input function HOT 1
- keras applications
- Loading Keras Model for Multiprocess
- download speed too slow HOT 2
- NameError: name 'X_val_prep' is not defined
- ValueError: Error when checking input: expected vgg16_input to have shape (244, 244, 3) but got array with shape (224, 224, 3)
- The model expects 0 input arrays, but only received one array.
- SignatureDoesNotMatch when downloading the releases v0.7 HOT 1
- I downloaded the pretrained model of resnet50 but it doesn't works
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 deep-learning-models.