Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1d84e1d
1
Parent(s):
ba7dc43
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,8 @@ hf_hub_download(repo_id="stabilityai/stable-video-diffusion-img2vid-xt", filenam
|
|
| 27 |
|
| 28 |
version = "svd_xt"
|
| 29 |
device = "cuda"
|
|
|
|
|
|
|
| 30 |
def load_model(
|
| 31 |
config: str,
|
| 32 |
device: str,
|
|
@@ -84,7 +86,6 @@ def sample(
|
|
| 84 |
image file in folder `input_path`. If you run out of VRAM, try decreasing `decoding_t`.
|
| 85 |
"""
|
| 86 |
if(randomize_seed):
|
| 87 |
-
max_64_bit_int = 2**63 - 1
|
| 88 |
seed = random.randint(0, max_64_bit_int)
|
| 89 |
|
| 90 |
torch.manual_seed(seed)
|
|
|
|
| 27 |
|
| 28 |
version = "svd_xt"
|
| 29 |
device = "cuda"
|
| 30 |
+
max_64_bit_int = 2**63 - 1
|
| 31 |
+
|
| 32 |
def load_model(
|
| 33 |
config: str,
|
| 34 |
device: str,
|
|
|
|
| 86 |
image file in folder `input_path`. If you run out of VRAM, try decreasing `decoding_t`.
|
| 87 |
"""
|
| 88 |
if(randomize_seed):
|
|
|
|
| 89 |
seed = random.randint(0, max_64_bit_int)
|
| 90 |
|
| 91 |
torch.manual_seed(seed)
|