Spaces:
Running
on
Zero
Running
on
Zero
Update demo/t2v.py
Browse files- demo/t2v.py +1 -2
demo/t2v.py
CHANGED
@@ -57,7 +57,6 @@ class Text2Video():
|
|
57 |
torch.cuda.empty_cache()
|
58 |
self.agent.to('cuda')
|
59 |
self.clip.to('cuda')
|
60 |
-
self.tokenizer.to('cuda')
|
61 |
|
62 |
print('start:', prompt, time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())))
|
63 |
start = time.time()
|
@@ -77,7 +76,7 @@ class Text2Video():
|
|
77 |
for text in labels_list:
|
78 |
with torch.no_grad():
|
79 |
text_feat.append(self.clip.get_txt_feat(text,))
|
80 |
-
text_feat = torch.stack(text_feat, dim=0).to(
|
81 |
|
82 |
video_embed = text_feat
|
83 |
|
|
|
57 |
torch.cuda.empty_cache()
|
58 |
self.agent.to('cuda')
|
59 |
self.clip.to('cuda')
|
|
|
60 |
|
61 |
print('start:', prompt, time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())))
|
62 |
start = time.time()
|
|
|
76 |
for text in labels_list:
|
77 |
with torch.no_grad():
|
78 |
text_feat.append(self.clip.get_txt_feat(text,))
|
79 |
+
text_feat = torch.stack(text_feat, dim=0).to('cuda')
|
80 |
|
81 |
video_embed = text_feat
|
82 |
|