Instructions to use johnsonoluwafemi/TextImageGenerationModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use johnsonoluwafemi/TextImageGenerationModel with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("johnsonoluwafemi/TextImageGenerationModel", 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
Upload 6 files
Browse files- config.json +0 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- requirements.txt +3 -0
- tokenizer.json +0 -0
- vocab.json +0 -0
config.json
ADDED
|
File without changes
|
merges.txt
ADDED
|
File without changes
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
| 3 |
+
size 0
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
torch==1.10.0
|
| 2 |
+
transformers==4.11.3
|
| 3 |
+
numpy==1.21.2
|
tokenizer.json
ADDED
|
File without changes
|
vocab.json
ADDED
|
File without changes
|