mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-15 05:51:52 +00:00
chore(format): formating code
This commit is contained in:
@@ -364,7 +364,7 @@ class LeRobotDatasetMetadata:
|
|||||||
|
|
||||||
Depth stats are stored in the unit the frames were recorded in
|
Depth stats are stored in the unit the frames were recorded in
|
||||||
(``features[key]["info"]["depth_unit"]``), while frames are returned in
|
(``features[key]["info"]["depth_unit"]``), while frames are returned in
|
||||||
``output_unit`` on read. This converts the unit-bearing stat entries so
|
``output_unit`` on read. This converts the unit-bearing stat entries so
|
||||||
stats match the frames consumers see.
|
stats match the frames consumers see.
|
||||||
"""
|
"""
|
||||||
if self.stats is None:
|
if self.stats is None:
|
||||||
@@ -375,8 +375,7 @@ class LeRobotDatasetMetadata:
|
|||||||
continue
|
continue
|
||||||
factor = MM_PER_METRE if stored_unit == DEPTH_METER_UNIT else 1.0 / MM_PER_METRE
|
factor = MM_PER_METRE if stored_unit == DEPTH_METER_UNIT else 1.0 / MM_PER_METRE
|
||||||
self.stats[key] = {
|
self.stats[key] = {
|
||||||
stat: value if stat == "count" else value * factor
|
stat: value if stat == "count" else value * factor for stat, value in self.stats[key].items()
|
||||||
for stat, value in self.stats[key].items()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user