suvoooo / learn-tensorflow Goto Github PK
View Code? Open in Web Editor NEWLearning Tensorflow Step by Step:: Concepts, Examples & Applications
Learning Tensorflow Step by Step:: Concepts, Examples & Applications
Hi,
I am a Tensorflow noob and was wondering what is missing after the following compilation in the script:
# face_key_model.compile(loss='mse',
# optimizer=sgd,
# metrics=['acc'])
I was trying to fit with the following parameters:
face_key_model.fit(train_ims_clean,
clean_keypoints_arr,
validation_split= 0.05,
batch_size=64,
epochs=300,
callbacks=[customCallbacks(), reduce_lr, lrdecay, earlystop],
verbose=0)
But I get an error message when I want to include earlystop:
File "C:\Users\xxx\anaconda3\envs\Keras\lib\site-packages\keras\callbacks.py", line 285, in set_model
callback.set_model(model)
AttributeError: 'function' object has no attribute 'set_model'
Once I omit earlystop
, training does work, but the network fails miserably after a few epochs of training as presumably the weights shoot up to infinity (or minus infinity) and so does the loss..
Any help?
from 2nd-5th stage why do we use the res_identity more than once?
`#2nd stage
x = res_conv(x, s=1, filters=(64, 256))
x = res_identity(x, filters=(64, 256))
x = res_identity(x, filters=(64, 256))
x = res_conv(x, s=2, filters=(128, 512))
x = res_identity(x, filters=(128, 512))
x = res_identity(x, filters=(128, 512))
x = res_identity(x, filters=(128, 512))
x = res_conv(x, s=2, filters=(256, 1024))
x = res_identity(x, filters=(256, 1024))
x = res_identity(x, filters=(256, 1024))
x = res_identity(x, filters=(256, 1024))
x = res_identity(x, filters=(256, 1024))
x = res_identity(x, filters=(256, 1024))
x = res_conv(x, s=2, filters=(512, 2048))
x = res_identity(x, filters=(512, 2048))
x = res_identity(x, filters=(512, 2048))
`
First of all, thank you for your amazing explanation along with the code. But the images you provided are not loading. So it's difficult to follow your explanation. Please update the notebook so that it will load the images.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.