question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker problem with runGan.py 4

See original GitHub issue

runGan.py 4 produces some error I cannot fathom. †

root@b55c13b7b90f:/TecoGAN# python3 runGan.py 4 /usr/local/lib/python3.5/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Using TensorFlow backend.

Preparing train_data [Config] Use random crop [Config] Use random crop [Config] Use random flip Sequenced batches: 28250, sequence length: 7 Preparing validation_data [Config] Use random crop [Config] Use random crop [Config] Use random flip Sequenced batches: 5085, sequence length: 7 tData count = 28250, steps per epoch 28250 Traceback (most recent call last): File “main.py”, line 287, in <module> Net = FRVSR( rdata.s_inputs, rdata.s_targets, FLAGS ) File “/TecoGAN/lib/Teco.py”, line 522, in FRVSR return TecoGAN(r_inputs, r_targets, FLAGS, False) File “/TecoGAN/lib/Teco.py”, line 434, in TecoGAN update_loss = exp_averager.apply(update_list) File “/usr/local/lib/python3.5/dist-packages/tensorflow/python/training/moving_averages.py”, line 388, in apply raise ValueError(“Moving average already computed for: %s” % var.name) ValueError: Moving average already computed for: generator_loss/content_loss/Mean:0

† probably just stupid.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
flutidecommented, Sep 21, 2020

Some questionable hack made it work.

Changed the Dockerfile a bit:

from tensorflow/tensorflow:1.15.0rc2-gpu-py3

run pip3 install \
numpy>=1.14.3 \
scipy>=1.0.1 \
scikit-image>=0.13.0 \
matplotlib>=1.5.1 \
pandas>=0.23.1 \
Keras==2.1.3 \
torch>=0.4.0 \
torchvision>=0.2.1 \
opencv-python>=4.2.0.34 \
ipython>=7.4.0

and changed lib\ops.py according to suggestion in https://github.com/thunil/TecoGAN/issues/20#issuecomment-632592051

0reactions
flutidecommented, Sep 22, 2020

A bit perhaps ¯_(ツ)_/¯ But than again, I’m surprised it works at all (at my end) with GPU support under Win10 (20215.1000), WSL2, Docker etc. Thanks again Tom for all valuable input, in this thread and the other ones!

Read more comments on GitHub >

github_iconTop Results From Across the Web

zcT - River Thames Conditions - Environment Agency - GOV.UK
Hooligans 2 lektor pl chomikuj, Gta 4 tbogt mission 8, Guru 2016 song, ... Jafumega, Grade inflation is not a problem, Victor romero...
Read more >
An Introduction to Docker and Analysis of its Performance
1. Introduction. Docker is an open source platform that run applications and · 2. Docker. Docker provides a facility to automate the applications....
Read more >
Scorer - language model for determining which words occur ...
This section assumes that you are using a Docker image and container for training, as outlined in the environment section. If you are...
Read more >
TecoGAN - Readme - rotate
You can take a look of the parameter explanations in the runGan.py, feel free to try other scenes! python3 runGan.py 1 # Evaluate...
Read more >
Azure Virtual Machines : Using Chef, Puppet and Docker for ...
Azure Virtual Machines : Using Chef, Puppet and Docker for managing Linux VMs ... from Dec 1st – 4th , geared towards IT...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found