You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing this error when i run convert_model.py Then i got the error below.
(File "convert_model.py", line 46, in main
num_layers = args.num_layers
AttributeError: 'Namespace' object has no attribute 'num_layers')
Then i have removed the num_layer by hashing it as picture below.
Then i got the error below.
(torch.nn.modules.module.ModuleAttributeError: 'MobileNetV3' object has no attribute 'scaling')
Anyone facing this issue while converting pytorch mobilenetv3 module to onnx? Appreciate if anyone can help to solve this. Thank you.
The text was updated successfully, but these errors were encountered:
kentngooi
changed the title
torch.nn.modules.module.ModuleAttributeError: 'MobileNetV3' object has no attribute 'scaling'
Convert pytorch module to openvino
Jun 1, 2022
I found that the issue of the no attribute from 'scaling' is from the model_tools.py
After removing the line as picture below:
I am able to convert the file to onnx and able to run the demo.py with the .xml i produced.
May i ask what is the usage of the line in model_tools.py line 230 spoof_out*self.scaling. And will it affect the result if i did not include it?
I am facing this error when i run convert_model.py Then i got the error below.

(File "convert_model.py", line 46, in main
num_layers = args.num_layers
AttributeError: 'Namespace' object has no attribute 'num_layers')
Then i have removed the num_layer by hashing it as picture below.

Then i got the error below.

(torch.nn.modules.module.ModuleAttributeError: 'MobileNetV3' object has no attribute 'scaling')
Anyone facing this issue while converting pytorch mobilenetv3 module to onnx? Appreciate if anyone can help to solve this. Thank you.
The text was updated successfully, but these errors were encountered: