Thank you for using the Microsoft Q&A platform.
To see the list of values allowed as parameters for domain_id
and classification_type
in the create_project
function, you can use the get_domains method to retrieve a list of available domains and their IDs. Here's an example:
from azure.cognitiveservices.vision.customvision.training import CustomVisionTrainingClient
from azure.cognitiveservices.vision.customvision.training.models import DomainType
from msrest.authentication import CognitiveServicesCredentials
# Create a CustomVisionTrainingClient object
trainer = CustomVisionTrainingClient(endpoint, CognitiveServicesCredentials(training_key))
print("Valid parameters for trainer.get_domains():")
print(dir(trainer))
# Get a list of available domains and their IDs
domains = trainer.get_domains()
for domain in domains:
if domain.type == DomainType.object_detection and domain.name == "General":
print(domain.id)
For classification_type
, the possible values are 'Multiclass'
and 'Multilabel'
. You can use either of these values as the input for the classification_type
parameter.
I hope this helps you to proceed. Thank you.