Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data_gen/utils/process_video/extract_segment_imgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def extract_segment_job(
if "cuda" in device:
# determine which cuda index from subprocess id
pname = multiprocessing.current_process().name
pid = int(pname.rsplit("-", 1)[-1]) - 1
pid = 0 if pname == "MainProcess" else int(pname.rsplit("-", 1)[-1]) - 1
cuda_id = pid % total_gpus
device = f"cuda:{cuda_id}"

Expand Down