Update DSRNet/test_sirs.py
Browse files- DSRNet/test_sirs.py +6 -6
DSRNet/test_sirs.py
CHANGED
|
@@ -28,13 +28,13 @@ def remove_reflection(image_path):
|
|
| 28 |
temp_image_path = os.path.join(temp_dir.name, 'temp_image.png')
|
| 29 |
|
| 30 |
# Save the image to the temporary directory
|
| 31 |
-
with open(image_path, 'rb') as img_file:
|
| 32 |
-
|
| 33 |
-
|
| 34 |
|
| 35 |
-
datadir =
|
| 36 |
-
test_dataset_real = datasets.
|
| 37 |
-
|
| 38 |
test_dataloader_real = datasets.DataLoader(test_dataset_real, batch_size=1, shuffle=False, num_workers=opt.nThreads,
|
| 39 |
pin_memory=True)
|
| 40 |
|
|
|
|
| 28 |
temp_image_path = os.path.join(temp_dir.name, 'temp_image.png')
|
| 29 |
|
| 30 |
# Save the image to the temporary directory
|
| 31 |
+
# with open(image_path, 'rb') as img_file:
|
| 32 |
+
# img = Image.open(img_file)
|
| 33 |
+
# img.save(temp_image_path)
|
| 34 |
|
| 35 |
+
datadir = opt.base_dir
|
| 36 |
+
test_dataset_real = datasets.RealDataset(datadir)
|
| 37 |
+
|
| 38 |
test_dataloader_real = datasets.DataLoader(test_dataset_real, batch_size=1, shuffle=False, num_workers=opt.nThreads,
|
| 39 |
pin_memory=True)
|
| 40 |
|