Instructions to use amongusrickroll68/TextImagine-1.0-March-2023 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use amongusrickroll68/TextImagine-1.0-March-2023 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("amongusrickroll68/TextImagine-1.0-March-2023", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download model_index.json from amongusrickroll68/TextImagine-1.0-March-2023: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/amongusrickroll68/TextImagine-1.0-March-2023/resolve/main/model_index.json
- Command line
-
hf download hf://amongusrickroll68/TextImagine-1.0-March-2023/model_index.json
-
curl -L -o model_index.json https://huggingface.co/amongusrickroll68/TextImagine-1.0-March-2023/resolve/main/model_index.json
1.12 kB
| { | |
| "name": "text-to-image-generator", | |
| "description": "Generates realistic images based on text prompts.", | |
| "tags": ["image generation", "text-to-image", "deep learning"], | |
| "pipeline_tag": "image-generation", | |
| "inputs": [ | |
| { | |
| "name": "prompt", | |
| "type": "string", | |
| "description": "The text prompt to generate an image for." | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "image/jpeg", | |
| "description": "The generated image." | |
| } | |
| ], | |
| "example": { | |
| "prompt": "A cat sleeping on a windowsill.", | |
| "image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/..." | |
| }, | |
| "language": "python", | |
| "dependencies": { | |
| "tensorflow": "2.6.0", | |
| "pillow": "8.3.2", | |
| "numpy": "1.19.5", | |
| "scipy": "1.7.0", | |
| "scikit-image": "0.18.3" | |
| }, | |
| "model": { | |
| "url": "https://huggingface.co/models/text-to-image-generator", | |
| "architecture": "CLIP-Guided GAN", | |
| "framework": "tensorflow", | |
| "tokenizer": "bert-base-uncased" | |
| } | |
| } | |