from tensorboardX import SummaryWriter from tensorboard.backend.event_processing import event_accumulator file_name = 'events.out.tfevents.1631881842.f991171001781011ec08b01045e6de32e845-chend2498-0' ea = event_accumulator.EventAccumulator(file_name) ea.Reload()
print(ea.Tags())
print(ea.Scalars('tutankham/reward'))
writer = SummaryWriter()
for event in ea.Scalars('tutankham/reward'): if event.step > 10000000: break writer.add_scalar('tutankham/reward', event.value, event.step) writer.close()