HanLiii commited on
Commit
8455e27
1 Parent(s): 7329c4e

Upload MochiPipeline

Browse files
README.md CHANGED
@@ -1,16 +1,17 @@
1
  ---
2
  license: apache-2.0
 
3
  ---
4
  Diffusers formation for mochi-1-preview model.
5
 
6
- ##Use following code to inference
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.bfloat16)
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
- fp16 diffusers version result:
34
- <video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/647d3f9683cdb93baf76f963/0YoDABzUbfErx2McV4LA6.mp4"></video>
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:781ffc20f1b5b9717244d80c271d3322409b8c758138e21dece8a37050c4567f
3
- size 4953902608
 
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:7544284b285e68b5eea6dc13e97920f50de555166862ecf1afc79585d9a96a56
3
- size 4983429840
 
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:35fcc162c04008914cb746438fd53e5fdb54bcb37c616e3a78839919fba8b93b
3
- size 4983429840
 
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:d6817313ed087e61143a1c68874898a7861bc8d49f3934ecf98a238729d661c4
3
- size 4945668584
 
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:72a0c067d2a0b6841e16066ff200c7250324da862e007073e220732af025f34f
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:360ea60c0670670b2028ae76640168347a0935590229eca614e703c0c95b6187
3
- size 909424574
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e6dcb26d74c66e083ed48638cd2831db32b085295d689ae0fef8a9017ae3a04
3
+ size 909424926