Skip to content

Fix dataset-not-detected and mouse-recording training crash#67

Merged
ruslanmv merged 1 commit into
masterfrom
dev-v2.0.13.28
Jun 7, 2026
Merged

Fix dataset-not-detected and mouse-recording training crash#67
ruslanmv merged 1 commit into
masterfrom
dev-v2.0.13.28

Conversation

@ruslanmv

@ruslanmv ruslanmv commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Fix dataset-not-detected and mouse-recording training crash

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3319ba11c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# vector (29 keyboard+gamepad, or 39 when mouse recording is on).
# A positive --num-actions overrides it for advanced use. This fixes
# the "Target size ... must be the same as input size" crash (#64).
num_actions = args.num_actions if args.num_actions > 0 else dataset.num_actions

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Persist the auto-detected action width

When this auto-detects 39 actions for a mouse-recorded dataset, training can now finish but the saved checkpoints still do not record that width; models_pytorch.load_model() defaults num_actions back to 29, and 3-test_model.py calls it without an override, so loading the resulting 39-output state dict fails with size mismatches before inference can run. Please save num_actions as checkpoint metadata and have the loader use it, otherwise every mouse-enabled model produced by this path is unusable by the bundled tester.

Useful? React with 👍 / 👎.

@ruslanmv
ruslanmv merged commit bf97738 into master Jun 7, 2026
11 of 12 checks passed
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