upload phasenet
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -19,10 +19,10 @@ class PreTrainedPipeline():
|
|
| 19 |
# )
|
| 20 |
|
| 21 |
## load model
|
|
|
|
| 22 |
model = UNet(mode="pred")
|
| 23 |
sess_config = tf.compat.v1.ConfigProto()
|
| 24 |
sess_config.gpu_options.allow_growth = True
|
| 25 |
-
|
| 26 |
sess = tf.compat.v1.Session(config=sess_config)
|
| 27 |
saver = tf.compat.v1.train.Saver(tf.compat.v1.global_variables())
|
| 28 |
init = tf.compat.v1.global_variables_initializer()
|
|
|
|
| 19 |
# )
|
| 20 |
|
| 21 |
## load model
|
| 22 |
+
tf.compat.v1.reset_default_graph()
|
| 23 |
model = UNet(mode="pred")
|
| 24 |
sess_config = tf.compat.v1.ConfigProto()
|
| 25 |
sess_config.gpu_options.allow_growth = True
|
|
|
|
| 26 |
sess = tf.compat.v1.Session(config=sess_config)
|
| 27 |
saver = tf.compat.v1.train.Saver(tf.compat.v1.global_variables())
|
| 28 |
init = tf.compat.v1.global_variables_initializer()
|