Spaces:
Running
Running
Update main_test_SUNet.py
Browse files- main_test_SUNet.py +0 -3
main_test_SUNet.py
CHANGED
|
@@ -61,10 +61,7 @@ def main():
|
|
| 61 |
square_input_, mask, max_wh = overlapped_square(input_.to(device), kernel=model_img, stride=stride)
|
| 62 |
output_patch = torch.zeros(square_input_[0].shape).type_as(square_input_[0])
|
| 63 |
for i, data in enumerate(square_input_):
|
| 64 |
-
s = time.time()
|
| 65 |
restored = model(square_input_[i])
|
| 66 |
-
f = time.time()
|
| 67 |
-
print(f-s)
|
| 68 |
if i == 0:
|
| 69 |
output_patch += restored
|
| 70 |
else:
|
|
|
|
| 61 |
square_input_, mask, max_wh = overlapped_square(input_.to(device), kernel=model_img, stride=stride)
|
| 62 |
output_patch = torch.zeros(square_input_[0].shape).type_as(square_input_[0])
|
| 63 |
for i, data in enumerate(square_input_):
|
|
|
|
| 64 |
restored = model(square_input_[i])
|
|
|
|
|
|
|
| 65 |
if i == 0:
|
| 66 |
output_patch += restored
|
| 67 |
else:
|