Closed alifahrri closed 3 years ago
Note:
def _conv_forward(self, input, weight):
if self.padding_mode != 'zeros':
return F.conv2d(F.pad(input, self._reversed_padding_repeated_twice, mode=self.padding_mode),
weight, self.bias, self.stride,
_pair(0), self.dilation, self.groups)
return F.conv2d(input, weight, self.bias, self.stride,
> self.padding, self.dilation, self.groups)
E RuntimeError: Given groups=1, weight of size [256, 144, 1, 1], expected input[1, 352, 26, 26] to have 144 channels, but got 352 channels instead
========================================================================================= short test summary info ========================================================================================== FAILED tests/test_model.py::test_model[detection-darknet7] - RuntimeError: Sizes of tensors must match except in dimension 1. Got 40 and 20 in dimension 2 (The offending index is 1) FAILED tests/test_model.py::test_model[detection-efficientnet_b0] - RuntimeError: Given groups=1, weight of size [256, 192, 1, 1], expected input[1, 368, 40, 40] to have 192 channels, but got 368 chann... FAILED tests/test_model.py::test_model[detection-mobilenet_v2] - RuntimeError: Given groups=1, weight of size [256, 176, 1, 1], expected input[1, 352, 40, 40] to have 176 channels, but got 352 channels...
I think you forgot to add sympy
in the requirements
I have fixed the failed tests in #85
I think you forgot to add
sympy
in the requirementsI think you forgot to add
sympy
in the requirements
fixed
can you elaborate what the
scripts/model_explorer.py
does? I tried to use it but I don't understand how to do anything with it.
model_explorer is similar to dataset visualizer but intended for trying model inference interactively
how can I use it? after I load the model, I dont know what to do
ahh, I got it now, all good. LGTM.
Type of changes
Please check the type of change your PR introduces: - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? no shape inference - close #39 Related issues : ## What is the new behavior?Checklist
[Unreleased]
Changelog