Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

johnsonoluwafemi
/
TextImageGenerationModel

Diffusers
PyTorch
Text-to-image
Deep Learning
GAN
Model card Files Files and versions
xet
Community

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
TextImageGenerationModel
2.29 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
johnsonoluwafemi's picture
johnsonoluwafemi
Upload 6 files
5e9fc91 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    723 Bytes
    Update README.md about 1 year ago
  • config.json
    0 Bytes
    Upload 6 files about 1 year ago
  • merges.txt
    0 Bytes
    Upload 6 files about 1 year ago
  • pytorch_model.bin
    0 Bytes
    LFS
    Upload 6 files about 1 year ago
  • requirements.txt
    52 Bytes
    Upload 6 files about 1 year ago
  • tokenizer.json
    0 Bytes
    Upload 6 files about 1 year ago
  • vocab.json
    0 Bytes
    Upload 6 files about 1 year ago