zhuwq0 commited on
Commit
8c6a8b2
1 Parent(s): 7b07ad9

upload phasenet

Browse files
Files changed (1) hide show
  1. 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()