amazon-sagemaker-aws-greengrass-custom-object-detection-model icon indicating copy to clipboard operation
amazon-sagemaker-aws-greengrass-custom-object-detection-model copied to clipboard

Deploy step failing for SSD object detection model while getting ready to inference model locally.

Open MercyPrasanna opened this issue 4 years ago • 1 comments

Hi @angelarw, @zhreshold

I was following the below notebook to inference sagemaker object detection ssd model locally. I get an error reporting that commons module does not exist when executing the deploy step to make the model ready for deployment.

https://github.com/aws-samples/amazon-sagemaker-aws-greengrass-custom-object-detection-model/blob/master/training/03_local_inference_post_training.ipynb

Error: image

MercyPrasanna avatar Sep 10 '21 03:09 MercyPrasanna

@MercyPrasanna

Changes in the code are needed in https://github.com/zhreshold/mxnet-ssd because it is supported for python2 but we use python3.

  • change in symbol_builder.py: from common import multi_layer_feature, multibox_layer to from .common import multi_layer_feature, multibox_layer
  • changed xrange to range in symbol_builder.py

I made this changes and it worked for me.

makoit avatar Dec 01 '21 15:12 makoit