Skip to content

Commit

Permalink
Update ego4d_narration_refinement.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjoya authored Jul 30, 2024
1 parent 0299f10 commit b6b5cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/preprocess/ego4d_narration_refinement.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def distributed_refine_narration(args: LiveOnePlusEncodingArguments):

if __name__ == "__main__":
args, = HfArgumentParser(LiveOnePlusEncodingArguments).parse_args_into_dataclasses()
executor = submitit.AutoExecutor(folder=f"outputs/preprocess/")
executor = submitit.AutoExecutor(folder=f"outputs/preprocess/", cluster='local' if args.num_nodes == 1 else 'slurm')
executor.update_parameters(
tasks_per_node=args.num_gpus,
nodes=args.num_nodes,
Expand All @@ -70,5 +70,6 @@ def distributed_refine_narration(args: LiveOnePlusEncodingArguments):
cpus_per_task=10,
mem_gb=240,
slurm_time='24:00:00',
timeout_min=600,
)
job = executor.submit(distributed_refine_narration, args)

0 comments on commit b6b5cf9

Please sign in to comment.