NOVA
Collection
NOVA: Autoregressive Video Generation without Vector Quantization • 6 items • Updated • 6
How to use BAAI/nova-d48w1024-sdxl1024 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("BAAI/nova-d48w1024-sdxl1024", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Using the 🤗's Diffusers library to run NOVA in a simple and efficient manner.
pip install diffusers transformers accelerate
pip install git+ssh://git@github.com/baaivision/NOVA.git
Running the pipeline:
import torch
from diffnext.pipelines import NOVAPipeline
model_id = "BAAI/nova-d48w1024-sdxl1024"
model_args = {"torch_dtype": torch.float16, "trust_remote_code": True}
pipe = NOVAPipeline.from_pretrained(model_id, **model_args)
pipe = pipe.to("cuda")
prompt = "a shiba inu wearing a beret and black turtleneck."
image = pipe(prompt).images[0]
image.save("shiba_inu.jpg")
The model is intended for research purposes only. Possible research areas and tasks include
Excluded uses are described below.
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.