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

Initiate "animation" component #775

Merged
merged 59 commits into from
Oct 21, 2024
Merged

Conversation

ctao456
Copy link
Contributor

@ctao456 ctao456 commented Oct 9, 2024

Description

Initiate animation component

Issues

RFC Link: https://github.com/opea-project/docs/blob/main/community/rfcs/24-08-02-OPEA-AIAvatarChatbot.md

Fixed commented issues in #400

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

PR for adding "AvatarChatbot" example: opea-project/GenAIExamples#923

Tests

Once microservice starts, user can use below script to validate the running microservice.

cd GenAIComps
export ip_address=$(hostname -I | awk '{print $1}')
curl http://${ip_address}:9066/v1/animation -X POST -H "Content-Type: application/json" -d @comps/animation/wav2lip/assets/audio/sample_question.json

or

cd GenAIComps/comps/animation/wav2lip
python3 check_animation_server.py

The expected output is a message prompting

{'wav2lip_result': '.../GenAIComps/comps/animation/wav2lip/assets/outputs/result.mp4'}

Please find "comps/animation/wav2lip/assets/outputs/result.mp4" in the current directory as a reference generated video.

@ctao456 ctao456 requested a review from lvliang-intel as a code owner October 9, 2024 22:27
@ctao456 ctao456 changed the title [WIP] Initiate animation component Initiate "animation" component Oct 9, 2024
ctao456 and others added 10 commits October 9, 2024 22:47
This reverts commit f0c7a02.

Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Yeoh, Hoong Tee <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
* add stable diffusion microservice.

Signed-off-by: Ye, Xinyu <[email protected]>

* added test.

Signed-off-by: Ye, Xinyu <[email protected]>

* changed output to images bytes data

Signed-off-by: Ye, Xinyu <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* unified inference and wrapper into one microservice.

Signed-off-by: Ye, Xinyu <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix test.

Signed-off-by: Ye, Xinyu <[email protected]>

---------

Signed-off-by: Ye, Xinyu <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Chun Tao <[email protected]>
* Compatible with different platforms.

Signed-off-by: ZePan110 <[email protected]>

* Fix issue.

Signed-off-by: ZePan110 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix issue

Signed-off-by: ZePan110 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: ZePan110 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
comps/cores/mega/gateway.py 27.27% 8 Missing ⚠️
Files with missing lines Coverage Δ
comps/cores/mega/constants.py 98.36% <100.00%> (+0.05%) ⬆️
comps/cores/mega/gateway.py 34.52% <27.27%> (-0.20%) ⬇️

... and 1 file with indirect coverage changes

@ctao456
Copy link
Contributor Author

ctao456 commented Oct 18, 2024

@ctao456
Copy link
Contributor Author

ctao456 commented Oct 18, 2024

This PR has passed all checks and is ready for review.

ctao456 and others added 17 commits October 19, 2024 00:58
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
Signed-off-by: Chun Tao <[email protected]>
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.

7 participants