question

NikhilN-0814 avatar image
0 Votes"
NikhilN-0814 asked NikhilN-0814 commented

Error while exporting trainined model in Custom Vision API

I am using Custom vision python API for training a model. Everything runs fine when I train for the first time but while training the model again for the same project I get an error



"requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?"

I publish the iteration after training and also check if I am exporting the same using print statement. both are same.
Can you please help me solve this error?


Training status: Training
Training status: Completed
Publishing this project: AAAAAAAAAAAA
Iteration: BBBBBBBBBBBBBBB classifyModel
Done Training!
This project is being exported : AAAAAAAAAAAA
This project iteration is being exported : BBBBBBBBBBBBBBBBB
Done reading pipeline!
The model ABC has a precision value of: 0.0
The model ABC has a recall value of: 0.0
The model ABC has an average precision value of: 0.8333334
Something: {'additional_properties': {}, 'platform': 'TensorFlow', 'status': 'Exporting', 'download_uri': None, 'flavor': None,

'newer_version_available': False}

Second something: [<azure.cognitiveservices.vision.customvision.training.models._models_py3.Export object at LLLLLLLLLLLLLLLLLLL>]
Internal Server Error: /project/23/build_training/train/

azure-custom-vision
· 5
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.

Hello,

Hope you have solved your issue! Please let us know if you are still blocked.

Regards,
Yutong

0 Votes 0 ·

Hello Yutong,
I still have not solved the problem.
I will check again will write you here.
Thanks for your time

0 Votes 0 ·

Hi Yutong,
Is it possible to share the code with you on a private platform??
Thank you.

0 Votes 0 ·

@NikhilN-0814 Hello Nikhil, do you have a support plan? You can raise a support ticket from your side. If not, I can help you to enable one free ticket for you.


Regards,
Yutong

1 Vote 1 ·
Show more comments

1 Answer

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

Hello,

This issue seem you are passing wrong URL to the function. Please refer to below code sample:

https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/image-classification?tabs=visual-studio&pivots=programming-language-python

Especially the variables for your resource's Azure endpoint and subscription keys part:

 # Replace with valid values
 ENDPOINT = "PASTE_YOUR_CUSTOM_VISION_TRAINING_ENDPOINT_HERE"
 training_key = "PASTE_YOUR_CUSTOM_VISION_TRAINING_SUBSCRIPTION_KEY_HERE"
 prediction_key = "PASTE_YOUR_CUSTOM_VISION_PREDICTION_SUBSCRIPTION_KEY_HERE"
 prediction_resource_id = "PASTE_YOUR_CUSTOM_VISION_PREDICTION_RESOURCE_ID_HERE"

If you still can not find out the issue, please share the code your are using if that is not confidential.

Regards,
Yutong



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.