aws-samples / amazon-sagemaker-asynchronous-inference-computer-vision Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT No Attribution
License: MIT No Attribution
I have a case where the output is not just metadata in json but transformed image/audio, I am uploading the transformed media file to s3 and returning the s3 location via flask app, but what I receive on invoking endpoint is s3 location of the metadata file containing s3 location of the media file. Is there a simpler way to accomplish this?
Thanks for the great and informative tutorial.
I followed your tutorial step by step but i got in this error after executing these lines code.
print(model_name) endpoint_config_name = f"DetectionEndpointConfig-{strftime('%Y-%m-%d-%H-%M-%S', gmtime())}" create_endpoint_config_response = sm_client.create_endpoint_config( EndpointConfigName=endpoint_config_name, ProductionVariants=[ { "VariantName": "variant1", "ModelName": model_name, "InstanceType": "ml.g4dn.xlarge", "InitialInstanceCount": 1 } ] ) print(f"Created EndpointConfig: {create_endpoint_config_response['EndpointConfigArn']}")
endpoint_name = f"sm-{strftime('%Y-%m-%d-%H-%M-%S', gmtime())}" response = sm_client.create_endpoint( EndpointName=endpoint_name, EndpointConfigName=endpoint_config_name, )
waiter = boto3.client('sagemaker').get_waiter('endpoint_in_service') print("Waiting for endpoint to create...") waiter.wait(EndpointName=endpoint_name)
My end point is not creating and it is in waiting state for more then 30 mins.
It output cloudwatch logs:
2023-07-23T15:05:42.086-07:00 | Please specify --force/-f option to overwrite the model archive output file. 2023-07-23T15:05:42.086-07:00CopySee -h/--help for more details. | See -h/--help for more details. 2023-07-23T15:05:42.087-07:00 | ERROR - /.sagemaker/ts/models/model.mar already exists. 2023-07-23T15:05:42.087-07:00 | Please specify --force/-f option to overwrite the model archive output file. 2023-07-23T15:05:42.087-07:00 | See -h/--help for more details.
is it possible to do a tuning on the internal queue? is there any visibility timeout or something like that?
If I'm using BYOC framework with async endpoint, should the /invocations receive the s3 address or the image/video file? Should I have to include functions for downloading image/video from s3 or uploading the output? What should I return from /invocations?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.