From 55dd73049f88eaaf5a089f09dd9d43075e3b3150 Mon Sep 17 00:00:00 2001 From: Johannes Bertram <90758413+JohannesBertram@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:38:30 +0100 Subject: [PATCH] fix file path but --- pysaliency/datasets/stimuli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysaliency/datasets/stimuli.py b/pysaliency/datasets/stimuli.py index 0029d90..7e03df2 100644 --- a/pysaliency/datasets/stimuli.py +++ b/pysaliency/datasets/stimuli.py @@ -342,7 +342,7 @@ def cached(self, value): self.stimuli.cache = value def load_stimulus(self, n): - return imread(self.filenames[n]) + return imread(self.filenames[n].replace("\\", "/")) def __getitem__(self, index): if isinstance(index, slice): @@ -441,4 +441,4 @@ def check_prediction_shape(prediction: np.ndarray, stimulus: Union[np.ndarray, S stimulus = as_stimulus(stimulus) if prediction.shape != stimulus.size: - raise ValueError(f"Prediction shape {prediction.shape} does not match stimulus shape {stimulus.size}") \ No newline at end of file + raise ValueError(f"Prediction shape {prediction.shape} does not match stimulus shape {stimulus.size}")