我已经使用命令phpstorm [path]
通过PhpStorm打开项目/文件夹。
从2018.2更新到2018.3之后,该命令将打开每个具有较旧版本2018.2的项目/文件夹
如何解决该问题,该命令会打开当前版本?
答案 0 :(得分:2)
import tensorflow as tf
sess = tf.Session()
sess.run(tf.global_variables_initializer())
from keras import backend as K
K.set_session(sess)
K.set_learning_phase(0)
# Modelo resnet con pesos entrenados en imagenet
from keras.applications.resnet50 import ResNet50
model = ResNet50(weights='imagenet')
# exportar en tensorflow
import os
versions = [ int(x) for x in os.listdir('./resnet-classifier') ]
version_number = max(versions) + 1 if versions else 1
export_path = './resnet-classifier/{}'.format(version_number)
tf.saved_model.simple_save(sess, export_path,
inputs=dict(input_image=model.input),
outputs={t.name:t for t in model.outputs}
)
,然后将其覆盖。