Custom Vision Model Parameters

Stijn Vos 0 Reputation points
2024-02-08T10:29:55.3333333+00:00

I'm currently working on a Custom Vision project aimed at deployment on an IoT Edge device. As part of our optimization efforts, we're test-exporting the model in Compact or Compact [S1] mode. However, we're wondering about the specific model parameters to enhance the quality of our model and identify areas for improvement. Questions:

  1. What are the key distinctions between the Compact and Compact [S1] domains in Custom Vision?
  2. How do the number of parameters differ between the Compact and Compact [S1] modes?
  3. Are there trade-offs between model quality and computational efficiency when selecting Compact or Compact [S1] modes?
  4. Can insights from analyzing model parameters in Compact or Compact [S1] modes inform future iterations of model training and deployment strategies?
  5. The compact [S1] domain looks to be overfitted to my data, while the compact domain seems to be performing better on new (never seen before) data. Is this a common occurrence?

Thanks!

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

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 46,986 Reputation points
    2024-02-10T11:55:41.49+00:00

    @Stijn Vos@Stijn Vos

    Thanks for reaching out to us, I am able to answer some of your questions and will follow up with your other questions if I can get more information.

    The General (compact) domain for Object Detection of Azure custom vision requires special postprocessing logic. If you need a model without the postprocessing logic, use General (compact) [S1].

    There is no guarantee that the exported models give the exactly same result as the prediction API on the cloud. Slight difference in the running platform or the preprocessing implementation can cause larger difference in the model outputs. For the detail of the preprocessing logic, please see this document.

    The models generated by compact domains can be exported to run locally. In the Custom Vision 3.4 public preview API, you can get a list of the exportable platforms for compact domains by calling the GetDomains API.

    All of the following domains support export in ONNX, TensorFlow,TensorFlowLite, TensorFlow.js, CoreML, and VAIDK formats, with the exception that the Object Detection General (compact) domain does not support VAIDK.

    Model performance varies by selected domain. In the table below, we report the model size and inference time on Intel Desktop CPU and NVidia GPU [1]. These numbers don't include preprocessing and postprocessing time.

    User's image

    Please let me know if you have more questions, if you need more suggestions about your scenario, please share the case you are working on so that we can provide more details.

    Regards, Yutong

    -Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.

    0 comments No comments