Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix file path but
Browse files Browse the repository at this point in the history
JohannesBertram authored Nov 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7313880 commit 55dd730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysaliency/datasets/stimuli.py
Original file line number Diff line number Diff line change
@@ -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}")
raise ValueError(f"Prediction shape {prediction.shape} does not match stimulus shape {stimulus.size}")

0 comments on commit 55dd730

Please sign in to comment.