Neural-Style-Transfer icon indicating copy to clipboard operation
Neural-Style-Transfer copied to clipboard

convert_all_kernels_in_model removed from tf2

Open olaviinha opened this issue 4 years ago • 1 comments

It appears this deprecated function has been removed at some point after 2020-06-23, and this no longer works with Tensorflow 2.4.0

from tensorflow.keras.utils import convert_all_kernels_in_model
ImportError: cannot import name 'convert_all_kernels_in_model'

olaviinha avatar Jan 01 '21 01:01 olaviinha

I see that in the Colab notebook provided, %tensorflow_version 1.x and INetwork.py are used, indicating tf 2 issues might not be relevant. However, this used to work with tf 2 in Colab just fine and dandy up until few months back at least. Tf 2 + inetwork_tf.py seems to have been able to handle larger images. Now that I fixed my own version of the notebook to run with tf 1 and INetwork.py, it works, but Colab seems to run out of memory pretty fast, even when using High-RAM env.

I.e. not entirely sure if valid issue, will leave to author to assess.

olaviinha avatar Jun 24 '21 18:06 olaviinha