question

ShamineDsouza-3805 avatar image
0 Votes"
ShamineDsouza-3805 asked saldana-msft edited

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

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 .

Error:
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-cognitive-servicesazure-custom-vision
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered

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.

69183-image.png
69204-image.png
69167-image.png


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.

69146-image.png
69159-image.png

Hope this helps. Thanks.



image.png (15.7 KiB)
image.png (23.9 KiB)
image.png (38.1 KiB)
image.png (19.1 KiB)
image.png (15.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.