Spaces:
Runtime error
Runtime error
Update main_test_SRMNet.py
Browse files- main_test_SRMNet.py +1 -1
main_test_SRMNet.py
CHANGED
|
@@ -46,7 +46,7 @@ def main():
|
|
| 46 |
mul = 16
|
| 47 |
for file_ in files:
|
| 48 |
img = Image.open(file_).convert('RGB')
|
| 49 |
-
input_ = TF.to_tensor(img).unsqueeze(0).
|
| 50 |
|
| 51 |
# Pad the input if not_multiple_of 8
|
| 52 |
h, w = input_.shape[2], input_.shape[3]
|
|
|
|
| 46 |
mul = 16
|
| 47 |
for file_ in files:
|
| 48 |
img = Image.open(file_).convert('RGB')
|
| 49 |
+
input_ = TF.to_tensor(img).unsqueeze(0).to(device)
|
| 50 |
|
| 51 |
# Pad the input if not_multiple_of 8
|
| 52 |
h, w = input_.shape[2], input_.shape[3]
|