输入的数据和模型参数的通道数不一致,不会报错?

Open
#2,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale

Research direction

Reproduce the reported behavior with the same model using both three-channel and single-channel inputs. Trace the model input validation and any channel conversion path to determine whether the mismatch is accepted intentionally; done when the behavior and expected handling are confirmed.

Written by the indexing model from the issue text.

Description

你好,我同一个模型(输入应该为3通道数据的模型),输入3通道和单通道的数据都可以,不会报错,代码内部会自动判断和转化吗?

Dominant language
C++
Stars
23.8k
Forks
4.5k
Avg merge
2d 20h
Merged PRs (30d)
37

Contributor guide

Open the contributing guide

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.

More from Tencent/ncnn

All issues in Tencent/ncnn

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.