Spaces:
Runtime error
Runtime error
| import os | |
| import tensorflow as tf | |
| import tensorflow_hub as hub | |
| os.environ['TFHUB_MODEL_LOAD_FORMAT'] = 'COMPRESSED' | |
| hub_model = hub.load('https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2') | |
| tf.saved_model.save(hub_model, 'style/1') |