anishathalye / neural-style

Neural style in TensorFlow! 🎨
https://anishathalye.com/an-ai-that-can-mimic-any-artist/
GNU General Public License v3.0
5.54k stars 1.51k forks source link

Sloooooow processing #149

Closed f1am3d closed 5 years ago

f1am3d commented 5 years ago

GTX 1070 Iteration 2/1000 (1 min 35 sec elapsed, 26 hr 34 min remaining)

anishathalye commented 5 years ago

It shouldn't be that slow. Are you sure it's using the GPU?

What's the full output of running the program? (TF usually prints helpful debugging info)

f1am3d commented 5 years ago

@anishathalye Are you sure it's using the GPU? I just checked it. No, it's not using. image

Output:

C:\Users\flamesoff\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core\__init__.py:29: UserWarning: loaded more than 1 DLL from .libs:
C:\Users\flamesoff\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\.libs\libopenblas.IPBC74C7KURV7CB2PKT5Z5FNR3SIBV4J.gfortran-win_amd64.dll
C:\Users\flamesoff\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\.libs\libopenblas.TXA6YQSD3GCQQC22GEQ54J2UDCXDXHWN.gfortran-win_amd64.dll
  stacklevel=1)
WARNING: Logging before flag parsing goes to stderr.
W0719 07:24:35.738497 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\vgg.py:9: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.

W0719 07:24:35.738497 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\vgg.py:11: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

neural_style.py:274: DeprecationWarning: `imread` is deprecated!
`imread` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use ``imageio.imread`` instead.
  img = scipy.misc.imread(path).astype(np.float)
neural_style.py:180: DeprecationWarning: `imresize` is deprecated!
`imresize` is deprecated in SciPy 1.0.0, and will be removed in 1.3.0.
Use Pillow instead: ``numpy.array(Image.fromarray(arr).resize())``.
  target_shape[1] / style_images[i].shape[1])
W0719 07:24:40.102498 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\stylize.py:73: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.

W0719 07:24:40.151499 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\vgg.py:78: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.

W0719 07:26:23.265520 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\stylize.py:98: The name tf.random_normal is deprecated. Please use tf.random.normal instead.

W0719 07:26:25.043521 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\stylize.py:165: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.

W0719 07:26:25.404521 24128 deprecation_wrapper.py:119] From D:\Documents\Projects\Neural\neural-style\stylize.py:171: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.

Optimization started...
Iteration    1/1000
Iteration    2/1000 (1 min 28 sec elapsed, 24 hr 40 min remaining)
anishathalye commented 5 years ago

Okay, so this seems like a Tensorflow problem rather than a neural-style problem.

This might help with debugging: https://stackoverflow.com/a/56829295

anishathalye commented 5 years ago

Going to assume this is resolved; feel free to re-open if not.