Skip to content

Commit

Permalink
Merge pull request #169 from Visual-Behavior/fixe_encode_inverse
Browse files Browse the repository at this point in the history
depth encode inverse
  • Loading branch information
thibo73800 authored Apr 15, 2022
2 parents 523c4db + db2f840 commit 7a5b346
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aloscene/depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7a5b346

Please sign in to comment.