Browse Source

if statement fix

Dimitri Korsch 6 years ago
parent
commit
abca07ae65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nabirds/dataset/mixins/parts.py

+ 1 - 1
nabirds/dataset/mixins/parts.py

@@ -64,7 +64,7 @@ class PartRevealMixin(BaseMixin):
 	def get_example(self, i):
 		im_obj = super(PartRevealMixin, self).get_example(i)
 		assert hasattr(self, "ratio"), "\"ratio\" attribute is missing!"
-		if not self.reveal_visible:
+		if self.reveal_visible:
 			return im_obj.reveal_visible(self.ratio)
 		return im_obj