MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / get_generated_points

Function get_generated_points

eval/eval_utils.py:220–239  ·  view source on GitHub ↗
(
        root_path=None
)

Source from the content-addressed store, hash-verified

218 return pc_np, centroid, scale
219
220def get_generated_points(
221 root_path=None
222):
223 pointss = []
224 plys = glob.glob(os.path.join(f"{root_path}/*.ply"))
225
226 progress_bar = tqdm(
227 range(len(plys)),
228 dynamic_ncols=True,
229 )
230
231 for ply in plys:
232
233 points = common.read_ply(ply)
234 # points = normalize_point_cloud(points)
235 pointss.append(points)
236 progress_bar.update(1)
237
238 print(f"---- Sample : {len(pointss)} ----")
239 return pointss
240
241def get_nuScenes_points(
242 data_root="/ihoment/youjie10/qwt/dataset/nuscenes",

Callers 1

eval_resultsFunction · 0.85

Calls 2

tqdmFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected