Anika232 commited on
Commit
173bd8c
·
verified ·
1 Parent(s): 0665cab

Update DSRNet/test_sirs.py

Browse files
Files changed (1) hide show
  1. 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
- img = Image.open(img_file)
33
- img.save(temp_image_path)
34
 
35
- datadir = temp_image_path
36
- test_dataset_real = datasets.DSRTestDataset(temp_image_path
37
- if_align=opt.if_align)
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