Code Monkey home page Code Monkey logo

Comments (7)

michaelhsieh42 avatar michaelhsieh42 commented on June 22, 2024 1

Hello @papagala, thanks for your feedback. Indeed the SageMaker error

ConnectionClosedError: Connection was closed before we received a valid response from endpoint URL: "https://runtime.sagemaker.us-east-1.amazonaws.com/endpoints/DEMO-object-detection-augmented-ai-2020-05-19-00-18-57/invocations".

could stem from image payload to the endpoint exceeding the limit 5MB. The original files are around 2-3 MB. Thanks for reporting that the curl would append the image and grow the file size. It's something we can address easily.

We will also address the description for running environment. Thanks for your feedback again.

from amazon-a2i-sample-jupyter-notebooks.

papagala avatar papagala commented on June 22, 2024

I think I found the solution. But I still think it's a bug. The files seem to be too large. I'm using smaller sized pics and is working fine.

The error message you get back, says nothing about it which is confusing.

from amazon-a2i-sample-jupyter-notebooks.

papagala avatar papagala commented on June 22, 2024

I compressed all images and the problem went away
pexels-photo-276517
pexels-photo-980382
pexels-photo-1571457

from amazon-a2i-sample-jupyter-notebooks.

papagala avatar papagala commented on June 22, 2024

Ok, I discovered something else. Looks like if you rerun the notebook, the images double, triple in size (they become n times large with n the number of times you run the notebook).

This fixes that problem:

for ind in test_photos_index:
    !rm sample-a2i-images/pexels-photo-{ind}.jpeg

Maybe with bash magic we can check if the file already exists to NOT redownload it, but this is fine for me

from amazon-a2i-sample-jupyter-notebooks.

papagala avatar papagala commented on June 22, 2024

Thanks a lot!

from amazon-a2i-sample-jupyter-notebooks.

samuel-henry avatar samuel-henry commented on June 22, 2024

Closing based on michaelhsieh42@'s merge

from amazon-a2i-sample-jupyter-notebooks.

papagala avatar papagala commented on June 22, 2024

Thank you all!

from amazon-a2i-sample-jupyter-notebooks.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.