Skip to content

Conversation

mikel-brostrom
Copy link
Owner

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 11:09
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issues related to CUDA multiprocessing and updates default CLI parameters.

  • Forces the multiprocessing start method to "spawn" to help with CUDA compatibility.
  • Updates the default frames-per-second (FPS) value in the command-line interface from None to 30.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
boxmot/engine/val.py Adds multiprocessing spawn start and removes an unused import
boxmot/engine/cli.py Changes the default FPS value to 30
Comments suppressed due to low confidence (1)

boxmot/engine/cli.py:40

  • Changing the default FPS value from None to 30 alters the API behavior; please update the accompanying documentation or comments to clarify this breaking change.
common_parser.add_argument('--fps', type=int, default=30,

Comment on lines +4 to +5
mp.set_start_method("spawn", force=True)

Copy link
Preview

Copilot AI Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving the mp.set_start_method call into a main guard or ensure it is invoked only once to avoid conflicts when the module is imported in different contexts.

Suggested change
mp.set_start_method("spawn", force=True)
if __name__ == "__main__":
mp.set_start_method("spawn", force=True)

Copilot uses AI. Check for mistakes.

@mikel-brostrom mikel-brostrom merged commit 5fa37ae into master Jun 12, 2025
12 checks passed
@mikel-brostrom mikel-brostrom deleted the fix-cuda-mp branch July 2, 2025 11:47
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

Successfully merging this pull request may close these issues.

1 participant