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

Function get_all_file_from_dir

sat/sample_video.py:105–112  ·  view source on GitHub ↗
(dir, ext=".pt")

Source from the content-addressed store, hash-verified

103 fout.write(str(waypoint) + "\n")
104
105def get_all_file_from_dir(dir, ext=".pt"):
106 out_files = []
107 for root, dirs, files in os.walk(dir):
108 for file in files:
109 if file.endswith(ext):
110 file_path = os.path.join(root, file)
111 out_files.append(file_path)
112 return out_files
113
114@torch.no_grad()
115def decode_latents(model, latents):

Callers 1

sampling_mainFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected