Upload MochiPipeline
Browse files- README.md +5 -6
- transformer/diffusion_pytorch_model-00001-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00002-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00003-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00004-of-00005.safetensors +2 -2
- transformer/diffusion_pytorch_model-00005-of-00005.safetensors +1 -1
- vae/diffusion_pytorch_model.safetensors +2 -2
README.md
CHANGED
@@ -1,16 +1,17 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
3 |
---
|
4 |
Diffusers formation for mochi-1-preview model.
|
5 |
|
6 |
-
|
7 |
|
8 |
```bash
|
9 |
import torch
|
10 |
from diffusers import MochiPipeline
|
11 |
from diffusers.utils import export_to_video
|
12 |
|
13 |
-
pipe = MochiPipeline.from_pretrained('HanLiii/mochi-1-preview-diffusers', torch_dtype=torch.
|
14 |
pipe.to("cuda")
|
15 |
prompt = """
|
16 |
A hand with delicate fingers picks up a bright yellow lemon from a wooden bowl
|
@@ -30,10 +31,8 @@ frames = pipe(prompt,
|
|
30 |
|
31 |
export_to_video(frames, "mochi_test.mp4")
|
32 |
```
|
33 |
-
|
34 |
-
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/
|
35 |
-
github version result:
|
36 |
-
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/647d3f9683cdb93baf76f963/OY29N7HQK2TVSZcAXQAPx.mp4"></video>
|
37 |
|
38 |
---
|
39 |
license: apache-2.0
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
library_name: diffusers
|
4 |
---
|
5 |
Diffusers formation for mochi-1-preview model.
|
6 |
|
7 |
+
Use following code to inference
|
8 |
|
9 |
```bash
|
10 |
import torch
|
11 |
from diffusers import MochiPipeline
|
12 |
from diffusers.utils import export_to_video
|
13 |
|
14 |
+
pipe = MochiPipeline.from_pretrained('HanLiii/mochi-1-preview-diffusers', torch_dtype=torch.float16)
|
15 |
pipe.to("cuda")
|
16 |
prompt = """
|
17 |
A hand with delicate fingers picks up a bright yellow lemon from a wooden bowl
|
|
|
31 |
|
32 |
export_to_video(frames, "mochi_test.mp4")
|
33 |
```
|
34 |
+
Some generated results:
|
35 |
+
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/62e34a12c9bece303d146af8/Cm3I6kidy2YP5nu3un7XP.mp4"></video>
|
|
|
|
|
36 |
|
37 |
---
|
38 |
license: apache-2.0
|
transformer/diffusion_pytorch_model-00001-of-00005.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2183f0c5ecbe03c482099a44f74a96bce140f98532fb2ee9ebf16906b4196453
|
3 |
+
size 4953902880
|
transformer/diffusion_pytorch_model-00002-of-00005.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea7d1f02506299106841843094adade5d97407fc68f34e2dd683c69fb21326e0
|
3 |
+
size 4983430104
|
transformer/diffusion_pytorch_model-00003-of-00005.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49bce09761be17b1e587fd88747671d6456c1c63122597ef579274b1f1bf46b5
|
3 |
+
size 4983430104
|
transformer/diffusion_pytorch_model-00004-of-00005.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5de15bf4d0d4e8b29074df0038592fa51fb37086b421758a9a174424f696d48c
|
3 |
+
size 4945668840
|
transformer/diffusion_pytorch_model-00005-of-00005.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 189051592
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e94bb39dec286bafcd626252a2e26f00ea36a900bd813bf8b0e3cc17493a49db
|
3 |
size 189051592
|
vae/diffusion_pytorch_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e6dcb26d74c66e083ed48638cd2831db32b085295d689ae0fef8a9017ae3a04
|
3 |
+
size 909424926
|