From 905a86288f45bbc1ab9fda2a2e83ecaada2977ae Mon Sep 17 00:00:00 2001 From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu> Date: Thu, 4 Feb 2021 17:22:55 +0100 Subject: [PATCH] Fixed a bug: Removed dataset path replacement for the moment. --- pysegcnn/core/trainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysegcnn/core/trainer.py b/pysegcnn/core/trainer.py index 502676b..77b88b4 100644 --- a/pysegcnn/core/trainer.py +++ b/pysegcnn/core/trainer.py @@ -2169,7 +2169,7 @@ class NetworkInference(BaseConfig): # replace drive path if dpath != drive_path: - scene[k] = v.replace(str(dpath), drive_path) + scene[k] = v.replace(str(dpath), str(drive_path)) def load_dataset(self, state, implicit=True, test=False, domain='src'): """Load the defined dataset. @@ -2230,7 +2230,7 @@ class NetworkInference(BaseConfig): ds.name = '_'.join([domain, ds_set]) # check the dataset path: replace by path on current machine - self.replace_dataset_path(ds, DRIVE_PATH) + # self.replace_dataset_path(ds, DRIVE_PATH) return ds -- GitLab