We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb43da7 + 6eb7dda commit 321c676Copy full SHA for 321c676
1 file changed
src/core.py
@@ -90,7 +90,7 @@ def assert_img_range(img):
90
def decategorize(mask):
91
return iu.decategorize(mask, iu.rgb2wk_map)
92
93
- with tf.Session() as sess:
+ with tf.compat.v1.Session() as sess:
94
snet_in = consts.snet_in('0.1.0', sess)
95
snet_out = consts.snet_out('0.1.0', sess)
96
def snet(img):
@@ -169,7 +169,7 @@ def inpainted(image, segmap):
169
'''
170
assert (255 >= image).all(), image.max()
171
assert (image >= 0).all(), image.min()
172
173
cnet_in = consts.cnet_in('0.1.0',sess)
174
cnet_out = consts.cnet_out('0.1.0',sess)
175
return inpaint(
0 commit comments