浏览代码

if statement fix

Dimitri Korsch 6 年之前
父节点
当前提交
abca07ae65
共有 1 个文件被更改,包括 1 次插入1 次删除
  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