File size: 318 Bytes
a8a63dd
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import torch
import kiui
from mvdream.pipeline_mvdream import MVDreamStableDiffusionPipeline

pipe = MVDreamStableDiffusionPipeline.from_pretrained('./weights', torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt)

kiui.vis.plot_image(image)