downloading imgs
Browse files- TID2008.py +2 -2
TID2008.py
CHANGED
@@ -71,8 +71,8 @@ class TID2008(datasets.GeneratorBasedBuilder):
|
|
71 |
# reference_path = dl_manager.download("reference_images")
|
72 |
# distorted_path = dl_manager.download("distorted_images")
|
73 |
|
74 |
-
reference_paths = data["Reference"].apply(lambda x: os.path.join("reference_images", x))
|
75 |
-
distorted_paths = data["Distorted"].apply(lambda x: os.path.join("distorted_images", x))
|
76 |
|
77 |
reference_paths = dl_manager.download(reference_paths)
|
78 |
distorted_paths = dl_manager.download(distorted_paths)
|
|
|
71 |
# reference_path = dl_manager.download("reference_images")
|
72 |
# distorted_path = dl_manager.download("distorted_images")
|
73 |
|
74 |
+
reference_paths = data["Reference"].apply(lambda x: os.path.join("reference_images", x)).to_list()
|
75 |
+
distorted_paths = data["Distorted"].apply(lambda x: os.path.join("distorted_images", x)).to_list()
|
76 |
|
77 |
reference_paths = dl_manager.download(reference_paths)
|
78 |
distorted_paths = dl_manager.download(distorted_paths)
|