aws / aws/amazon-sagemaker-examples
[Bug Report] TypeError: Model._create_sagemaker_model() got an unexpected keyword argument 'predictor_cls'
- Dominant language
- Jupyter Notebook
- Stars
- 11k
- Forks
- 7k
- Avg merge
- 8h 29m
- Merged PRs (30d)
- 8
Description
**Link to the notebook**
[Example Notebook](https://github.com/aws/amazon-sagemaker-examples/blob/main/introduction_to_amazon_algorithms/jumpstart_semantic_segmentation/Amazon_JumpStart_Semantic_Segmentation_Extract_Image.ipynb)
**Describe the bug**
We were trying to test Amazon SageMaker's semantic segmentation feature. So we used this [example notebook](https://github.com/aws/amazon-sagemaker-examples/blob/main/introduction_to_amazon_algorithms/jumpstart_semantic_segmentation/Amazon_JumpStart_Semantic_Segmentation_Extract_Image.ipynb) from sagemaker jumpstart and tried to run it in aws sagemaker notebook instance.
But we received a weird error:
`TypeError: Model._create_sagemaker_model() got an unexpected keyword argument 'predictor_cls'`
**To reproduce**
- Create a notebook instance in amazon sagemaker
- Create IAM role with permissions (sagemakerFullAccess, s3FullAccess)
- Run [example notebook](https://github.com/aws/amazon-sagemaker-examples/blob/main/introduction_to_amazon_algorithms/jumpstart_semantic_segmentation/Amazon_JumpStart_Semantic_Segmentation_Extract_Image.ipynb)
-
**Logs**

Contributor guide
Research direction
Reproduce the error using the linked Amazon_JumpStart_Semantic_Segmentation_Extract_Image.ipynb notebook in an Amazon SageMaker notebook instance with the reported IAM permissions. Trace the call that passes predictor_cls into Model._create_sagemaker_model(). Done means the example notebook runs without the unexpected-keyword TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, jupyter-notebook
- Domain
- cloud, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100