Instructions to use ntc-ai/model-glue-sd15-sana-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Sana
How to use ntc-ai/model-glue-sd15-sana-text with Sana:
# Load the model and infer image from text import torch from app.sana_pipeline import SanaPipeline from torchvision.utils import save_image sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml") sana.from_pretrained("hf://ntc-ai/model-glue-sd15-sana-text") image = sana( prompt='a cyberpunk cat with a neon sign that says "Sana"', height=1024, width=1024, guidance_scale=5.0, pag_guidance_scale=2.0, num_inference_steps=18, ) - Notebooks
- Google Colab
- Kaggle
| { | |
| "native": { | |
| "wrong_positions": 0, | |
| "false_positive": 0, | |
| "false_negative": 0, | |
| "exact_prompts": 16, | |
| "prompts": 16 | |
| }, | |
| "parent": { | |
| "wrong_positions": 1, | |
| "false_positive": 0, | |
| "false_negative": 1, | |
| "exact_prompts": 15, | |
| "prompts": 16 | |
| }, | |
| "linear_uncalibrated": { | |
| "wrong_positions": 1, | |
| "false_positive": 0, | |
| "false_negative": 1, | |
| "exact_prompts": 15, | |
| "prompts": 16 | |
| }, | |
| "selected": { | |
| "wrong_positions": 3, | |
| "false_positive": 0, | |
| "false_negative": 3, | |
| "exact_prompts": 14, | |
| "prompts": 16 | |
| }, | |
| "repaired_source": { | |
| "wrong_positions": 3, | |
| "false_positive": 0, | |
| "false_negative": 3, | |
| "exact_prompts": 14, | |
| "prompts": 16 | |
| } | |
| } | |