Skip to content

Commit db8a896

Browse files
committed
Delete redundant code
1 parent 6d7433d commit db8a896

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pdseg/models/backbone/xception.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ def entry_flow(self, data):
150150
chns = self.bottleneck_params["entry_flow"][2]
151151
strides = check_data(strides, block_num)
152152
chns = check_data(chns, block_num)
153-
#print("entry:", block_num, strides, chns)
154153

155154
# params to control your flow
156155
s = self.stride
157156
block_point = self.block_point
158157
output_stride = self.output_stride
159-
#print("entry:", s, block_point, output_stride)
160158
with scope("entry_flow"):
161159
for i in range(block_num):
162160
block_point = block_point + 1
@@ -167,13 +165,10 @@ def entry_flow(self, data):
167165
data, chns[i], [1, 1, stride])
168166
s = s * stride
169167
if check_points(block_point, self.decode_points):
170-
#print("decode shortcut:", block_point)
171168
self.short_cuts[block_point] = short_cuts[1]
172-
#print("entry:", i, data.shape)
173169

174170
self.stride = s
175171
self.block_point = block_point
176-
#print("entry:", s, block_point, output_stride)
177172
return data
178173

179174
def middle_flow(self, data):
@@ -183,12 +178,10 @@ def middle_flow(self, data):
183178
strides = check_data(strides, block_num)
184179
chns = check_data(chns, block_num)
185180

186-
#print("middle:", block_num, strides, chns)
187181
# params to control your flow
188182
s = self.stride
189183
block_point = self.block_point
190184
output_stride = self.output_stride
191-
#print("middle:", s, block_point, output_stride)
192185
with scope("middle_flow"):
193186
for i in range(block_num):
194187
block_point = block_point + 1
@@ -199,13 +192,10 @@ def middle_flow(self, data):
199192
data, chns[i], [1, 1, strides[i]], skip_conv=False)
200193
s = s * stride
201194
if check_points(block_point, self.decode_points):
202-
#print("decode shortcut:", block_point)
203195
self.short_cuts[block_point] = short_cuts[1]
204-
#print("middle:", i, data.shape)
205196

206197
self.stride = s
207198
self.block_point = block_point
208-
#print("middle:", s, block_point, output_stride)
209199
return data
210200

211201
def exit_flow(self, data):
@@ -214,14 +204,12 @@ def exit_flow(self, data):
214204
chns = self.bottleneck_params["exit_flow"][2]
215205
strides = check_data(strides, block_num)
216206
chns = check_data(chns, block_num)
217-
#print("exit:", block_num, strides, chns)
218207

219208
assert (block_num == 2)
220209
# params to control your flow
221210
s = self.stride
222211
block_point = self.block_point
223212
output_stride = self.output_stride
224-
#print("exit:", s, block_point, output_stride)
225213
with scope("exit_flow"):
226214
with scope('block1'):
227215
block_point += 1
@@ -231,9 +219,7 @@ def exit_flow(self, data):
231219
[1, 1, stride])
232220
s = s * stride
233221
if check_points(block_point, self.decode_points):
234-
#print("decode shortcut:", block_point)
235222
self.short_cuts[block_point] = short_cuts[1]
236-
#print("exit:", 0, data.shape)
237223
with scope('block2'):
238224
block_point += 1
239225
stride = strides[1] if check_stride(s * strides[1],
@@ -246,13 +232,10 @@ def exit_flow(self, data):
246232
activation_fn_in_separable_conv=True)
247233
s = s * stride
248234
if check_points(block_point, self.decode_points):
249-
#print("decode shortcut:", block_point)
250235
self.short_cuts[block_point] = short_cuts[1]
251-
#print("exit:", 1, data.shape)
252236

253237
self.stride = s
254238
self.block_point = block_point
255-
#print("exit:", s, block_point, output_stride)
256239
return data
257240

258241
def xception_block(self,
@@ -332,4 +315,3 @@ def xception_71():
332315
image = fluid.layers.data(name='image', shape=image_shape, dtype='float32')
333316
model = xception_65()
334317
logit = model.net(image)
335-
#print("logit:", logit.shape)

0 commit comments

Comments
 (0)