Spaces:
Runtime error
Runtime error
File size: 390 Bytes
12d7816 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import torch
from txt2panoimg import Text2360PanoramaImagePipeline
prompt = 'The living room'
# for <16GB gpu
input = {'prompt': prompt, 'upscale': False}
# for >16GB gpu (24GB at least)
# input = {'prompt': prompt, 'upscale': True}
model_id = 'models'
txt2panoimg = Text2360PanoramaImagePipeline(model_id, torch_dtype=torch.float16)
output = txt2panoimg(input)
output.save('result.png') |