Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,6 @@ pipeline_tag: text-to-image
|
|
| 21 |
<a href="https://huggingface.co/collections/Efficient-Large-Model/sana-sprint-67d6810d65235085b3b17c76"><img src="https://img.shields.io/static/v1?label=Weights&message=Huggingface&color=yellow"></a>  
|
| 22 |
<a href="https://github.com/NVlabs/Sana"><img src="https://img.shields.io/static/v1?label=Code&message=Github&color=blue&logo=github"></a>  
|
| 23 |
<a href="https://nvlabs.github.io/Sana/Sprint/"><img src="https://img.shields.io/static/v1?label=Project&message=Github&color=blue&logo=github-pages"></a>  
|
| 24 |
-
<!-- <a href="https://hanlab.mit.edu/projects/sana/"><img src="https://img.shields.io/static/v1?label=Page&message=MIT&color=darkred&logo=github-pages"></a>   -->
|
| 25 |
<a href="https://arxiv.org/pdf/2503.09641"><img src="https://img.shields.io/static/v1?label=Arxiv&message=SANA-Sprint&color=red&logo=arxiv"></a>  
|
| 26 |
<a href="https://nv-sana.mit.edu/sprint"><img src="https://img.shields.io/static/v1?label=Demo&message=MIT&color=yellow"></a>  
|
| 27 |
<a href="https://discord.gg/rde6eaE5Ta"><img src="https://img.shields.io/static/v1?label=Discuss&message=Discord&color=purple&logo=discord"></a>  
|
|
@@ -67,7 +66,7 @@ Source code is available at https://github.com/NVlabs/Sana.
|
|
| 67 |
### Model Description
|
| 68 |
|
| 69 |
- **Developed by:** NVIDIA, Sana
|
| 70 |
-
- **Model type:** One-Step Diffusion with Continuous-Time Consistency Distillation
|
| 71 |
- **Model size:** 1.6B parameters
|
| 72 |
- **Model precision:** torch.bfloat16 (BF16)
|
| 73 |
- **Model resolution:** This model is developed to generate 1024px based images with multi-scale heigh and width.
|
|
@@ -91,19 +90,19 @@ For research purposes, we recommend our `generative-models` Github repository (h
|
|
| 91 |
Under construction [PR](https://github.com/huggingface/diffusers/pull/11074)
|
| 92 |
|
| 93 |
```python
|
| 94 |
-
from diffusers import
|
| 95 |
import torch
|
| 96 |
|
| 97 |
-
pipeline =
|
| 98 |
-
"Efficient-Large-Model/
|
| 99 |
torch_dtype=torch.bfloat16
|
| 100 |
)
|
| 101 |
pipeline.to("cuda:0")
|
| 102 |
|
| 103 |
prompt = "a tiny astronaut hatching from an egg on the moon"
|
| 104 |
|
| 105 |
-
image = pipeline(prompt=prompt, num_inference_steps=
|
| 106 |
-
image.save("
|
| 107 |
```
|
| 108 |
|
| 109 |
|
|
|
|
| 21 |
<a href="https://huggingface.co/collections/Efficient-Large-Model/sana-sprint-67d6810d65235085b3b17c76"><img src="https://img.shields.io/static/v1?label=Weights&message=Huggingface&color=yellow"></a>  
|
| 22 |
<a href="https://github.com/NVlabs/Sana"><img src="https://img.shields.io/static/v1?label=Code&message=Github&color=blue&logo=github"></a>  
|
| 23 |
<a href="https://nvlabs.github.io/Sana/Sprint/"><img src="https://img.shields.io/static/v1?label=Project&message=Github&color=blue&logo=github-pages"></a>  
|
|
|
|
| 24 |
<a href="https://arxiv.org/pdf/2503.09641"><img src="https://img.shields.io/static/v1?label=Arxiv&message=SANA-Sprint&color=red&logo=arxiv"></a>  
|
| 25 |
<a href="https://nv-sana.mit.edu/sprint"><img src="https://img.shields.io/static/v1?label=Demo&message=MIT&color=yellow"></a>  
|
| 26 |
<a href="https://discord.gg/rde6eaE5Ta"><img src="https://img.shields.io/static/v1?label=Discuss&message=Discord&color=purple&logo=discord"></a>  
|
|
|
|
| 66 |
### Model Description
|
| 67 |
|
| 68 |
- **Developed by:** NVIDIA, Sana
|
| 69 |
+
- **Model type:** One-Step Diffusion with Continuous-Time Consistency Distillation (Teacher Model)
|
| 70 |
- **Model size:** 1.6B parameters
|
| 71 |
- **Model precision:** torch.bfloat16 (BF16)
|
| 72 |
- **Model resolution:** This model is developed to generate 1024px based images with multi-scale heigh and width.
|
|
|
|
| 90 |
Under construction [PR](https://github.com/huggingface/diffusers/pull/11074)
|
| 91 |
|
| 92 |
```python
|
| 93 |
+
from diffusers import SanaPipeline
|
| 94 |
import torch
|
| 95 |
|
| 96 |
+
pipeline = SanaPipeline.from_pretrained(
|
| 97 |
+
"Efficient-Large-Model/SANA_Sprint_1.6B_1024px_teacher_diffusers",
|
| 98 |
torch_dtype=torch.bfloat16
|
| 99 |
)
|
| 100 |
pipeline.to("cuda:0")
|
| 101 |
|
| 102 |
prompt = "a tiny astronaut hatching from an egg on the moon"
|
| 103 |
|
| 104 |
+
image = pipeline(prompt=prompt, num_inference_steps=20).images[0]
|
| 105 |
+
image.save("sana_sprint_teacher.png")
|
| 106 |
```
|
| 107 |
|
| 108 |
|