Instructions to use genmo/mochi-1-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use genmo/mochi-1-preview with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("genmo/mochi-1-preview", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Genmo
How to use genmo/mochi-1-preview with Genmo:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Inference
- Notebooks
- Google Colab
- Kaggle
Typo in Command Line Instructions
#5
by super3b - opened
README.md
CHANGED
|
@@ -46,7 +46,7 @@ python3 -m mochi_preview.gradio_ui --model_dir "<path_to_model_directory>"
|
|
| 46 |
Or generate videos directly from the CLI with
|
| 47 |
|
| 48 |
```bash
|
| 49 |
-
python3 -m mochi_preview.infer --prompt "A hand with delicate fingers picks up a bright yellow lemon from a wooden bowl filled with lemons and sprigs of mint against a peach-colored background. The hand gently tosses the lemon up and catches it, showcasing its smooth texture. A beige string bag sits beside the bowl, adding a rustic touch to the scene. Additional lemons, one halved, are scattered around the base of the bowl. The even lighting enhances the vibrant colors and creates a fresh, inviting atmosphere." --seed 1710977262 --
|
| 50 |
```
|
| 51 |
|
| 52 |
Replace `<path_to_model_directory>` with the path to your model directory.
|
|
|
|
| 46 |
Or generate videos directly from the CLI with
|
| 47 |
|
| 48 |
```bash
|
| 49 |
+
python3 -m mochi_preview.infer --prompt "A hand with delicate fingers picks up a bright yellow lemon from a wooden bowl filled with lemons and sprigs of mint against a peach-colored background. The hand gently tosses the lemon up and catches it, showcasing its smooth texture. A beige string bag sits beside the bowl, adding a rustic touch to the scene. Additional lemons, one halved, are scattered around the base of the bowl. The even lighting enhances the vibrant colors and creates a fresh, inviting atmosphere." --seed 1710977262 --cfg_scale 4.5 --model_dir "<path_to_model_directory>"
|
| 50 |
```
|
| 51 |
|
| 52 |
Replace `<path_to_model_directory>` with the path to your model directory.
|