File size: 2,171 Bytes
fe7d322 d17c6ec fe7d322 d17c6ec fe7d322 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | """Render environment counts for the unified 15 Hz release."""
import csv
from pathlib import Path
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from PIL import Image
root=Path(__file__).absolute().parents[1]
mapping=list(csv.DictReader((root/'episode_mapping.csv').open()))
groups=[('bucheon_warehouse/aisle_workcell','BUCHEON WAREHOUSE','Aisle workcell',448),
('bucheon_warehouse/wall_side_pallet','BUCHEON WAREHOUSE','Wall-side pallet',470),
('inha_indoor_lab','INHA INDOOR LAB','Source-name environment label',391)]
fig=plt.figure(figsize=(18,8.5),facecolor='#f4f6f8')
fig.text(.045,.93,'IGRIS TELEOP / BOX PALLETIZING',fontsize=24,fontweight='bold',color='#142433')
fig.text(.045,.875,'834 episodes · 463,905 frames · 15 Hz · LeRobot v3.0',fontsize=17,color='#405669')
for i,(env,title,subtitle,did) in enumerate(groups):
rows=[e for e in mapping if e['environment']==env];frames=sum(int(e['length']) for e in rows)
sessions=len({e['session_id'] for e in rows});x=.045+i*.315
fig.text(x,.795,title,fontsize=14,fontweight='bold',color='#142433')
fig.text(x,.757,subtitle,fontsize=12,color='#536779')
ax=fig.add_axes([x,.38,.28,.35]);ax.imshow(Image.open(root/f'figures/headcam_d{did:03d}_episode000.png'));ax.axis('off')
fig.text(x,.325,f'{len(rows):,} episodes',fontsize=25,fontweight='bold',color='#166a76')
fig.text(x,.278,f'{sessions} sessions · {frames:,} retained frames',fontsize=14,color='#233d50')
fig.text(x,.22,f'Global episodes {rows[0]["episode_index"]}–{rows[-1]["episode_index"]}',fontsize=12,color='#536779')
fig.text(x,.175,f'Representative source: d{did:03d} / episode 0 / head RGB',fontsize=10,color='#536779')
fig.text(.045,.093,'RGB and tactile heatmaps | 14 arm positions, actions, joint torques | two 6-axis EE wrench estimates.',fontsize=12,color='#405669')
fig.text(.045,.056,'30 Hz recordings retain every second frame. Torque availability is stored in episode metadata.',fontsize=11,color='#536779')
for suffix in ['png','pdf']:fig.savefig(root/f'figures/robot_environments.{suffix}',dpi=180,facecolor=fig.get_facecolor())
plt.close(fig)
|