From db2f840c3bdd56f8b600cf71cceb3da51841a13b Mon Sep 17 00:00:00 2001 From: Thibault N Date: Fri, 15 Apr 2022 11:43:56 +0200 Subject: [PATCH] depth encode inverse --- aloscene/depth.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aloscene/depth.py b/aloscene/depth.py index b8bb1288..2cc17b18 100644 --- a/aloscene/depth.py +++ b/aloscene/depth.py @@ -35,14 +35,12 @@ def __new__( cls, x, occlusion: Mask = None, - is_absolute=False, + is_absolute=True, scale=None, shift=None, *args, names=("C", "H", "W"), **kwargs): - if is_absolute and not (shift and scale): - raise AttributeError('absolute depth requires shift and scale arguments') if not is_absolute and (shift or scale): raise AttributeError('depth not in inverse state, can not pass scale or shift') if isinstance(x, str):