Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get human_bbox.json #148

Open
xianrui-luo opened this issue Jul 28, 2024 · 1 comment
Open

how to get human_bbox.json #148

xianrui-luo opened this issue Jul 28, 2024 · 1 comment
Assignees

Comments

@xianrui-luo
Copy link

Hi, I wonder how can we get "human_bbox.json" as the one used in image_dataset.py

if self.bbox_crop:
human_bbox_json_path = video_dir / "human_bbox.json"
with open(human_bbox_json_path) as bbox_fp:
human_bboxes = json.load(bbox_fp)
resize_scale = random.uniform(*self.bbox_resize_ratio)
ref_W, ref_H = ref_img_pil.size
ref_bbox = process_bbox(human_bboxes[ref_img_idx], ref_H, ref_W, resize_scale)
ref_img_pil = crop_bbox(ref_img_pil, ref_bbox)
tgt_bbox = process_bbox(human_bboxes[tgt_img_idx], ref_H, ref_W, resize_scale)
tgt_img_pil = crop_bbox(tgt_img_pil, tgt_bbox)
tgt_guid_pil_lst = [crop_bbox(guid_pil, tgt_bbox) for guid_pil in tgt_guid_pil_lst]

@yuchenli-sony
Copy link

me too, but I found the author doesn't use it in train, but it is wired, I don't in actual, whether they use bbox or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants