Comments (7)
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.
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.
I compressed all images and the problem went away
from amazon-a2i-sample-jupyter-notebooks.
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.
Thanks a lot!
from amazon-a2i-sample-jupyter-notebooks.
Closing based on michaelhsieh42@'s merge
from amazon-a2i-sample-jupyter-notebooks.
Thank you all!
from amazon-a2i-sample-jupyter-notebooks.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-a2i-sample-jupyter-notebooks.