mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 02:06:15 +00:00
fix(compress): removing rerun compression for DepthImages
This commit is contained in:
@@ -109,9 +109,7 @@ def log_rerun_data(
|
|||||||
else:
|
else:
|
||||||
if arr.shape[-1] == 1:
|
if arr.shape[-1] == 1:
|
||||||
img_entity = (
|
img_entity = (
|
||||||
rr.DepthImage(arr, colormap=rr.components.Colormap.Viridis).compress()
|
rr.DepthImage(arr, colormap=rr.components.Colormap.Viridis)
|
||||||
if compress_images
|
|
||||||
else rr.DepthImage(arr, colormap=rr.components.Colormap.Viridis)
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
img_entity = rr.Image(arr).compress() if compress_images else rr.Image(arr)
|
img_entity = rr.Image(arr).compress() if compress_images else rr.Image(arr)
|
||||||
|
|||||||
Reference in New Issue
Block a user