frotms / mobilenetv3-tensorflow Goto Github PK
View Code? Open in Web Editor NEWthe multi-GPUs implementation of mobilenet v3 in tensorflow with tf.layers
License: Apache License 2.0
the multi-GPUs implementation of mobilenet v3 in tensorflow with tf.layers
License: Apache License 2.0
Can you share the pretraining model on the Imagenet dataset? Thank you
Thank you for your excellent implementation of mobilenet-v3. However, it has been puzzling me that I cannot reach the same top-1 and top-5 precision and recall scores as the same in original paper. It would be helpful to provide pre-trained checkpoint files. Anticipate for your reply. Thank you very much.
you lost the last bottle net layer (kernel 5, out 960)
There are 33.6M when I use the 'saved_model' pattern to save the mobilenetv3_large_1.0 models. Is there anything wrong that I can deal with?
Hi @frotms , @mttbx, @MenSanYan,
Based on your mobilenet_v3.py, I added training code below but I cannot reduce training loss from 6.9.
Do you have sample training code and its training loss? Or do you see any errors in my training code?
Thanks.
tf_mobilenetv3.zip
if __name__ == "__main__":
print("begin ...")
input_test = tf.zeros([2, 224, 224, 3])
num_classes = 1000
if 0:
model, end_points = mobilenet_v3_small(input_test, num_classes, multiplier=1.0, is_training=True, reuse=None)
else:
t_steps = 1000
t_batch = 128
tf.random.set_random_seed(1)
input_rand = tf.random.uniform(shape=(t_batch, 224, 224, 3), minval=0, maxval=1)
x_batch = input_rand
y_batch = tf.random.uniform(shape=(t_batch,), minval=0, maxval=1000, dtype=tf.int32)
logits, end_points = mobilenet_v3_small(x_batch, num_classes, multiplier=1.0, is_training=True, reuse=None)
loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, labels=y_batch))
#train_ops = tf.train.AdamOptimizer(learning_rate=0.0001).minimize(loss)
train_ops = tf.train.GradientDescentOptimizer(learning_rate=0.01).minimize(loss)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
for s in range(t_steps):
_, loss_batch = sess.run([train_ops, loss])
print("steps {:05d} loss {:03f}".format(s, loss_batch))
print("done !")
steps 00000 loss 6.914634
steps 00001 loss 6.907555
steps 00002 loss 6.905149
steps 00003 loss 6.905774
steps 00004 loss 6.904990
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.