MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / save_text

Function save_text

sat/sample_video.py:90–93  ·  view source on GitHub ↗
(text: str, save_path: str)

Source from the content-addressed store, hash-verified

88 writer.append_data(frame)
89
90def save_text(text: str, save_path: str):
91 txt_save_path = os.path.join(save_path, "text.txt")
92 with open(txt_save_path, "w") as fout:
93 fout.write(text)
94
95def save_traj(traj: torch.tensor, save_path: str):
96 # Write the traj in the end of the txt file

Callers 1

sampling_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected