Instructions to use HuiZhang0812/CreatiLayout with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HuiZhang0812/CreatiLayout with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("HuiZhang0812/CreatiLayout", 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
Question about token limiations
#2
by jpjp9292 - opened
First of all, your model seems extraordinarily useful for those who wanna practice chart generation from texts.
I wanna implement your model with my datasets. But i got one issue is that SD models have token limitations of 75.
how did you overcome limitations? coz in the paper, "the average length of the captions is 95.41
tokens, measured by the CLIP tokenizer"
could you please share tips how to overcome token limitations?