How can I use weight of params from a previous iteration of training in Azure custom vision

Tinnapop 40 Reputation points
2023-06-29T04:20:04.1+00:00
iteration = trainer.train_project(
    project_id,
    training_type="Advanced", # Possible values include: 'Regular', 'Advanced'
    reserved_budget_in_hours=8, 
    force_train=False, 
    notification_email_address="test@testcompany.com",
    selected_tags=trainable_tags, # list | [str]
    custom_base_model_info=None, # Information of the previously trained iteration
    custom_headers=None, 
    raw=False
)

I want to ask how to use custom_base_model_info from the previous iteration. (in python)

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.
247 questions
{count} votes

Accepted answer
  1. romungi-MSFT 45,961 Reputation points Microsoft Employee
    2023-06-29T13:35:23.7866667+00:00

    @Tinnapop Try adding the import statement and passing the project_id and iteration_id along with the train_project()

    from azure.cognitiveservices.vision.customvision.training.models import CustomBaseModelInfo
    
    iteration = trainer.train_project(
        project_id,
        training_type="Advanced", # Possible values include: 'Regular', 'Advanced'
        reserved_budget_in_hours=8, 
        force_train=False, 
        notification_email_address="test@testcompany.com",
        selected_tags=trainable_tags, # list | [str]
        custom_base_model_info=CustomBaseModelInfo(project_id=<your_project_id, iteration_id=<your_iteration_id>>), # Information of the previously trained iteration
        custom_headers=None, 
        raw=False
    )
    
    
    

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Reference for CustomBaseModelInfo

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.