Spaces:
Runtime error
Runtime error
heheyas
commited on
Commit
·
a83659a
1
Parent(s):
e5f9728
update app
Browse files
app.py
CHANGED
|
@@ -138,12 +138,6 @@ def do_sample(
|
|
| 138 |
return video_path
|
| 139 |
|
| 140 |
|
| 141 |
-
@spaces.GPU
|
| 142 |
-
def change_model_params(model, min_cfg, max_cfg):
|
| 143 |
-
model.sampler.guider.max_scale = max_cfg
|
| 144 |
-
model.sampler.guider.min_scale = min_cfg
|
| 145 |
-
|
| 146 |
-
|
| 147 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 148 |
|
| 149 |
# download
|
|
@@ -242,7 +236,8 @@ with gr.Blocks(title="V3D", theme=gr.themes.Monochrome()) as demo:
|
|
| 242 |
outputs=[output_video],
|
| 243 |
)
|
| 244 |
def _(image, border_ratio, min_guidance, max_guidance, decoding_t):
|
| 245 |
-
|
|
|
|
| 246 |
return do_sample(
|
| 247 |
image,
|
| 248 |
num_frames,
|
|
|
|
| 138 |
return video_path
|
| 139 |
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 142 |
|
| 143 |
# download
|
|
|
|
| 236 |
outputs=[output_video],
|
| 237 |
)
|
| 238 |
def _(image, border_ratio, min_guidance, max_guidance, decoding_t):
|
| 239 |
+
model.sampler.guider.max_scale = max_cfg
|
| 240 |
+
model.sampler.guider.min_scale = min_cfg
|
| 241 |
return do_sample(
|
| 242 |
image,
|
| 243 |
num_frames,
|