Open lognat0704 opened 4 months ago
Same problem. Try the following changes.
old
if os.path.exists(group_smpl_path):
result_dict_list = np.load(group_smpl_path, allow_pickle=True)
result_dict_first = np.load(driving_paths[0], allow_pickle=True).item()
i = 0
for smpl_outs, cam_t, foc_len, file_path in tqdm(
zip(result_dict_list["smpl"], result_dict_list["camera"], result_dict_list["scaled_focal_length"], driving_paths)
):
img_fn, _ = os.path.splitext(os.path.basename(file_path))
result_dict = {key: value for key, value in result_dict_first.items()}
result_dict["smpls"] = smpl_outs
result_dict["cam_t"] = cam_t
result_dict["scaled_focal_length"] = foc_len
if args.view_transfer:
scaled_focal_length = reference_dict["scaled_focal_length"]
result_dict["cam_t"] = reference_dict["cam_t"]
result_dict["scaled_focal_length"] = scaled_focal_length
new
if os.path.exists(group_smpl_path):
result_dict_list = np.load(group_smpl_path, allow_pickle=True)
result_dict_first = np.load(driving_paths[0], allow_pickle=True).item()
i = 0
for smpl_outs, cam_t, file_path in tqdm(
zip(result_dict_list["smpl"], result_dict_list["camera"], driving_paths)
):
img_fn, _ = os.path.splitext(os.path.basename(file_path))
result_dict = {key: value for key, value in result_dict_first.items()}
result_dict["smpls"] = smpl_outs
result_dict["cam_t"] = cam_t
if args.view_transfer:
scaled_focal_length = reference_dict["scaled_focal_length"]
result_dict["cam_t"] = reference_dict["cam_t"]
result_dict["scaled_focal_length"] = scaled_focal_length
It's a bug. We will fix it in the following couple of days.
for smpl_outs, cam_t, file_path in tqdm( zip(result_dict_list["smpl"], result_dict_list["camera"], driving_paths) ): imgfn, = os.path.splitext(os.path.basename(file_path)) result_dict = {key: value for key, value in result_dict_first.items()} result_dict["smpls"] = smpl_outs result_dict["cam_t"] = cam_t if args.view_transfer: scaled_focal_length = reference_dict["scaled_focal_length"] result_dict["cam_t"] = reference_dict["cam_t"] result_dict["scaled_focal_length"] = scaled_focal_length
It works.
Hi I follow the instruction trying to build up my own motion data. In the 4.Transfer SMPL step. I encounter the following error:
How do I solve the issue?