Skip to content

Commit 7b6a406

Browse files
committed
remove swin debug prints
1 parent 4c531be commit 7b6a406

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

timm/models/swin_transformer_v2.py

-2
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,12 @@ def _calc_window_shift(
333333
target_shift_size = to_2tuple(target_shift_size)
334334

335335
if self.always_partition:
336-
print('ap', target_window_size, target_shift_size)
337336
return target_window_size, target_shift_size
338337

339338
target_window_size = to_2tuple(target_window_size)
340339
target_shift_size = to_2tuple(target_shift_size)
341340
window_size = [r if r <= w else w for r, w in zip(self.input_resolution, target_window_size)]
342341
shift_size = [0 if r <= w else s for r, w, s in zip(self.input_resolution, window_size, target_shift_size)]
343-
print('nap', window_size, shift_size)
344342
return tuple(window_size), tuple(shift_size)
345343

346344
def set_input_size(

timm/models/swin_transformer_v2_cr.py

-2
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ def __init__(
289289
None if self.dynamic_mask else self.get_attn_mask(),
290290
persistent=False,
291291
)
292-
print(self.dynamic_mask)
293-
294292
self.init_weights()
295293

296294
def _calc_window_shift(

0 commit comments

Comments
 (0)