aws / aws/amazon-sagemaker-examples

[Bug Report] TypeError: Model._create_sagemaker_model() got an unexpected keyword argument 'predictor_cls'

Open
#4,703 8 comments 0 reactions 0 assignees View on GitHub
status: awaiting response
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**
![image (1)](https://github.com/aws/amazon-sagemaker-examples/assets/145438775/48dd91e5-561d-4b90-bbd3-b0935a4c2f12)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.