Spaces:
Runtime error
Runtime error
Upload motiondirector.py
Browse files- demo/motiondirector.py +5 -3
demo/motiondirector.py
CHANGED
@@ -139,12 +139,14 @@ class MotionDirector():
|
|
139 |
latents_path = f"{latents_folder}/{random.choice(os.listdir(latents_folder))}"
|
140 |
assert os.path.exists(lora_path)
|
141 |
|
142 |
-
if '
|
143 |
-
noise_prior = 0.
|
144 |
elif '2-' in model_select:
|
145 |
noise_prior = 0.5
|
|
|
|
|
146 |
else:
|
147 |
-
noise_prior = 0.
|
148 |
|
149 |
if random_seed > 1000:
|
150 |
torch.manual_seed(random_seed)
|
|
|
139 |
latents_path = f"{latents_folder}/{random.choice(os.listdir(latents_folder))}"
|
140 |
assert os.path.exists(lora_path)
|
141 |
|
142 |
+
if '1-' in model_select:
|
143 |
+
noise_prior = 0.3
|
144 |
elif '2-' in model_select:
|
145 |
noise_prior = 0.5
|
146 |
+
elif '3-' in model_select:
|
147 |
+
noise_prior = 0.
|
148 |
else:
|
149 |
+
noise_prior = 0.
|
150 |
|
151 |
if random_seed > 1000:
|
152 |
torch.manual_seed(random_seed)
|