zhanghang1989 / zhanghang1989/PyTorch-Encoding
Does PyTorch-Encoding support 3D-network now?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 448
- PR merge metrics
- No merged PRs in 30d
Description
I find following code in encoding.nn.encoding.py
def forward(self, X):
assert(X.size(1) == self.D)
if X.dim() == 3:
# BxDxN
B, D = X.size(0), self.D
X = X.transpose(1, 2).contiguous()
elif X.dim() == 4:
# BxDxHxW
B, D = X.size(0), self.D
X = X.view(B, D, -1).transpose(1, 2).contiguous()
else:
raise RuntimeError('Encoding Layer unknown input dims!')
Does it mean that this version cannot supprot 5D input of 3D network? I quite need to deal with 3D network, if so, can I simply add the X.dim() == 5 and change little to make it work?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in encoding.nn.encoding.py at the forward method and inspect how its current 3D and 4D input cases are handled. Determine whether 5D input for 3D networks is intended to be supported; done means providing a clear compatibility answer or implementing and verifying that support without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100