Ejemplo n.º 1
0
def main():

    srnet = nn.SRNET()

    dataset = dman.DataSet()

    sess = tf.compat.v1.InteractiveSession()
    sess.run(tf.compat.v1.global_variables_initializer())
    saver = tf.compat.v1.train.Saver()

    # tfp.training(sess=sess, neuralnet=srnet, saver=saver, dataset=dataset, epochs=FLAGS.epoch, batch_size=FLAGS.batch)
    tfp.validation(sess=sess, neuralnet=srnet, saver=saver, dataset=dataset)
Ejemplo n.º 2
0
def main():

    dataset = dman.DataSet(setname=FLAGS.setname, tr_ratio=FLAGS.tr_ratio)

    neuralnet = nn.ConvNet(data_dim=dataset.data_dim, channel=dataset.channel, num_class=dataset.num_class, learning_rate=FLAGS.lr)

    sess = tf.InteractiveSession()
    sess.run(tf.global_variables_initializer())
    saver = tf.train.Saver()

    tfp.training(sess=sess, neuralnet=neuralnet, saver=saver, dataset=dataset, epochs=FLAGS.epoch, batch_size=FLAGS.batch, dropout=FLAGS.dropout)
    tfp.validation(sess=sess, neuralnet=neuralnet, saver=saver, dataset=dataset)
Ejemplo n.º 3
0
def main():

    srnet = nn.SRNET()

    dataset = dman.DataSet()

    sess = tf.InteractiveSession()
    sess.run(tf.global_variables_initializer())
    saver = tf.train.Saver()

    tfp.training(sess=sess,
                 neuralnet=srnet,
                 saver=saver,
                 dataset=dataset,
                 iteration=int(FLAGS.iter),
                 batch_size=FLAGS.batch)
    tfp.validation(sess=sess, neuralnet=srnet, saver=saver, dataset=dataset)
Ejemplo n.º 4
0
def main():
    training_keys = ['100']
    dataset = dman.DataSet(key_tr=training_keys)
    lstm = nn.LSTM_Model(batch_size=FLAGS.batch, data_dim=dataset.data_dim)

    sess = tf.InteractiveSession()
    sess.run(tf.global_variables_initializer())
    saver = tf.train.Saver()

    tfp.training(sess=sess,
                 neuralnet=lstm,
                 saver=saver,
                 dataset=dataset,
                 batch_size=FLAGS.batch,
                 sequence_length=FLAGS.trainlen,
                 iteration=FLAGS.iter)
    tfp.validation(sess=sess,
                   neuralnet=lstm,
                   saver=saver,
                   dataset=dataset,
                   sequence_length=FLAGS.testlen)