dyelax / Adversarial_Video_Generation

A TensorFlow Implementation of "Deep Multi-Scale Video Prediction Beyond Mean Square Error" by Mathieu, Couprie & LeCun.
MIT License
734 stars 184 forks source link

Updating Code to New Tensorflow version #34

Open jennahorrall opened 5 years ago

jennahorrall commented 5 years ago

Hi, I tried running avg_runner.py and I'm getting quite a few function deprecation errors. For example, the summary writer function here is getting an error:

File "avg_runner.py", line 191, in <module>
main()

File "avg_runner.py", line 183, in main runner = AVGRunner(num_steps, load_path, num_test_rec) File "avg_runner.py", line 32, in init self.summary_writer = tf.train.SummaryWriter(c.SUMMARY_SAVE_DIR, graph=self.sess.graph) AttributeError: 'module' object has no attribute 'SummaryWriter'

I'm using version 1.13.1 of tensorflow, but I noticed the code is only updated for version 0.12. I tried to install version 0.12 of tensorflow but it looks like the older versions are not available anymore. Are there any updated versions of this code using a newer version of tensorflow?

jian3xiao commented 5 years ago

@jennahorrall I use version 1.6.0 of tensorflow tf.train.SummaryWriter -> tf.summary.FileWriter use like this : tf.summary.scalar (tf.summary.xxx) tf.pack -> tf.stack

MadcowD commented 4 years ago

On 1.14 make sure to swtich the order of the concat arguments in the code :)