Skip to content

input data config ignored in local mode? #451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yifeim opened this issue Oct 31, 2018 · 5 comments
Closed

input data config ignored in local mode? #451

yifeim opened this issue Oct 31, 2018 · 5 comments

Comments

@yifeim
Copy link
Contributor

yifeim commented Oct 31, 2018

The local image clearly ignores context_type of an input,

json_input_data_config = {

despite they somehow passed unit test

def test_file_input_content_type():

My same custom model runs in remote but not in local. This inspires my question: how are context types detected? E.g., by file suffix?

Thanks.

@yifeim yifeim changed the title input data config ignored? input data config ignored in local mode? Oct 31, 2018
@nadiaya
Copy link
Contributor

nadiaya commented Nov 2, 2018

Thank you for reporting it. This does look like a bug.

iquintero pushed a commit to iquintero/sagemaker-python-sdk that referenced this issue Nov 2, 2018
@iquintero
Copy link
Contributor

Hi @yifeim this is fixed in #449

Local Mode will now work the same way as SageMaker does. Basically if you provide a content_type it will be passed to inputdataconfig.json. If you don't then there will be no ContentType key in the json file. It is up to your algorithm to define a default if it needs to. This change makes it consistent with SageMaker.

@yifeim
Copy link
Contributor Author

yifeim commented Nov 3, 2018 via email

@nadiaya
Copy link
Contributor

nadiaya commented Nov 5, 2018

Fixed has been merged. Resolving.

@nadiaya nadiaya closed this as completed Nov 5, 2018
@yifeim
Copy link
Contributor Author

yifeim commented Nov 6, 2018

Good job! The other changes are also interesting. Thanks a lot!

apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this issue Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants