Megvii-BaseDetection / Megvii-BaseDetection/YOLOX

Given groups=1, weight of size [168, 337, 1, 1], expected input[1, 336, 2, 2] to have 337 channels, but got 336 channels instead

Open
#1,752 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I use translation software.
When I train on custom data, I am able to
RuntimeError: Given groups=1, weight of size [168, 337, 1, 1], expected input[1, 336, 2, 2] to have 337 channels, but got 336 channels instead
I get the above error.

ERROR | yolox.core.launch:98 - An error has been caught in function 'launch', process 'MainProcess' (6715), thread 'MainThread' (139703782486016):.
I get the above error.

The training has already succeeded for other custom data.

How can these errors be resolved?

Translated with DeepL.com (free version)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the reported yolox.core.launch:98 entry point and inspect the custom-data training configuration that produces the channel mismatch. Compare the model's expected 337 channels with the input's 336 channels, then verify the training run succeeds without this RuntimeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.