Spaces:
Build error
Build error
Commit
·
f04512a
1
Parent(s):
3dddffd
Minor
Browse files
app.py
CHANGED
|
@@ -183,6 +183,7 @@ def generate(
|
|
| 183 |
text, uid, motion_length=0, use_ik=True, seed=10107, repeat_times=1,
|
| 184 |
):
|
| 185 |
# fixseed(seed)
|
|
|
|
| 186 |
prompt_list = []
|
| 187 |
length_list = []
|
| 188 |
est_length = False
|
|
@@ -219,7 +220,6 @@ def generate(
|
|
| 219 |
ruid = random.randrange(99999)
|
| 220 |
for k, (caption, joint_data) in enumerate(zip(captions, data)):
|
| 221 |
animation_path = pjoin(cached_dir, f'{uid}')
|
| 222 |
-
shutil.rmtree(animation_path)
|
| 223 |
os.makedirs(animation_path, exist_ok=True)
|
| 224 |
joint_data = joint_data[:m_length[k]]
|
| 225 |
joint = recover_from_ric(torch.from_numpy(joint_data).float(), 22).numpy()
|
|
|
|
| 183 |
text, uid, motion_length=0, use_ik=True, seed=10107, repeat_times=1,
|
| 184 |
):
|
| 185 |
# fixseed(seed)
|
| 186 |
+
print(text)
|
| 187 |
prompt_list = []
|
| 188 |
length_list = []
|
| 189 |
est_length = False
|
|
|
|
| 220 |
ruid = random.randrange(99999)
|
| 221 |
for k, (caption, joint_data) in enumerate(zip(captions, data)):
|
| 222 |
animation_path = pjoin(cached_dir, f'{uid}')
|
|
|
|
| 223 |
os.makedirs(animation_path, exist_ok=True)
|
| 224 |
joint_data = joint_data[:m_length[k]]
|
| 225 |
joint = recover_from_ric(torch.from_numpy(joint_data).float(), 22).numpy()
|