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

[Service] Websockect server and client for SMPL(X) verts inference #125

Merged
merged 11 commits into from
Aug 7, 2023

Conversation

LazyBusyYang
Copy link
Member

@LazyBusyYang LazyBusyYang commented Jun 13, 2023

  1. Add a base class for flask http server, a builder for servers and a tool for starting a server.
  2. Add a subclass SMPLStreamService for smpl(x) verts inference, and its python websocket client.
  3. Add a dockerfile for server.
  4. Add a class SMPLStreamClient , tested on Linux and Windows.

@LazyBusyYang LazyBusyYang changed the title Smpl vert server [Service] Websockect server and client for SMPL(X) verts inference Jun 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2023

Codecov Report

Merging #125 (73a41c3) into main (32e7ddc) will decrease coverage by 2.52%.
Report is 4 commits behind head on main.
The diff coverage is 4.62%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
- Coverage   61.19%   58.68%   -2.52%     
==========================================
  Files         178      185       +7     
  Lines       11097    11608     +511     
==========================================
+ Hits         6791     6812      +21     
- Misses       4306     4796     +490     
Flag Coverage Δ
unittests 58.68% <4.62%> (-2.52%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
xrmocap/client/__init__.py 0.00% <0.00%> (ø)
xrmocap/client/smpl_verts_client.py 0.00% <0.00%> (ø)
...cap/data/data_converter/panoptic_data_converter.py 77.23% <ø> (ø)
xrmocap/service/base_flask_service.py 0.00% <0.00%> (ø)
xrmocap/service/builder.py 0.00% <0.00%> (ø)
xrmocap/service/smpl_verts_service.py 0.00% <0.00%> (ø)
xrmocap/utils/date_utils.py 0.00% <0.00%> (ø)
xrmocap/utils/service_utils.py 0.00% <0.00%> (ø)
...p/data/data_converter/humman_smc_data_converter.py 14.28% <14.28%> (ø)
xrmocap/data/data_converter/builder.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

LazyBusyYang and others added 4 commits June 14, 2023 15:05
Modified SMPL server so that it is compatible with the bridge server. See commit history for more details.
docs/en/tools/start_service.md Outdated Show resolved Hide resolved
docs/en/tools/start_service.md Outdated Show resolved Hide resolved
tools/clients/smpl_verts_client.py Outdated Show resolved Hide resolved
xrmocap/client/smpl_verts_client.py Outdated Show resolved Hide resolved
@yl-1993
Copy link
Member

yl-1993 commented Aug 7, 2023

As discussed offline, we may rename SMPLVertsService to SMPLStreamServer, where Stream indicates that the vertices of SMPL are not stored but instead directly forwarded to viewer server.

@yl-1993 yl-1993 merged commit 06dc167 into openxrlab:main Aug 7, 2023
2 checks passed
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.

4 participants