MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / save_texts

Function save_texts

sat/train_video.py:37–41  ·  view source on GitHub ↗
(texts, save_dir, iterations)

Source from the content-addressed store, hash-verified

35
36
37def save_texts(texts, save_dir, iterations):
38 output_path = os.path.join(save_dir, f"{str(iterations).zfill(8)}")
39 with open(output_path, "w", encoding="utf-8") as f:
40 for text in texts:
41 f.write(text + "\n")
42
43
44def save_video_as_grid_and_mp4(video_batch: torch.Tensor, save_path: str, T: int, fps: int = 5, args=None, key=None):

Callers 1

log_videoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected