torchstat icon indicating copy to clipboard operation
torchstat copied to clipboard

Not work for EfficientNet

Open lfangyu09 opened this issue 4 years ago • 3 comments

lfangyu09 avatar Jan 18 '21 22:01 lfangyu09

I am looking for the same estimation for efficientNet. Did you make it work?

mathmax12 avatar Jan 20 '21 05:01 mathmax12

Unfortunately, no

lfangyu09 avatar Apr 25 '21 02:04 lfangyu09

I have also had this experience, with EfficentNet-B4. My error looks like this:

  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/segmentation_models_pytorch/encoders/efficientnet.py", line 66, in forward
    x = stages[i](x)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 139, in forward
    input = module(input)
  File "/usr/local/lib/python3.6/dist-packages/torchstat/model_hook.py", line 44, in wrap_call
    assert module.__class__ in self._origin_call
AssertionError

Wheest avatar Mar 22 '22 17:03 Wheest