From 8610a21813a9015e4f2ed3767271569b2ad982a1 Mon Sep 17 00:00:00 2001 From: skiaxtro <63364952+skiaxtro@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:11:00 +0300 Subject: [PATCH] When import the library, appears an error said that cant import DwsConvBlock. The problem is at "mobilenetv1.py" file at line 25. There is import "from pytorchcv.models.common import DwsConvBlock". The problem is that in common, there is not DwsConvBlock. Instead "DwsConvBlock" is in "pytorchcv.models.common.conv" . So to solve the problem must change line 25 with "from pytorchcv.models.common.conv import DwsConvBlock" --- avalanche/models/mobilenetv1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avalanche/models/mobilenetv1.py b/avalanche/models/mobilenetv1.py index 532901e16..bfdc595aa 100644 --- a/avalanche/models/mobilenetv1.py +++ b/avalanche/models/mobilenetv1.py @@ -22,7 +22,7 @@ try: from pytorchcv.models.mobilenet import DwsConvBlock except Exception: - from pytorchcv.models.common import DwsConvBlock + from pytorchcv.models.common.conv import DwsConvBlock def remove_sequential(network: nn.Module, all_layers: List[nn.Module]):