Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Internal review] Million-scale Face SDK generated with local swagger branch and related tests. #2

Merged
merged 2 commits into from
Jan 22, 2019

Conversation

lebronJ
Copy link
Owner

@lebronJ lebronJ commented Jul 30, 2018

Updated by local MillionScale Swagger branch.
After getting this reviewed, will first get the Swagger PR merged to azure-rest-api-specs and then generate SDK from its master branch.

@lebronJ
Copy link
Owner Author

lebronJ commented Jul 30, 2018

@huxuan, this is for internal review.

@huxuan
Copy link

huxuan commented Jul 30, 2018

Gotcha. Will do it today.

@lebronJ lebronJ force-pushed the siqliu/millionScale branch from 82c4dcf to a487748 Compare July 30, 2018 09:06
client.LargePersonGroupPerson.AddPersonFaceFromStreamAsync(largePersonGroupId, createPersonResult.PersonId, stream).Wait();
}

client.LargePersonGroup.TrainAsync(largePersonGroupId).Wait();
Copy link

@huxuan huxuan Jul 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait for training here? Same for other similar places.

Copy link
Owner Author

@lebronJ lebronJ Jul 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, added in latest commit.

@huxuan
Copy link

huxuan commented Jul 30, 2018

The overall looks good. Please make sure it is compatible with both of the old and new services. The only concern is about the wait for training which may be misleading to new comers/customers.

@lebronJ
Copy link
Owner Author

lebronJ commented Jul 31, 2018

@huxuan Yes. Confirmed this SDK works with our new service as well, in terms of functionalities regardless of faceList/personGroup.

static BaseTests()
{
// Retrieve the configuration information.
FaceSubscriptionKey = "";
//Environment.SetEnvironmentVariable("AZURE_TEST_MODE", "Record");
//FaceSubscriptionKey = "793315696cd04d5ab78232a792136610";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should remove the actual value for FaceSubscriptionKey though it is a fake one.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is just for code sharing. Raised formal PR to upstream repo.

@lebronJ lebronJ force-pushed the siqliu/millionScale branch from 6b2046b to e57928a Compare August 2, 2018 04:59
@lebronJ lebronJ merged commit 4227ce3 into psSdkJson6 Jan 22, 2019
lebronJ pushed a commit that referenced this pull request Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants