titu1994 / Neural-Style-Transfer

Keras Implementation of Neural Style Transfer from the paper "A Neural Algorithm of Artistic Style" (http://arxiv.org/abs/1508.06576) in Keras 2.0+
Apache License 2.0
2.27k stars 482 forks source link

Tensorflow 1 is unsupported in Colab #82

Open gkep opened 1 year ago

gkep commented 1 year ago

The very first cell in colab notebook gives this error. "ValueError: Tensorflow 1 is unsupported in Colab. Your notebook should be updated to use Tensorflow 2."

Is there a straightforward way to currently run this notebook in Colab? Is there somewhere a new version coherent with Colab?

Ofc, the later cells invoking the model fails as well with errors like: "ImportError: cannot import name 'convert_all_kernels_in_model' from 'keras.utils.layer_utils'"

Thank you in advance for help.