Update dataset/datasets.py
Browse files- dataset/datasets.py +6 -6
dataset/datasets.py
CHANGED
|
@@ -64,13 +64,13 @@ class FineTuningDataset(torch.utils.data.Dataset):
|
|
| 64 |
self.color
|
| 65 |
|
| 66 |
bw_img = plt.imread(get_file_path(bw_name, self.data_path, self.mults_amount))
|
| 67 |
-
dfm_img = plt.imread(get_file_path(dfm_name, self.data_path, self.mults_amount))
|
| 68 |
|
| 69 |
-
bw_img = bw_img.astype('float32')
|
| 70 |
-
dfm_img = dfm_img.astype('float32')
|
| 71 |
|
| 72 |
-
color_img = bw_img[:, :, 0]
|
| 73 |
-
hint = dfm_img
|
| 74 |
|
| 75 |
-
return bw_img, color_img, hint, dfm_img
|
| 76 |
|
|
|
|
| 64 |
self.color
|
| 65 |
|
| 66 |
bw_img = plt.imread(get_file_path(bw_name, self.data_path, self.mults_amount))
|
| 67 |
+
dfm_img = plt.imread(get_file_path(dfm_name, self.data_path, self.mults_amount))
|
| 68 |
|
| 69 |
+
bw_img = bw_img.astype('float32')
|
| 70 |
+
dfm_img = dfm_img.astype('float32')
|
| 71 |
|
| 72 |
+
color_img = bw_img[:, :, 0]
|
| 73 |
+
hint = dfm_img
|
| 74 |
|
| 75 |
+
return bw_img, color_img, hint, dfm_img
|
| 76 |
|