Skip to content

Conversation

@skiaxtro
Copy link

…nvBlock.

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"

…nvBlock.


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"
@AntonioCarta
Copy link
Collaborator

Thank you for the PR!
It seems that the current solution is not robust to different versions of pytorchcv. Tests are failing with ModuleNotFoundError: No module named 'pytorchcv.models.common.conv'; 'pytorchcv.models.common' is not a package.

@samuelebodon
Copy link

…nvBlock.

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"

I can confirm, this fix works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cannot import name 'DwsConvBlock' from 'pytorchcv.models.common'

3 participants