huri-module-mov 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: huri-module-mov
3
+ Version: 0.1.0
4
+ Summary: HuRI module: Co-speech gestures (EMAGE): speech audio in, SMPL-X motion out
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: huri-core[server]<0.5,>=0.4
8
+ Requires-Dist: huri-events<0.2,>=0.1
9
+ Requires-Dist: numpy<2,>=1.26
10
+ Requires-Dist: torch
11
+ Requires-Dist: transformers>=4.46
12
+ Requires-Dist: librosa
13
+ Requires-Dist: omegaconf<2.4,>=2.3
14
+
15
+ # huri-module-mov
16
+
17
+ Co-speech gestures (EMAGE): speech audio in, SMPL-X motion out.
18
+
19
+ | Module | Topics | What it does |
20
+ |---|---|---|
21
+ | `mov` | `huri.audio.out` → `huri.motion` | Generates SMPL-X gestures matching the speech (EMAGE) |
22
+
23
+ ```sh
24
+ pip install -e packages/huri-module-mov # from a huri-modules checkout, next to huri-core and huri-events
25
+ HURI_MODULES=mov ... # enable it on the server
26
+ ```
27
+
28
+ Hardware-specific pins: `requirements-nvidia.txt`, `requirements-amd.txt` (install them before the package).
29
+
30
+ A distribution of
31
+ [huri-modules](https://github.com/Lucy-Robotics/huri-modules), versioned in its
32
+ `pyproject.toml` (see RELEASING.md there). It depends on `huri-core` and
33
+ `huri-events`, which are not on PyPI: without a checkout, install them from git
34
+ in the same pip command, so pip never looks them up on an index:
35
+
36
+ ```sh
37
+ ref=0.1.0 # a huri-modules release tag
38
+ core=0.4.0 # HURI_CORE_REF in that release's versions.env
39
+ pip install \
40
+ "huri-core[server] @ git+https://github.com/Lucy-Robotics/huri-core.git@$core" \
41
+ "huri-events @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-events" \
42
+ "huri-module-mov @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-module-mov"
43
+ ```
@@ -0,0 +1,29 @@
1
+ # huri-module-mov
2
+
3
+ Co-speech gestures (EMAGE): speech audio in, SMPL-X motion out.
4
+
5
+ | Module | Topics | What it does |
6
+ |---|---|---|
7
+ | `mov` | `huri.audio.out` → `huri.motion` | Generates SMPL-X gestures matching the speech (EMAGE) |
8
+
9
+ ```sh
10
+ pip install -e packages/huri-module-mov # from a huri-modules checkout, next to huri-core and huri-events
11
+ HURI_MODULES=mov ... # enable it on the server
12
+ ```
13
+
14
+ Hardware-specific pins: `requirements-nvidia.txt`, `requirements-amd.txt` (install them before the package).
15
+
16
+ A distribution of
17
+ [huri-modules](https://github.com/Lucy-Robotics/huri-modules), versioned in its
18
+ `pyproject.toml` (see RELEASING.md there). It depends on `huri-core` and
19
+ `huri-events`, which are not on PyPI: without a checkout, install them from git
20
+ in the same pip command, so pip never looks them up on an index:
21
+
22
+ ```sh
23
+ ref=0.1.0 # a huri-modules release tag
24
+ core=0.4.0 # HURI_CORE_REF in that release's versions.env
25
+ pip install \
26
+ "huri-core[server] @ git+https://github.com/Lucy-Robotics/huri-core.git@$core" \
27
+ "huri-events @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-events" \
28
+ "huri-module-mov @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-module-mov"
29
+ ```
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: huri-module-mov
3
+ Version: 0.1.0
4
+ Summary: HuRI module: Co-speech gestures (EMAGE): speech audio in, SMPL-X motion out
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: huri-core[server]<0.5,>=0.4
8
+ Requires-Dist: huri-events<0.2,>=0.1
9
+ Requires-Dist: numpy<2,>=1.26
10
+ Requires-Dist: torch
11
+ Requires-Dist: transformers>=4.46
12
+ Requires-Dist: librosa
13
+ Requires-Dist: omegaconf<2.4,>=2.3
14
+
15
+ # huri-module-mov
16
+
17
+ Co-speech gestures (EMAGE): speech audio in, SMPL-X motion out.
18
+
19
+ | Module | Topics | What it does |
20
+ |---|---|---|
21
+ | `mov` | `huri.audio.out` → `huri.motion` | Generates SMPL-X gestures matching the speech (EMAGE) |
22
+
23
+ ```sh
24
+ pip install -e packages/huri-module-mov # from a huri-modules checkout, next to huri-core and huri-events
25
+ HURI_MODULES=mov ... # enable it on the server
26
+ ```
27
+
28
+ Hardware-specific pins: `requirements-nvidia.txt`, `requirements-amd.txt` (install them before the package).
29
+
30
+ A distribution of
31
+ [huri-modules](https://github.com/Lucy-Robotics/huri-modules), versioned in its
32
+ `pyproject.toml` (see RELEASING.md there). It depends on `huri-core` and
33
+ `huri-events`, which are not on PyPI: without a checkout, install them from git
34
+ in the same pip command, so pip never looks them up on an index:
35
+
36
+ ```sh
37
+ ref=0.1.0 # a huri-modules release tag
38
+ core=0.4.0 # HURI_CORE_REF in that release's versions.env
39
+ pip install \
40
+ "huri-core[server] @ git+https://github.com/Lucy-Robotics/huri-core.git@$core" \
41
+ "huri-events @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-events" \
42
+ "huri-module-mov @ git+https://github.com/Lucy-Robotics/huri-modules.git@$ref#subdirectory=packages/huri-module-mov"
43
+ ```
@@ -0,0 +1,16 @@
1
+ README.md
2
+ pyproject.toml
3
+ huri_module_mov.egg-info/PKG-INFO
4
+ huri_module_mov.egg-info/SOURCES.txt
5
+ huri_module_mov.egg-info/dependency_links.txt
6
+ huri_module_mov.egg-info/entry_points.txt
7
+ huri_module_mov.egg-info/requires.txt
8
+ huri_module_mov.egg-info/top_level.txt
9
+ huri_mov/__init__.py
10
+ huri_mov/huri_module.toml
11
+ huri_mov/module.py
12
+ huri_mov/emage/__init__.py
13
+ huri_mov/emage/configuration.py
14
+ huri_mov/emage/modeling.py
15
+ huri_mov/emage/processing.py
16
+ tests/test_mov.py
@@ -0,0 +1,2 @@
1
+ [huri.modules]
2
+ mov = huri_mov.module:MOV
@@ -0,0 +1,7 @@
1
+ huri-core[server]<0.5,>=0.4
2
+ huri-events<0.2,>=0.1
3
+ numpy<2,>=1.26
4
+ torch
5
+ transformers>=4.46
6
+ librosa
7
+ omegaconf<2.4,>=2.3
File without changes
@@ -0,0 +1,12 @@
1
+ from .configuration import EmageAudioConfig, EmageVAEConvConfig, EmageVQVAEConvConfig
2
+ from .modeling import EmageAudioModel, EmageVAEConv, EmageVQModel, EmageVQVAEConv
3
+
4
+ __all__ = [
5
+ "EmageAudioConfig",
6
+ "EmageAudioModel",
7
+ "EmageVAEConvConfig",
8
+ "EmageVAEConv",
9
+ "EmageVQVAEConvConfig",
10
+ "EmageVQVAEConv",
11
+ "EmageVQModel",
12
+ ]
@@ -0,0 +1,40 @@
1
+ from typing import Any, Dict, cast
2
+
3
+ from omegaconf import OmegaConf
4
+ from transformers import PretrainedConfig
5
+
6
+
7
+ class EmageAudioConfig(PretrainedConfig):
8
+ model_type = "emage_audio"
9
+
10
+ def __init__(self, config_obj=None, **kwargs):
11
+ if config_obj is not None:
12
+ cfg_dict = cast(
13
+ Dict[str, Any], OmegaConf.to_container(config_obj, resolve=True)
14
+ )
15
+ kwargs.update(cfg_dict)
16
+ super().__init__(**kwargs)
17
+
18
+
19
+ class EmageVQVAEConvConfig(PretrainedConfig):
20
+ model_type = "emage_vqvaeconv"
21
+
22
+ def __init__(self, config_obj=None, **kwargs):
23
+ if config_obj is not None:
24
+ cfg_dict = cast(
25
+ Dict[str, Any], OmegaConf.to_container(config_obj, resolve=True)
26
+ )
27
+ kwargs.update(cfg_dict)
28
+ super().__init__(**kwargs)
29
+
30
+
31
+ class EmageVAEConvConfig(PretrainedConfig):
32
+ model_type = "emage_vaeconv"
33
+
34
+ def __init__(self, config_obj=None, **kwargs):
35
+ if config_obj is not None:
36
+ cfg_dict = cast(
37
+ Dict[str, Any], OmegaConf.to_container(config_obj, resolve=True)
38
+ )
39
+ kwargs.update(cfg_dict)
40
+ super().__init__(**kwargs)