Spaces:
Running
on
Zero
Running
on
Zero
use spaces
Browse files
app.py
CHANGED
@@ -19,6 +19,8 @@ from core.options import AllConfigs, Options
|
|
19 |
from core.models import LGM
|
20 |
from mvdream.pipeline_mvdream import MVDreamPipeline
|
21 |
|
|
|
|
|
22 |
IMAGENET_DEFAULT_MEAN = (0.485, 0.456, 0.406)
|
23 |
IMAGENET_DEFAULT_STD = (0.229, 0.224, 0.225)
|
24 |
GRADIO_VIDEO_PATH = 'gradio_output.mp4'
|
@@ -73,6 +75,7 @@ pipe_image = pipe_image.to(device)
|
|
73 |
bg_remover = rembg.new_session()
|
74 |
|
75 |
# process function
|
|
|
76 |
def process(input_image, prompt, prompt_neg='', input_elevation=0, input_num_steps=30, input_seed=42):
|
77 |
|
78 |
# seed
|
|
|
19 |
from core.models import LGM
|
20 |
from mvdream.pipeline_mvdream import MVDreamPipeline
|
21 |
|
22 |
+
import spaces
|
23 |
+
|
24 |
IMAGENET_DEFAULT_MEAN = (0.485, 0.456, 0.406)
|
25 |
IMAGENET_DEFAULT_STD = (0.229, 0.224, 0.225)
|
26 |
GRADIO_VIDEO_PATH = 'gradio_output.mp4'
|
|
|
75 |
bg_remover = rembg.new_session()
|
76 |
|
77 |
# process function
|
78 |
+
@spaces.GPU
|
79 |
def process(input_image, prompt, prompt_neg='', input_elevation=0, input_num_steps=30, input_seed=42):
|
80 |
|
81 |
# seed
|