MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Method `LargeTrainLargeFaceListAsync` is not recognized. #110180

Closed shapeh closed 1 year ago

shapeh commented 1 year ago

It would help with a full and working sample code.

A few problem with the displayed code snippets:

'IFaceClient' does not contain a definition for 'TrainLargeFaceListAsync' and no accessible extension method 'TrainLargeFaceListAsync' accepting a first argument of type 'IFaceClient' could be found (are you missing a using directive or an assembly reference?)

  • TrainAsync returns voidbut is assigned to var status?
  • What NuGets / package references to include? Tried with Microsoft.Azure.CognitiveServices.Vision.Face 2.8.0-preview.3 but no luck.
  • In general, I would be so nice with a sample on how to train a facial recognition database, and then later on detect faces based on the trained model.
Screenshot 2023-05-30 134719 Screenshot 2023-05-30 134837

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SaibabaBalapur-MSFT commented 1 year ago

@shapeh Thanks for your feedback! We will investigate and update as appropriate.

nitinme commented 1 year ago

assign:PatrickFarley

PatrickFarley commented 1 year ago

I'll need to get in contact with a developer to update this code. In the meantime, @shapeh , see this sample from the source library for an example of LargeFaceList training and use https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/cognitiveservices/Vision.Face/tests/FaceFindSimilarTests.cs

PatrickFarley commented 1 year ago

Hi @shapeh, for now, I'd recommend you use a PersonDirectory instead. https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/how-to/use-persondirectory This is our newer data structure solution, and it performs better with large data sets. The doc you mentioned uses an older version of the API. It will soon be retired or updated to use PersonDirectory

please-close