Spaces:
Runtime error
Runtime error
Zhouyan248
commited on
Commit
β’
676a71f
1
Parent(s):
701a4f7
Update image_to_video/__init__.py
Browse files
image_to_video/__init__.py
CHANGED
@@ -206,13 +206,13 @@ def get_input(path,args):
|
|
206 |
else:
|
207 |
raise ValueError('Please check your path input!!')
|
208 |
else:
|
209 |
-
|
210 |
-
print('given video is None, using text to video')
|
211 |
-
video_frames = torch.zeros(16,3,args.latent_h,args.latent_w,dtype=torch.uint8)
|
212 |
-
args.mask_type = 'first1'
|
213 |
-
video_frames = transform_video(video_frames)
|
214 |
-
n = 0
|
215 |
-
return video_frames, n
|
216 |
|
217 |
def setup_seed(seed):
|
218 |
torch.manual_seed(seed)
|
|
|
206 |
else:
|
207 |
raise ValueError('Please check your path input!!')
|
208 |
else:
|
209 |
+
raise ValueError('Need to give a video or some images')
|
210 |
+
# print('given video is None, using text to video')
|
211 |
+
# video_frames = torch.zeros(16,3,args.latent_h,args.latent_w,dtype=torch.uint8)
|
212 |
+
# args.mask_type = 'first1'
|
213 |
+
# video_frames = transform_video(video_frames)
|
214 |
+
# n = 0
|
215 |
+
# return video_frames, n
|
216 |
|
217 |
def setup_seed(seed):
|
218 |
torch.manual_seed(seed)
|