Skip to content
Snippets Groups Projects
Commit 2ff46ca3 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Fixed a bug: condition is now properly formulated.

parent a5094cf7
Branches
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ def predict_samples(ds, model, cm=False, plot=False, **kwargs):
# check whether the dataset is a valid subset, i.e.
# an instance of pysegcnn.core.split.SceneSubset or
# an instance of pysegcnn.core.split.RandomSubset
if not isinstance(ds, RandomSubset) or not isinstance(ds, SceneSubset):
if not (isinstance(ds, RandomSubset) or isinstance(ds, SceneSubset)):
raise TypeError('ds should be an instance of {} or of {}.'
.format(repr(RandomSubset), repr(SceneSubset)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment