Spaces:
Sleeping
Sleeping
Update model_utils/utils.py
Browse files- model_utils/utils.py +0 -7
model_utils/utils.py
CHANGED
|
@@ -67,16 +67,9 @@ def load_alignments(path: str):
|
|
| 67 |
# Join into one string
|
| 68 |
text = "".join(tokens).strip()
|
| 69 |
|
| 70 |
-
# Encode using your tokenizer
|
| 71 |
-
# ids = tokenizer.encode(text)
|
| 72 |
-
# return torch.tensor(ids, dtype=torch.long)
|
| 73 |
-
|
| 74 |
return text
|
| 75 |
|
| 76 |
def load_data(path: str):
|
| 77 |
-
# path = bytes.decode(path.numpy())
|
| 78 |
-
# file_name = path.split('/')[-1].split('.')[0]
|
| 79 |
-
# File name splitting for windows
|
| 80 |
file_name = path.split('/')[-1].split('.')[0]
|
| 81 |
video_path = os.path.join('data',f'{file_name}.mpg')
|
| 82 |
alignment_path = os.path.join('data',f'{file_name}.align')
|
|
|
|
| 67 |
# Join into one string
|
| 68 |
text = "".join(tokens).strip()
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
return text
|
| 71 |
|
| 72 |
def load_data(path: str):
|
|
|
|
|
|
|
|
|
|
| 73 |
file_name = path.split('/')[-1].split('.')[0]
|
| 74 |
video_path = os.path.join('data',f'{file_name}.mpg')
|
| 75 |
alignment_path = os.path.join('data',f'{file_name}.align')
|