keijiro / Ngx

Ngx - Neural network based visual generator and mixer
316 stars 34 forks source link

Colab notebook error #3

Open presentcreative opened 5 years ago

presentcreative commented 5 years ago

I'm trying to create my own PICT files using the colab notebooks but I get to an error during main() of the second notebook.

Here are the errors:

WARNING:tensorflow:From :26: string_input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensor_slices(string_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...). WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/input.py:276: input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensor_slices(input_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...). WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/input.py:188: limit_epochs (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensors(tensor).repeat(num_epochs). WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/input.py:197: QueueRunner.init (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version. Instructions for updating: To construct input pipelines, use the tf.data module. WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/input.py:197: add_queue_runner (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version. Instructions for updating: To construct input pipelines, use the tf.data module. WARNING:tensorflow:From :27: WholeFileReader.init (from tensorflow.python.ops.io_ops) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.map(tf.read_file). WARNING:tensorflow:From :77: batch (from tensorflow.python.training.input) is deprecated and will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.batch(batch_size) (or padded_batch(...) if dynamic_pad=True). examples count = 120 WARNING:tensorflow:From :136: Supervisor.init (from tensorflow.python.training.supervisor) is deprecated and will be removed in a future version. Instructions for updating: Please switch to tf.train.MonitoredTrainingSession INFO:tensorflow:Running local_init_op. INFO:tensorflow:Done running local_init_op. INFO:tensorflow:Starting standard services. INFO:tensorflow:Starting queue runners. parameter_count = 57190084 loading model from checkpoint INFO:tensorflow:Error reported to Coordinator: <class 'ValueError'>, Can't load save_path when it is None.

ValueError Traceback (most recent call last)

in () ----> 1 main() in main() 141 print("loading model from checkpoint") 142 checkpoint = tf.train.latest_checkpoint(a.checkpoint) --> 143 saver.restore(sess, checkpoint) 144 145 max_steps = 2**32 /usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py in restore(self, sess, save_path) 1532 return 1533 if save_path is None: -> 1534 raise ValueError("Can't load save_path when it is None.") 1535 1536 if not checkpoint_management.checkpoint_exists(compat.as_text(save_path)): ValueError: Can't load save_path when it is None. ---------------------------------------------- any ideas?
keijiro commented 5 years ago

Select "Reset all runtimes" and start over. Does it still reproduce after that?

presentcreative commented 5 years ago

Unfortunately the same errors show up after selecting Reset all runtimes.

0000marcosg commented 5 years ago

Hi. I'm getting the same error. Its like is trying to find a checkpoint file to restore instead of creating a new one.

0000marcosg commented 5 years ago

Ok. I get it to run by setting the --checkpoint argument as None in default

parser.add_argument("--checkpoint", default = None, help="directory with checkpoint to resume training from or use for testing")

But I really dont know if im be able to restore a training session.

keijiro commented 5 years ago

Nice catch. You have to clear the checkpoint_dir argument in the settings section when you don't have any checkpoint to restore.

@0000marcosg You can restore a session with that argument. I used it a lot in the previous project.

0000marcosg commented 5 years ago

Yes, thank you! Just tested and is restoring the session.

presentcreative commented 5 years ago

Using 0000marcosg change and resetting all runtimes has solved this for me, thanks

ReallyRad commented 5 years ago

setting checkpoint dir to None in the parser fixed it for me as well.

Thank you for the awesome work!