cloud-machine | Go Project that should be used to create a cloud | Continuous Deployment library
kandi X-RAY | cloud-machine Summary
kandi X-RAY | cloud-machine Summary
This is a Go Project that should be used to create a cloud environment. The app create volumes, ec2 instances, security groups, etc, on AWS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create runs an instance
- FormatVolumes writes the specified volumes to the EC2 instance .
- Basic example of Machine .
- Get a volume
- Aws fetches an auth from environment
- mergeInstances copies the fields of an EC2 instance into the instance struct
- getFormatAndMountUnit returns the format for the given volume config
- getFormatCloudConfig returns a string representation of the cloud config .
- mergeVolumes is used to merge volumes into a volume struct
- WaitUntilState waits until the instance is in the EC2 instance
cloud-machine Key Features
cloud-machine Examples and Code Snippets
Community Discussions
Trending Discussions on cloud-machine
QUESTION
I had walked through this cloudML tutorial on census data: cloud.google.com/ml-engine/docs/how-tos/getting-started-training-prediction in which the Job was successful. However, when I walk through this tutorial on flower image data: https://cloud.google.com/blog/big-data/2016/12/how-to-classify-images-with-tensorflow-using-google-cloud-machine-learning-and-cloud-dataflow my training task appears to successful based on the completion of 1000 steps from the log. However, upon completion from this snapshot StackDriver logs, it says job failed. I have tried using the same structure replacing the command-line arguments from the census data walkthrough, deleted and recreated JOB_ID and --output_path user argument, used the STANDARD_1 scale tier but to no avail. Any help I can get from the community would be appreciated. Thanks!
Below are the errors, you can see that popped out towards the tail end of the logs snapshot:
...ANSWER
Answered 2017-May-25 at 14:21The error indicates a 404 not found when trying to read
QUESTION
I am trying to figure out how to do batch prediction using Google Cloud. Specifically, I'm looking to do object detection, getting from a faster-RCNN tensorflow ckpt to a graph/saved model.
My issue is that I need to be able to recover some kind of ID for my input images, perhaps an index or a filename. I'm not entirely sure how to do this in my situation, since this link mentions using instance keys, and the only relevant examples I've found regarding instance keys use JSON as the input format. As I am supposed to use TFRecords for input to my saved model, this would seem to be an issue. I also consulted the prediction guide, but was still confused.
In short, does anybody have any tips as to what file(s) I should edit (export_inference_graph.py?) to preserve some sort of indices/ordering of my input images for batch prediction? I am using the Object Detection API for reference. Thanks!
...ANSWER
Answered 2018-Jun-14 at 06:18Batch Prediction doesn't support instance keys by itself. You have to change the inference graph to output something from input as keys. That means you need to find a way to include keys in your inputs such as image id or index. One way you can do it is to change your input from TFrecord to json and add a id as keys. E.g, your input now would be like:
{"key": 1, "image": {"b64": "base64encodedstringabce"} {"key": 2, "image": {"b64": "base64encodedstringfg1d"}
This would of course make your input much larger. Another way is that if you use tf.Example proto in your TFRecord, you can add an extra feature. Its value would be a passthrough field from input to the output.
Here is a way to change the inference to pass a feature from input to output. https://github.com/GoogleCloudPlatform/cloudml-samples/pull/158
QUESTION
I am using a custom tensorflow Estimator and am trying to use
...ANSWER
Answered 2019-Aug-21 at 23:25The solution was to explicitly carry the key into model function and add it to the dictionary of outputs.
The lines of code that need to be added are
QUESTION
According to https://cloud.google.com/ml-engine/reference/rest/v1/projects.jobs#Algorithm there are only grid search and random search algorithms available.
According to this blog post https://cloud.google.com/blog/products/gcp/hyperparameter-tuning-cloud-machine-learning-engine-using-bayesian-optimization Bayesian is supported.
So, if supported, how can I tune hyperparameters using Bayesian optimization on Google Cloud ML Engine?
...ANSWER
Answered 2018-Dec-18 at 20:28If you leave the algorithm set to default, it will use Bayesian optimization (see docs).
QUESTION
I trained an object detector using Cloud Machine Learning Engine according to the recent post by Google’s Derek Chow on the Google Cloud Big Data And Machine Learning Blog and now want to predict using Cloud Machine Learning Engine.
The instructions include code to export the Tensorflow graph as output_inference_graph.pb but not how to convert protobuf format (pb) into the SavedModel format required for gcloud ml-engine predict.
I reviewed the answer by Google’s @rhaertel80 for how to convert a “Tensorflow For Poets” image classification model and the answer provided by Google’s @MarkMcDonald for how to convert a “Tensorflow For Poets 2” image classification model but neither appears to work for the object detector graph (pb) described in the blog post.
How does one convert that object detector graph (pb) so it can be used or gcloud ml-engine predict, please?
...ANSWER
Answered 2017-Jun-21 at 00:28SavedModel contains a MetaGraphDef inside its structure. To create a SavedModel from a GraphDef in python you may want to use builder as described in the link.
QUESTION
I am deploying a model to Google Cloud ML for the first time. I have trained and tested the model locally and it still needs work but it works ok.
I have uploaded it to Cloud ML and tested with the same example images I test locally that I know get detections. (using this tutorial)
When I do this, I get no detections. At first I thought I had uploaded the wrong checkpoint but I tested and the same checkpoint works with these images offline, I don't know how to debug further.
When I look at the results the file
prediction.results-00000-of-00001
is just empty
and the file
prediction.errors_stats-00000-of-00001
contains the following text: ('No JSON object could be decoded', 1)
Is this a sign the detection has run and detected nothing, or is there some problem while running?
Maybe the problem is I am preparing the images wrong for uploading?
The logs show no errors at all
Thank you
EDIT:
I was doing more tests and tried to run the model locally using the command "gcloud ml-engine local predict" instead of the usual local code. I get the same result as online, no answer at all, but also no error message
EDIT 2: I am using a TF_Record file, so I don't understand the JSON response. Here is a copy of my command:
...gcloud ml-engine jobs submit prediction ${JOB_ID} --data- format=tf_record \ --input-paths=gs://MY_BUCKET/data_dir/inputs.tfr \ --output-path=gs://MY_BUCKET/data_dir/version4 \ --region us-central1 \ --model="gcp_detector" \ --version="Version4"
ANSWER
Answered 2018-Jul-16 at 11:03Works with the following commands
Model export:
QUESTION
I trained a tensorflow model that i'd like to run predictions on from numpy arrays. This is for image processing within videos. I will pass the images to the model as they happen. Not every frame is passed.
I reload my SavedModel within a session like so
...ANSWER
Answered 2017-Apr-30 at 01:31Your code creates a scope which is exited after it leaves init.
QUESTION
ANSWER
Answered 2018-May-03 at 14:48I haven't done this in C#, but I also had trouble in Python with the following similar code:
QUESTION
I’m working on an object detector using Cloud Machine Learning Engine via a Cloud-VM instance. Following the tutorial (https://cloud.google.com/blog/big-data/2017/06/training-an-object-detector-using-cloud-machine-learning-engine).
I get a module import error on Google Cloud Platform when I submit the training job below:
...ANSWER
Answered 2017-Nov-10 at 14:58Add the following lines to your setup.py:
QUESTION
I’m working on an object detector using Cloud Machine Learning Engine via a Cloud-VM instance. Following the tutorial (https://cloud.google.com/blog/big-data/2017/06/training-an-object-detector-using-cloud-machine-learning-engine).
I get a module import error on Google Cloud Platform when I submit the training job below:
...ANSWER
Answered 2017-Nov-12 at 05:06This issue is resolved by adding package dependencies in the setup.py file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cloud-machine
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page