Spaces:
Runtime error
Runtime error
init
Browse files
test1.py
CHANGED
@@ -11,7 +11,7 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
|
11 |
class ImportGraph:
|
12 |
def __init__(self, checkpoint_dir):
|
13 |
self.graph = tf.Graph()
|
14 |
-
self.sess = tf.Session(graph=self.graph, config=tf.ConfigProto(allow_soft_placement=True, gpu_options=
|
15 |
with self.graph.as_default():
|
16 |
test_real = tf.placeholder(tf.float32, [1, None, None, 3], name='test')
|
17 |
with tf.variable_scope("generator", reuse=False):
|
|
|
11 |
class ImportGraph:
|
12 |
def __init__(self, checkpoint_dir):
|
13 |
self.graph = tf.Graph()
|
14 |
+
self.sess = tf.Session(graph=self.graph, config=tf.ConfigProto(allow_soft_placement=True, gpu_options=tf.GPUOptions(allow_growth=True)))
|
15 |
with self.graph.as_default():
|
16 |
test_real = tf.placeholder(tf.float32, [1, None, None, 3], name='test')
|
17 |
with tf.variable_scope("generator", reuse=False):
|