device = 'cuda' if torch.cuda.is_available() else "cpu" yolo_nas_l.to(device).predict(input_video_path).save(output)