-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my result is very bad #2
Comments
my code is here import tensorflow as tf sns.set_style(style='white') Network parameterstf.flags.DEFINE_float('learning_rate', .0005, 'Initial learning rate.') FLAGS = tf.flags.FLAGS Define and create results foldersresults_folder = os.path.join('Results', FLAGS.dataset) Empty log foldertry: Get datadata = keras.datasets.mnist if FLAGS.dataset == 'mnist' else keras.datasets.fashion_mnist test_images维度:(10000, 28, 28)(train_images, train_labels), (test_images, test_labels) = data.load_data() Create tf datasetwith tf.variable_scope("DataPipe"):
def encoder(X):
def decoder(z):
Link encoder and decodermean维度:(?,2)z, mean_, std_dev = encoder(input_batch) Reshape input and output to flat vectorsflat_output = tf.reshape(output, [-1, 28 * 28]) with tf.name_scope('loss'): optimizer = tf.train.AdamOptimizer(FLAGS.learning_rate).minimize(loss) init_vars = [tf.local_variables_initializer(), tf.global_variables_initializer()] Training loopwith tf.Session(config=tf.ConfigProto(gpu_options=gpu_options)) as sess:
|
or simply run the code downloaded from this github, I can not get any meaningful thing, it's really odd. is there anything i forgot to do? |
have you slove this problem? i have the same result as you |
the reconstruction loss is very high as you can see in the image, but I don't know why
The text was updated successfully, but these errors were encountered: