Instructions to use OzzyGT/gemx_soma_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/gemx_soma_diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/gemx_soma_diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ tags:
|
|
| 19 |
|
| 20 |
# GEM-X SOMA Diffusers
|
| 21 |
|
| 22 |
-
<video controls autoplay loop muted playsinline src="https://huggingface.co/datasets/OzzyGT/diffusers-examples/resolve/main/gem-x/
|
| 23 |
|
| 24 |
*Left: the camera-space skeleton and 2D keypoints. Right: the world motion. The clip is AI-generated, the first frame with MiniMax-H3-Image and the video with MiniMax-H3.*
|
| 25 |
|
|
@@ -61,7 +61,7 @@ motion = pipe(video=video, output="motion")
|
|
| 61 |
np.savez_compressed("motion.npz", **{key: value.cpu().numpy() for key, value in motion.items()})
|
| 62 |
```
|
| 63 |
|
| 64 |
-
The clip must be at 30 FPS. The result is a SOMA77 motion in meters, +Y up, with Kimodo's joint order and rotation convention; the blocks can also return the SOMA body parameters. The
|
| 65 |
|
| 66 |
## Licenses
|
| 67 |
|
|
|
|
| 19 |
|
| 20 |
# GEM-X SOMA Diffusers
|
| 21 |
|
| 22 |
+
<video controls autoplay loop muted playsinline src="https://huggingface.co/datasets/OzzyGT/diffusers-examples/resolve/main/gem-x/gemx_soma_karate_foot_lock.mp4"></video>
|
| 23 |
|
| 24 |
*Left: the camera-space skeleton and 2D keypoints. Right: the world motion. The clip is AI-generated, the first frame with MiniMax-H3-Image and the video with MiniMax-H3.*
|
| 25 |
|
|
|
|
| 61 |
np.savez_compressed("motion.npz", **{key: value.cpu().numpy() for key, value in motion.items()})
|
| 62 |
```
|
| 63 |
|
| 64 |
+
The clip must be at 30 FPS. The result is a SOMA77 motion in meters, +Y up, with Kimodo's joint order and rotation convention; the blocks can also return the SOMA body parameters. The feet are locked in place while they touch the floor; pass `foot_lock=False` for GEM-X's raw prediction. Use float32, which matches GEM-X. See the [blocks](https://huggingface.co/OzzyGT/gemx_soma_custom_blocks) for the inputs and outputs.
|
| 65 |
|
| 66 |
## Licenses
|
| 67 |
|