cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Miklos
Level: Powered On

CustomVision PredictImageURL fails - no default iteration

Hi Community,

 

I try to use CustomVision.PredictImageURL(projectID,Url). In this case I get an error message: "Project has no default iteration". I cannot find as of today how to set a default iteration for a CV project. ( I could see older videos on the internet, where it was an option, which is not visible today)

 

The CustomVision.PredictImageURL(projectID,Url, {iterationId:Text}) has a third optional parameter, but I cannot find how to specifiy it...

 

Any hint how to move forward?

Thanks, Miklos

 

1 ACCEPTED SOLUTION

Accepted Solutions
Miklos
Level: Powered On

Re: CustomVision PredictImageURL fails - no default iteration

Hi Team,

 

First I created a Custom Connector with the Postman approach, it works.

 

Last, but not least, thanks to PowerApps guru @MichalRok , if you use the South Central US region, you can specify the optional IterationID parameter the following way:

1/ Get the IterationID:

  1. Open your published project at www.customvision.ai and go to the PERFORMANCE tab
  2. Move the mouse over one of your performance tag
  3. You should see an URL including the Iteration ID

For example: https://www.customvision.ai/projects/12345678-38a5-4e00-8a6b-4c3643fa5352#/manage?iterationId=3e1170e1-b52f-45cb-9356-6d5b995f8c47&tagIds=55dcfa89-4fc4-4b26-b5ae-2498cad537a3 

 

2/ Specify the Iteration ID within the CustomVision connector the following way assuming the above iteration ID:

CustomVision.PredictImageURL("projectid","imageurl",{iterationId:"3e1170e1-b52f-45cb-9356-6d5b995f8c47"})

 

Hope it helps.

Miklos

 

 

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: CustomVision PredictImageURL fails - no default iteration

Hi @Miklos ,

Could you please share a bit more about your issue?

 

Based on the error message that you mentioned, it seems to tell that you do not set a Default iteration for your CV project.

Please check and see if the following article would help in your scenario:

https://github.com/Azure/azure-sdk-for-net/issues/4556

Please check if you have specified one iteration of your CV Project as the default iteration.

 

In addition, there are some updates on Custom Vision API recently (Custom Vision 2.x -> Custom Vision 3.0). Within the Custom Vision API 3.0, the Default iterations have been removed in favor of a publish / unpublish a named iteration.

Please check the following article for more details about the updates in Custom Vision API:

https://docs.microsoft.com/en-us/azure/cognitive-services/Custom-Vision-Service/update-application-t...

 

If the issue still exists, you could consider take a try to create a custom connector based on the Custom Vision API within your PowerApps to achieve your needs.

More details about creating custom connector in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

https://www.youtube.com/watch?v=dBCS1nPsDiE

More details about Custom Vision API, please check the following article:

https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/operat...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Miklos
Level: Powered On

Re: CustomVision PredictImageURL fails - no default iteration

Hi Kris,

 

Thanks for your pieces of advices. I will check them and come back here with the results.

 

Miklos

annelirymert
Level: Power Up

Re: CustomVision PredictImageURL fails - no default iteration

I'm experiencing the same issue on PredictImage from PowerApps. +1 on updates!

Miklos
Level: Powered On

Re: CustomVision PredictImageURL fails - no default iteration

Hi Team,

 

First I created a Custom Connector with the Postman approach, it works.

 

Last, but not least, thanks to PowerApps guru @MichalRok , if you use the South Central US region, you can specify the optional IterationID parameter the following way:

1/ Get the IterationID:

  1. Open your published project at www.customvision.ai and go to the PERFORMANCE tab
  2. Move the mouse over one of your performance tag
  3. You should see an URL including the Iteration ID

For example: https://www.customvision.ai/projects/12345678-38a5-4e00-8a6b-4c3643fa5352#/manage?iterationId=3e1170e1-b52f-45cb-9356-6d5b995f8c47&tagIds=55dcfa89-4fc4-4b26-b5ae-2498cad537a3 

 

2/ Specify the Iteration ID within the CustomVision connector the following way assuming the above iteration ID:

CustomVision.PredictImageURL("projectid","imageurl",{iterationId:"3e1170e1-b52f-45cb-9356-6d5b995f8c47"})

 

Hope it helps.

Miklos

 

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,303)