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

[vec][server] vpr demo support #1696

Merged
merged 2 commits into from Apr 15, 2022

Conversation

qingen
Copy link
Contributor

@qingen qingen commented Apr 13, 2022

add enroll recog del list .etc interface for vpr demo, fix #1695

@qingen qingen self-assigned this Apr 13, 2022
@qingen qingen added this to the r1.0.0a milestone Apr 13, 2022
@mergify mergify bot added Vector SID/LID/etc. Demo README labels Apr 13, 2022
return results[0][0]
except Exception as e:
LOGGER.error(f"MYSQL ERROR: {e} with sql: {sql}")
sys.exit(1)

def create_mysql_table_vpr(self, table_name):
Copy link
Collaborator

Choose a reason for hiding this comment

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

vpr是什么缩写?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

声纹识别缩写

@@ -120,14 +122,83 @@ def delete_all_data(self, table_name):
sys.exit(1)

def count_table(self, table_name):
# Get the number of mysql table
# Get the number of spk in mysql table
Copy link
Collaborator

Choose a reason for hiding this comment

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

spk_id 的话这个服务只支持声纹了,不支持音频检索

Copy link
Contributor Author

Choose a reason for hiding this comment

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

声纹和音频是两个服务,互不影响

embedding = get_audio_embedding(audio_path)
mysql_cli.create_mysql_table_vpr(table_name)
data = (spk_id, audio_path, str(embedding))
mysql_cli.load_data_to_mysql_vpr(table_name, data)
Copy link
Collaborator

Choose a reason for hiding this comment

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

insert_data_to_mysql_vpr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

load 和 insert 在这里 没有差别

Copy link
Collaborator

@zh794390558 zh794390558 left a comment

Choose a reason for hiding this comment

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

LGTM

@zh794390558 zh794390558 merged commit ec46917 into PaddlePaddle:develop Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[vec][server] vpr demo support
2 participants