function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sean*harrisonsean*harrison 

Forbidden - Einstein Vision

Getting familiar with Einstein Vision by doing the tutorial at https://metamind.readme.io/v1/docs

Everything fine until I try to predict against the demo image and I just get:
{"message":"Forbidden!"}
That's no fun. I've checked & refreshed my token; the modelid is correct; I can access the sample image...

Anyone have insight on the specific meaning of this message?
curl -X POST -H "Authorization: Bearer a48a051c9d1110099999999914b42042df96f" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "sampleLocation=http://metamind.io/images/546212389.jpg" -F "modelId=1101631" https://api.metamind.io/v1/vision/predict



 
nidhi purohit 1nidhi purohit 1
I am also facing the same issue. can anyone throw some light on above matter
nirali patel 17nirali patel 17
Same issue. Please help me fast to overcome with this error message
Santosh Kumar PradhanSantosh Kumar Pradhan
The modelId in the form-data in the cURL looks like a dataset Id. Dataset ID is different than Model ID.

There are 2 steps that needs to be done before calling prediction API
1. Upload the dataset and get the Dataset ID: https://metamind.readme.io/docs/create-a-dataset-zip-sync
2. Train the engine which in turn returns Model ID: https://metamind.readme.io/docs/train-a-dataset

The ModelID returned in step 2 can then be used for prediction API.