Unable to publish the CustomVision Object Identification MOdel after training, for api to use in C#

Shamine Dsouza 116 Reputation points

I am trying to publish the Custom Vision , Object Identification model , that is trained , but I am getting the below error . My location of the resource is the same .

We only support publishing to a prediction resource in the same region as the training resource the project resides in.

Please check if you have a prediction resource and if the prediction resource is in the same region as the training resource.

I have followed all the solutions in this link . Yet the same error . Please help.

Link : https://social.msdn.microsoft.com/Forums/en-US/a11dca4a-b78f-4e5f-9d0a-73d40ceb7551/publish-project-in-custom-vision?forum=AzureCognitiveService

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
173 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,862 questions
0 comments No comments
{count} votes

Accepted answer
  1. GiftA-MSFT 11,141 Reputation points

    Hi, Please refer to the solution on this thread.

    When you click on Publish, select your prediction resource from the drop down menu. You need to ensure that both of your training and prediction resources are in the same location. To do that, When creating a new project and resource via Custom Vision portal, select 'Cognitive Services' under 'kind', this will create both training and prediction resources in the same location that you specified. If you created training and prediction resources separately, check Azure Portal > resource group > Custom Vision training/prediction resources on the overview page to confirm whether they are both in the same location. You can also create a new Custom Vision resource in Azure Portal and select 'Both' to create both training and prediction resources (ensure to select the same region for both resources). Please check out the custom vision documentation on how to train and publish your model.


    Furthermore, your resource group itself can be in a different region, however, you need to ensure that your custom vision training resource and prediction resource are in the same region. If the training and prediction resources are in different regions, you can create a new prediction resource from the home page (settings > create new > specify CustomVision.Prediction under kind) and select the same region as your training resource, then the prediction resource will show up as a drop down menu when publishing.


    Hope this helps. Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful