From ebaeecdab0e5681670be82a1fca7b1d70149f7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ayd=C4=B1n=20Bayta=C5=9F?= Date: Wed, 5 Oct 2016 11:46:36 +0300 Subject: [PATCH] corrected a typo and a word error --- Network.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Network.py b/Network.py index 3be278a..9f29484 100755 --- a/Network.py +++ b/Network.py @@ -73,7 +73,7 @@ def deprocess_image(x): x = np.clip(x, 0, 255).astype('uint8') return x -def load_weights(weight_path, model): +def load_weights(weights_path, model): assert os.path.exists(weights_path), 'Model weights not found (see "weights_path" variable in script).' f = h5py.File(weights_path) for k in range(f.attrs['nb_layers']): @@ -160,7 +160,7 @@ def combine_loss_and_gradient(loss, gradient): return f_outputs def prepare_image(): - assert args.init_image in ["content", "noise"] , "init_image must be one of ['original', 'noise']" + assert args.init_image in ["content", "noise"] , "init_image must be one of ['content', 'noise']" if "content" in args.init_image: x = preprocess_image(base_image_path, True) else: @@ -334,4 +334,4 @@ def grads(self, x): imsave(fname, img) end_time = time.time() print('Image saved as', fname) - print('Iteration %d completed in %ds' % (i+1, end_time - start_time)) \ No newline at end of file + print('Iteration %d completed in %ds' % (i+1, end_time - start_time))